<html>
<body>
<h1>This is a largest heading</h1>
<h3>This is a heading</h3>
<h6>This is a smallest heading</h6>
<br/>
<p>The hr tag defines a horizontal rule:</p>
<hr />
<p>This is a paragraph</p>
<hr />
<p>This is a paragraph</p>
<hr />
<p>This is a paragraph</p>
<br/>
<!-- This is a comment it will not displayed -->
</body>
</html>
The output will be look like following
This is a largest heading
This is a heading
This is a smallest 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.
Since users may skim your pages by its headings, it is important to use headings to show the document structure.
H1 headings should be used as main headings, followed by H2 headings, then the less important H3 headings, and so on.
Some html tags;
Tag | Description |
Defines an HTML document | |
Defines the document's body | |
Defines HTML headings | |
Defines a horizontal line | |
Defines a comment |
html header element examples
উত্তরমুছুনH2 tag header element background-image repeat position