Heading in HTML

More options for you.


General KnowledgeEnglish GrammarMathScienceIQ-TestQuiz-Test

HTML Headings are always important in html document for vewiers and search engines.

attribute-pic here

HTML Headings are always important in html document for vewiers and search engines.
To index the structure and the content of your web pages, search engines use your headings.
Browsers automaticly add a margin before and after each heading, so don't use headings to make text big or bold.
We can use headings from h1 to h6. h1 headings would be main headings, followed by h2 headings, then the less important h3, and so on.

How to use Headings

HTML Editor

<!DOCTYPEhtml>
<html>
<body>
<h1> This is Heading-1 </h1>
<h2> This is Heading-2 </h2>
<h3> This is Heading-3 </h3>
<h4> This is Heading-4 </h4>
<h5> This is Heading-5 </h5>
<h6> This is Heading-6 </h6>
<p> You can style your default heading with the style attribute,if you want to. </p>
</body>
</html>

Web Browser

This is heading-1

This is heading-2

This is heading-3

This is heading-4

This is heading-5
This is heading-6

You can style your default heading with the style attribute,if you want to.

Paragraph in HTML


HTML Paragraphs is defined by the <p> element, to write paragraph in HTML is not same as in MS Word.
To start a new paragraph in MS Word, you used to hit "Enter-key" on your keyboard but in HTML to do that you have to need a <br/> tag.
It's called HTML line break tag.
The <br> element is an empty HTML element and it has no closing tag.


How to use line break <br> tag?

We are now ready to learn how to break a line and then create another new line with the <br> tag in HTML document.

HTML Editor

<!DOCTYPEhtml>
<html>
<body>
<p> To start a new paragraph in MS Word, you used to hit "Enter-key" on your keyboard <br/> but in HTML to do that you have to need a line break tag. </p>
</body>
</html>

Web Browser

To start a new paragraph in MS Word, you used to hit "Enter-key" on your keyboard
but in HTML to do that you have to need a line break tag.



More options for you.


General KnowledgeEnglish GrammarMathScienceIQ-TestQuiz-Test