HTML Headings:
- Headings are defined with the
to
tags.
defines the most important heading.
defines the least important heading.
Example:
This is a heading
This is a heading
This is a heading
Headings Are Important:
- Use HTML headings for headings only. Don't use headings to make text BIG or bold.
- Search engines use your headings to index the structure and content of your web pages.
- Users skim your pages by its headings. It is important to use headings to show the document structure.
- h1 headings should be main headings, followed by h2 headings, then the less important h3, and soon.
HTML Horizontal Rules:
- The
tag creates a horizontal line in an HTML page. - The hr element can be used to separate content:
HTML Element:
- The HTML element has nothing to do with HTML headings.
- The HTML element contains meta data. Meta data are not displayed.
- The HTML element is placed between the tag and the tag:
HTML Element:
- The HTML
element is meta data. It defines the HTML document's title. - The title will not be displayed in the document, but might be displayed in the browser tab.
HTML Element:
- The HTML element is also meta data.
- It can be used to define the character set, and other information about the HTML document.
More Meta Elements:
- In the chapter about HTML styles you discover more meta elements:
- The HTML