HTML5 Cheat Sheet

Samples of nearly every tag you'll ever need to know


Titles

H1 Tag: <h1>

H2 Tag: <h2>

H3 Tag: <h3>

H4 Tag: <h4>

H5 Tag: <h5>
H6 Tag: <h6>


Paragraphs

I am a paragraph. The paragraph tag <p> is the workhouse of the web.



Anchor Tags

I am a paragraph with an anchor tag <a>. Anchor tags are the workhouse of the web. Didn't i just say that?



Ordered Lists

  1. I am the first element of an ordered list <h6>.
  2. Each list item is identified with a List Item tage <li>.
  3. Ordered lists are the workhouse of the web
  4. Making lists is fun with the <h6> tag.


Unordered Lists



Spans

I am a paragraph that includes a <span> tag that begins here and ends here.



Line Breaks

I am a paragraph that includes a <br />
tag that causes the browser to put this text on a new line.



Horizontal Rules

Every section of this page includes <hr />
tags at the top and bottom to visually separate the content.



Images

Add images to your page with <img /> tags. Images are the workhouse of the web. But didn't I already say that?