What is the <html> tag
the tag that defines the whole document
what is the <body> tag
defines the document body, the visible content
Previous
Play
Next
Rewind 10 seconds
Move forward 10 seconds
Unmute
0:03
/
0:15
Full screen
Brainpower
Read More
What is the <h1> tag
element that defines a heading, goes from h1 to h6 in size
what is the <p> tag
defines a paragraph, all text within the element is printed on 1 line
What is the <head> tag
contains meta information information about the document
What is the <title> tag
specifies title for the document
What is an HTML attribute and how do you use them
provide additional information about an element
,specified in the start tag in name/value pairs like name="value"
What is the <br> tag
specifies a line break.
Note this is an empty tag so doesn't need to be closed
what is special about the <img> tag
it is an empty tag so doesn't need to be closed
What is the <pre> tag
used for printing text however unlike a <p> tag it retains formatting i.e. new lines and spaces
How do you specify style directly from HTML
you can use a <style> tag and write CSS inside the element
Alternatively you can set it using attributes within the given HTML element e.g. style =
"property:value;"
How do you format text within HTML
How do you define a table in HTML
the <table> tag defines the whole element
<tr> defines table rows
within each row define <td> elements which are the table data
How do you create unordered and ordered lists in HTML
<ul> defines an unordered list
<ol> defines an ordered list
Each element within the list has the <li> tag
What are block level elements, give an example
, - Begin a new line
- Extend to the full width of its parent element
- e.g. <div>
What are inline elements, give an example
- Can begin within a line
- doesn't start a new line
It's width only extends as far as it is defined by its tag
- e.g. <span>
What is a <div> tag
Used as a container that groups related items together
What information is held within the <meta> tag in the <head> element
How do you use HTML forms
The whole form is within the <form> element
<input> elements sit within the form element
the form should have a <input type="submit"> element which is a button which submits the form
when the user completes it
List the main input types
text, password, reset, radio, checkbox, color, email, date
What is a select element in a form
It is a drop-down list,
you specify options within the drop down using the <option> tag
What is the <textarea> tag
defines a mutli-line input field e.g. a comment field
What is XHTML
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller AllLegitExams. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $9.99. You're not tied to anything after your purchase.