HTML

Document Structure

Syntax

1 <element attribute="value">Content</element>

Opening Tag

1 <element>

Not all HTML elements have a closing tag.

1 </element>

Tags for Headings

Heading 1

1 <h1>Heading 1</h1>

Heading 2

1 <h2>Heading 2</h2>

Heading 3

1 <h3>Heading 3</h3>

Heading 4

1 <h4>Heading 4</h4>
Heading 5
1 <h5>Heading 5</h5>
Heading 6
1 <h6>Heading 6</h6>
1 <a href="">link</a>
Emphasis
1 <em>Emphasis</em>
strong
1 <strong>strong</strong>
  • Unordered List Item 1
  • Unordered List Item 2
  • Unordered List Item 3
1 <ul>
2     <li>Unordered List Item 1</li>
3     <li>Unordered List Item 2</li>
4     <li>Unordered List Item 3</li>
5 </ul>
  1. Ordered List Item 1
  2. Ordered List Item 2
  3. Ordered List Item 3
1 <ol>
2     <li>Ordered List Item 1</li>
3     <li>Ordered List Item 2</li>
4     <li>Ordered List Item 3</li>
5 </ol>