HTML - Titles and headings

  »   HTML  »   HTML Tutorial - titles and headings

In HTML, a title is exactly what it looks like: a real title or a subtitle. When you put a text in a tag <h1>, the text will be bolded, and the dimension of the letter will be the same as the number of the heading. The titles can have dimensions from 1 to 6, where 1 is the smallest dimension and 6 is the biggest dimension.

html<h1>Headings</h1>
<h2>are</h2>
<h3>great</h3>
<h4>for</h4>
<h5>titles</h5>
<h6>and subtitles</h6>

Demo

Headings

are

great

for

titles
and subtitles

You can see that every title has a linebreak before and after. Every time you put a heading, the browser will give automatically a space in the line before it and after as well.

HTML - Practical example

Let's take now an easy example and practice it for a bit so that the information will be understood totally. It would be recommended for you to get used to these terms before we go on.

html<h2 align="center">HTML - Titles 1:6 (Headings)</h2>

<p>A title in HTML is exactly what it looks like: a real title or a subtitle. When you put a text in a tag &lt;h1&gt;, the text will be bolded, and the dimension of the letter will be the same as the number of the heading. The titles can have dimensions from 1 to 6, where 1 is the smallest dimension and 6 is the biggest dimension.</p>

<p>A title in HTML is exactly what it looks like: a real title or a subtitle. When you put a text in a tag &lt;h1&gt;, the text will be bolded, and the dimension of the letter will be the same as the number of the heading. The titles can have dimensions from 1 to 6, where 1 is the smallest dimension and 6 is the biggest dimension.</p>

Demo

HTML - Titles 1:6 (Headings)

A title in HTML is exactly what it looks like: a real title or a subtitle. When you put a text in a tag <h1>, the text will be bolded, and the dimension of the letter will be the same as the number of the heading. The titles can have dimensions from 1 to 6, where 1 is the smallest dimension and 6 is the biggest dimension.

A title in HTML is exactly what it looks like: a real title or a subtitle. When you put a text in a tag <h1>, the text will be bolded, and the dimension of the letter will be the same as the number of the heading. The titles can have dimensions from 1 to 6, where 1 is the smallest dimension and 6 is the biggest dimension.