HTML notes
HTML notes
Normal tags have an opening tag and a closing tag. <p> and </p>.
Empty tags have only an opening tag and no closing tags. E.g. <br>.
HTML is NOT case sensitive.
Never skip a closing tag.
The Style Attribute is used to add styles to an element, such as font, size, color,
etc.
The title attribute is used to define extra information about an element.
The lang attribute is used to determine the language.
We use double quotations for quotes or for attribute specifications.
Formatting elements:
<b> for bold text
<strong> for important text
<i> for italic text
<em> for emphasized text
<mark> for marked text
<small> for smaller text
<del> for deleted text
<ins> for inserted text
<sub> for subscript text
<sup> for superscript text
To comment:
<!- - Comment - - >
To add a favicon (images near the website title): (you can get favicons from
favicon.ico)
<link rel=”icon” type=’Image” href=”../PlaceOfFile”>
Tables!!!
<Table>
<Thead>
<tr> Very first row/ Header row
<th>First table head</th>
<th>second table head</th>
</tr>
</Thead>
Forms!!!
(For following webpage after form, use action)
<form action=”Next Webpage”>
Otherwise use normal form
<form>
//Labels for textboxes
<label for=”text”> LabelName: </label>
</form>