Two-minute HTML guide
When you develop a web page, you use HTML to describe what the page should look like and how it should behave.
HTML has dozens of tags and hundreds of tag attributes. The goal of HTML is to take a text document and add tags that tell the browser how to format the text. Below are the tags we use in the next several chapters. If you need a more complete understanding of HTML, we recommend the book HTML & XHTML The Definitive Guide (O’Reilly).
Tag | Description |
|---|---|
| where you put your comments |
| anchor - usually for putting in a hyperlink |
| align the contents left, right, centered, or justified |
| define the boundaries of the document’s body |
| a line break |
| center the contents |
| define a form (which usually provides input fields) |
| the first level heading |
| define the boundaries of the document’s header |
| define the boundaries of the HTML document |
| defines an input widget to a form |
| a new paragraph |
| the HTML document’s title |
Note
(Technically, the <center> and <align> tags have been deprecated in HTML 4.0, but we’re using them in some of our examples because it’s simpler to read than the alternative, and you’re not here to learn HTML anyway.)
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access