HTML title - HTML Tutorial

HTML title


In HTML documents, headings are important.
HTML headings can be used to present the structure of a document. Properly set headings help users navigate your web pages.


HTML title headings


HTML title

Heading is defined by <h1>-<h6>  tags.
<h1> Defines the largest title. <h6> Defines the smallest title.

 For Example : 
<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.
Note: By default, HTML automatically adds an extra blank line before and after block-level elements, such as paragraphs and heading elements.

Title is important

Be sure to use the HTML title tag only for the title. Don't use headings just to generate bold or large text.
Search engines use titles to index the structure and content of your web pages.
Because users can quickly browse your web page by title, it is important to use the title to present the document structure.
H1 should be used as the main title (most important), followed by h2 (secondarily important), then h3, and so on.


HTML horizontal lines


The <hr> tag creates horizontal lines in the HTML page.
The hr element can be used to separate content, using the horizontal lines produced by this element to visually separate the document into sections.

Example: 
<p> This is a paragraph. </ p>
<hr>
<p> This is a paragraph. </ p>
<hr>
<p> This is a paragraph. </ p>



HTML comments


You can insert comments into your HTML code to make it more readable and easier to understand. The browser ignores the comments and does not display them.

HTML comments can be easily used to help web designers and remind them of program-related information.

The comment is written as follows:
<!-This is a comment->
Note: The opening parenthesis (the left parenthesis) needs to be followed by an exclamation mark, and the ending parenthesis (the right parenthesis) is not needed. Proper use of comments can help future code editing work.

HTML Tip-How to View Source Code

Have you seen some web pages and marveled at how it was implemented.
If you want to find the secret, just right-click and choose "View Source" (IE) or "View Page Source" (Firefox). Other browsers do the same. Doing so opens a window containing the HTML code for the page.

HTML tags reference manual

You will learn more about HTML tags and attributes in the following sections of this tutorial.


Label Description
<html> Defining HTML documents
<body> Define the body of the document
<h1>.....<h6> Define HTML title
<hr> Define horizontal lines
<!--..--> Define comments

HTML Basic Tags
HTML Editors
HTML Introduction
HTML Attributes