;

How to Add Heading Tags for Titles in HTML

How to Create Headings Tags in HTML



buayaberdiri.blogspot.com - If you want to give a title to a paragraph or the beginning of a sentence then you can use the headings tag in html. Heading tags have a larger text size than normal text with a size of 14px.

How to Use heading tags in html :

<h1>This is h1 Headings</h1>


The h1 tag is the largest text size, usually this is used for article titles

display text size from h1 :


Heading Tags H1 Example


H2, H3, H4, H5, H6 heading tag example


There are various heading tags such as h2, h3, h4, h5, h6 and h7.

The following is an example of heading tag code to find out the difference in the size of the resulting text.

  <h1>This is h1 Headings</h1>
    <h2>This is h2 Headings</h2>
    <h3>This is h3 Headings</h3>
    <h4>This is h4 Headings</h4>
    <h5>This is h5 Headings</h5>
    <h6>This is h6 Headings</h6>
    <h7>This is h7 Headings</h7>


Then the result will be like this:


how to add / insert / create heading tags h1, h2, h3, h4, h5, h6 in html code

If you see the results in the image above, the heading tag only reaches h6. If you use h7 then the text will display the normal size.

How to Add Color in heading tags H1


Heading tags can be colored to make the text title the color you want, to give the text heading color you can use the style attribute.

See the example below:

<h1 style ="color:red;">This is h1 Headings</h1>



Then the appearance of the colored heading tag will look like this:


How to give color to h1 heading tag in html









List of Article Posts https://buayaberdiri.blogspot.com