Learning HTML for Kids!
Here’s a review of the code we have discussed in this tutorial. Please use it as a reference.
<DOCTYPE html> (declaration)
<html> </html> (an html file)
<head> </head> (header holds the title and gives info to search engines)
<body></body> (body or content of page)
<h1></h1> (first level heading, largest size to smallest <h6>, can also be used with CSS code)
<p></p> (paragraph)
<br> (line break)
<hr> (horizontal rule)
<ul></ul> (unordered list—no numbers or sequence)
<ol></ol> (ordered list–numbers and sequential)
<li><li> (list nested inside)
<a>…/a> (link tag>
href= (attribute for link tag, inside opening tag)
<img> (empty tag for images)
src= (attribute for image tag–where’s the source file)
alt= (attribute for image tag–alternative text)
height= (attribute for image tag–how tall is it)
width= (attribute for image tag–how wide is it)
<b>...</b> (bold)
<strong>…</strong> (strong )
<i>...</i> (italic format)
<em>…</em> (emphasis)
<small>…</small> (small)
<del>…</del> (strike-
style= attribute using CSS, along with the following:
color:
font-
font-
text-
background-
Short reference to simple HTML code.