HTML5 Headings with examples

HTML Headings

Attributes in HTML

In HTML headings are six types observe the following output

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

These defined h1 to h6 tags. h1 is higher important and least important heading. Example: <h2>Heading line 2</h2> <h3>Heading line 3</h3> <h4>Heading line 4</h4> <h5>Heading line 5</h5> <h6>Heading line 6</h6>

Importance of Headings

Headings are important to show pages, paragraphs and its structure. In SEO search engine will use headings to index the structure and content of web pages.

If larger format wants to show h1 tag to be write for next level towards lower <h2> than will goes up to <h6>

html5 tutorial for beginners

Large Headings
To observe that h1 to h6 tags with their default sizes shown on html output form and also there is a facility to specify the size of any heading with style attribute using CSS font-size property. Example: <h2 style="font-size:70px;">Heading line 1</h2>

Horizontal lines
<hr> tag defines a break line in an HTML page, and is most often displayed as a horizontal line. Example: <h2>This is heading line 1</h2> <p>This is paragraph text.</p> <hr> <h2>This is heading line 2</h2> <p>This is other paragraph text.</p> <hr> How to see HTML Source code for a web page On right click an HTML page and select “View Page Source” in chrome or view source in Internet Explorer and similar browsers. It will open a window shows that HTML Source Code of the page.

Web development fullstack course Web development course 2021: Fullstack
Online course Online Courses: Include Certification
Harisystems is optimized for learning, testing and training. courses are designed to be simplified to improve reading and basic understanding for beginners to expert level. Tutorials and examples are constantly reviewed to avoid errors, however we cannot warrant full correctness of all content. if any found need to correct write us at we Harisystems is not responsible for any with this tutorials, While using this site, you agree to have read and accepted our terms of use, cookie and privacy policy. Copyright 2007-2022 by Harisystems. All Rights Reserved.
Copyright © Harisystems 2022