Important HTML tags

Tagged Astronaut

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.

The tables below don't include all HTML tags, but they do list many of the most important ones.

Block Elements

---Tag--- ---Name--- ---Purpose---
h1h6 headdings include a heading (levels 1–6)
p paragraph include a paragraph of text
table table include a table
tr table rowa include a row of table data
th table header make a table header
td table date include a table data cell
div division sets the page division apart
header header semantic tag to label part of the page

Inline Elements

Tag Name Purpose Example Result
em emphasied make emphasied text <em>techincal sophistaction</em> technical sophistication
technical sophistication
strong strong make strong text <strong>at least a billion people</strong> FILL_IN
a anchor make hyperlink Enough</a> FILL_IN
img image include an image <a href="https://learnenough.com/">Learn <img src="https://bit.ly/1MZAFuQ" alt="Michael Hartl"> FILL_IN
span span in–line method for dividing page