|How to make HTML Headings|
Hello once again. In this tutorial we will learn how to make Headings in HTML.
So what are headings in anyway?
Headings are that part of our text which separates a section of text and shows on what the following text is going to be about. Thus it forms a important part of your web page, to keep the reader informed about what they are going to read and thus also efficient in keeping the interest of the reader on your web page!
Great! So how do we make headings using HTML?
HTML helps you to have 6 sizes of headings. Ideally, we require a Main Heading, a Sub heading and a Minor heading and most of our work is managed by these 3 sizes of headings, but HTML gives us the liberality to give 6 different sizes of headings.
How are headings marked up in HTML?
In HTML we have <hx> and </hx> tags in which the x stands for a number from 1 to 6. Thus,
<h1>This is heading 1</h1>
This is heading 1
<h2>This is heading 2</h2>
This is heading 2
<h3>This is heading 3</h3>
This is heading 3
<h4>This is heading 4</h4>
This is heading 4
<h5>This is heading 5</h5>
This is heading 5
<h6>This is heading 6</h6>
This is heading 6
As you can see: –
- Heading tags have a opening tag <hx> and a closing tag </hx>. If the closing heading tag is not put, then all of the text after the opening Heading tag will look as a heading.
- Headings appear in bold by default.
- Headings leave a line below. So while writing a web page in HTML, you do not need to press enter to start writing on the next line after closing the heading tag. You can start writing immediately after closing the heading tag. For Example: – <h1>This is a Heading</h1>Start to write your paragraph right from here.
- Headings also give a way to the users to skim through your pages by your headings. In this way, if they find a interesting topic, then the person can stop over and read through the content.