0% found this document useful (0 votes)
61 views

Headings Are Important in HTML Documents.: This Is A Heading This Is A Heading This Is A Heading

Headings in HTML are defined using tags from <h1> to <h6>, with <h1> being the most important and <h6> the least. Headings are used to show the structure and organization of a document and are important for search engines and users scanning pages. The <hr> tag creates a horizontal line to separate content sections, while the <head> element contains metadata and is placed between the <html> and <body> tags, not to be confused with HTML headings.

Uploaded by

Bogdan Chindris
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
61 views

Headings Are Important in HTML Documents.: This Is A Heading This Is A Heading This Is A Heading

Headings in HTML are defined using tags from <h1> to <h6>, with <h1> being the most important and <h6> the least. Headings are used to show the structure and organization of a document and are important for search engines and users scanning pages. The <hr> tag creates a horizontal line to separate content sections, while the <head> element contains metadata and is placed between the <html> and <body> tags, not to be confused with HTML headings.

Uploaded by

Bogdan Chindris
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Headings are important in HTML documents.

HTML Headings
Headings are defined with the <h1> to <h6> tags.
<h1> defines the most important heading. <h6> defines the least important heading.
<h1>This is a heading</h1>
<h2>This is a heading</h2>
<h3>This is a heading</h3>
Note: Browsers automatically add some empty space (a margin) before and after each 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
so on.
HTML Horizontal Rules
The <hr> tag creates a horizontal line in an 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>
The HTML <head> Element
The HTML <head> element has nothing to do with HTML headings.
The HTML <head> element contains meta data. Meta data are not displayed.
The HTML <head> element is placed between the <html> tag and the <body> tag:

You might also like