In HTML documents, the title is very important.
Heading is defined by <h1>-<h6> tags.
<h1> defines the largest headline. <h6> Define the smallest heading.
<h1> This is a headline 1. </h1> <h2> This is a headline 2. </h2> <h3> This is a headline 3. </h3>
Note: The browser will automatically add blank lines before and after the title.
Title is important
Make sure to use HTML title tags only for titles. Don’t use headings just to generate bold or large text.
Search engines use headings to index the structure and content of your web pages.
Because users can quickly browse your web pages through the title, it is important to use the title to present the structure of the document.
You should use h1 as the main heading (the most important), then h2 (the second most important), then h3, and so on.
HTML horizontal line
The <hr> tag creates a horizontal line in the HTML page.
The hr element can be used to separate content.
<p> This is a paragraph. </p> <hr> <p> This is a paragraph. </p> <hr> <p> This is a paragraph. </p>
You can insert comments into the HTML code, which improves its readability and makes the code easier to understand. The browser will ignore the comments and will not display them.
The comment is written as follows:
<!-- This is a comment -->
Note: An exclamation mark is required immediately after the opening parenthesis (the parenthesis on the left), and it is not required before the closing parenthesis (the parenthesis on the right). Reasonable use of comments can help future code editing work.
HTML tips-how to view source code
Have you read some web pages and marveled at how it is implemented.
If you want to find the mystery, just right-click and select “View Source File” (IE) or “View Page Source Code” (Firefox). Other browsers do the same. Doing so will open a window containing the HTML code of the page.
HTML Tag Reference Manual
The label reference manual of the rookie tutorial provides more information about these titles and their attributes.
You will learn more about HTML tags and attributes in the following chapters of this tutorial.