Headings are important in HTML documents.
Headings are defined with the <h1> to <h6> tags.
<h1> defines the most important heading. <h6> defines the least important heading.
Note: Metadata typically define the document title, character set, styles, links, scripts, and other meta information.
Have you ever seen a Web page and wondered "Hey! How did they do that?"
To find out, right-click in the page and select "View Page Source" (in Chrome) or "View Source" (in IE), or similar in another browser. This will open a window containing the HTML code of the page.
W3Schools' tag reference contains additional information about these tags and their attributes.
You will learn more about HTML tags and attributes in the next chapters of this tutorial.
|<html>||Defines the root of an HTML document|
|<body>||Defines the document's body|
|<head>||A container for all the head elements (title, scripts, styles, meta information, and more)|
|<h1> to <h6>||Defines HTML headings|
|<hr>||Defines a thematic change in the content|