This page is designed as a quick reference for some of the common tags covered in Learn Enough HTML to Be Dangerous. In the process of making
it, we'll learn how to make HTML tables via table and related tags.
The tables below don't include all HTML tags, but they do list many of the most important ones.
| Tag | Name | Purpose |
|---|---|---|
h1–h6 |
headings | include a heading (levels 1–6) |
p |
paragraph | include a paragraph of text |
table |
table | include a table |
tr |
table row | include a row of data |
th |
table header | make a table header |
td |
table data | include a table data cell |
header |
header | mark the introductory or navigational content of a page |
div |
division | non-semantic; container used to group other HTML elements into logical sections |
ol |
ordered list | make a numbered list |
ul |
unordered list | make a bulleted list |
li |
list item | include an item in an ordered or unordered list |
| Tag | Name | Purpose | Example | Result |
|---|---|---|---|---|
em |
emphasized | make emphasized text | <em>technical sophistication</em> |
technical sophistication |
strong |
strong | make strong text | <strong>at least a billion people</strong> |
at least a billion people |
| a | anchor | make hyperlink | <a href="learnenough.com/">Learn Enough</a> |
Learn Enough |
img |
image | include an image | <img src="https://bit.ly/1MZAFuQ" alt="Michael Hartl"> |
|
code |
code | make monospace text | <code>strong</code> |
strong |
span |
span | non-semantic; marks up text for styling | <span>Call me Ishmael.</span> |
Call me Ishmael. |