Summary
This hour introduced the basics of what web pages are and how they work. You learned that coded HTML commands are included in a text file, and that typing HTML text yourself is better than using a graphical editor to create HTML commands for you—especially when you're learning HTML. You were introduced to the most basic and important HTML tags. By adding these coded commands to any plain-text document, you can quickly transform it into a bona fide web page. You learned that the first step in creating a web page is to put a few obligatory HTML tags at the beginning and end, including a title for the page. You then mark where paragraphs and lines end and add horizontal rules and headings if you want them. Table 3.1 summarizes all the tags introduced in this hour.
Table 3.1. HTML Tags Covered in Hour 3
Tag |
Function |
<html>...</html> |
Encloses the entire HTML document. |
<head>...</head> |
Encloses the head of the HTML document. Used within the <html> tag pair. |
<title>...</title> |
Indicates the title of the document. Used within the <head> tag pair. |
<body>...</body> |
Encloses the body of the HTML document. Used within the <html> tag pair. |
<p>...</p> |
A paragraph; skips a line between paragraphs. |
<br /> |
A line break. |
<hr /> |
A horizontal rule line. |
<h1>...</h1> |
A first-level heading. |
<h2>...</h2> |
A second-level heading. |
<h3>...</h3> |
A third-level heading. |
<h4>...</h4> |
A fourth-level heading (seldom used). |
<h5>...</h5> |
A fifth-level heading (seldom used). |
<h6>...</h6> |
A sixth-level heading (seldom used). |
Finally, you learned about XML and XHTML, and how they relate to HTML, as well as what "HTML 5" means in relation to what it is you're learning here.