A+ A-

HTML title

In HTML documents, the title is important.

HTML title

Heading is defined by the <h1> - <h6> tag.
<H1> Defines the largest title. <H6> Defines the smallest title.

Examples

<h1> This is a title. </ h1>
<h2> This is a title. </ h2>
<h3> This is a title. </ h3>
Note: The browser will automatically add blank lines before and after the title.

The title is important

Make sure to use the HTML heading tag only for the title. Do not just use the title in order to generate bold or text.
The search engine uses the title to index the structure and content of your page.
Because the user can quickly navigate through your page through the title, it is important to use the title to render the document structure.
H1 should be used as the main title (the most important), followed by h2 (sub-important), followed by h3, and so on.

HTML Horizontal Line

The <hr> tag creates a horizontal line in the HTML page. 

Hr elements can be used to separate content.

Examples

<p>This is a passage.</p>
<hr>
<p>This is a passage.</p>
<hr>
<p>This is a passage.</p>


HTML comments

You can insert comments into HTML code, which improves readability and makes your code easier to understand. Browsers ignore comments and do not display them.
The comment is as follows:

Examples

<!-- This is a comment -->
Note: After the start of the brackets (the brackets on the left) need to follow an exclamation mark, before the closing brackets (right parentheses) do not need to use the annotation to help the future code editing work. The

HTML tips - how to view the source code

Whether you have seen some pages and then wonder how it is achieved.
If you want to find the mystery, just right click and select "View Source" (IE) or "View Page Source" (Firefox), and other browsers are similar. Doing so will open a window containing the page HTML code.


HTML tag reference manual

The self-enhanced school's reference manual provides more information about these titles and their attributes.
You will learn more about HTML tags and attributes in the following sections of this tutorial.
labeldescription
<html>Define an HTML document
<body>Define the subject of the document
<h1> to <h6>Define the HTML title
<hr>Define the horizontal line
<!-->Define a comment

[right-side]

HTML title In HTML documents, the title is important. The HTML title header is defined by the < h1 > - < h6 > tag. < h1 > defines the maximum title. < h6 > Define the smallest title. Example < h1> This is a title.< / h1> ,