Headings
Headings are used as titles / subtitles for content on the page. They are inserted with the
<h1> through <h6> tags.
Note: These tags are used by search engines to detect the structure of your pages.
Show Code
<h1>Largest Heading</h1>
<h2>Sample Heading</h2>
<h3>Sample Heading</h3>
<h4>Sample Heading</h4>
<h5>Sample Heading</h5>
<h6>Smallest Heading</h6>
Largest Heading
Sample Heading
Sample Heading
Sample Heading
Sample Heading
Smalest Heading
Lists > Unordered lists
Unordered lists are used to make bullet pointed lists. Theses are created by surroundnig the list
elements with <ul> and </ul> tags.
Bullets: The bullet point (leading circle) can be changed with the css property
list-style-type to:
- disc (defult)
- circle
- square
To see more about unordered lists and how to nest them, visit Mozilla's web docs
here.
Show Code
<ul>
<li>List item 1</li>
<li>List item 2</li>
<li>List item 3</li>
</ul>
- List item 1
- List item 2
- List item 3
Breaks
This tag inserts a single line break. Breaks are added with the following HTML code,
<br>.
Note: These tags do not have an end tag but if you use it XHTML, you must remember
the ending forward slash, <br />.
Show Code
<p>Some text</p>
<br>
<p>Some text</p>
Article HTML5
The <article> tag is used as a container for independnt content.
They are used to contain information that is distinguishable from the rest of the page. For example,
an article tag would be used around a blog post or a comment.
Show Code
<article>
<h1>Article title</h1>
<p>Lorem ipsum dolor sit amet…</p>
</article>
Article title
Lorem ipsum dolor sit amet…