+ 2

What is a different between heading marks (h1 - h6) and font-size?

If there is a option for font-size then why we have to use heading?

5th Apr 2017, 9:29 AM
Mihir Ajmera
Mihir Ajmera - avatar
3 Respostas
+ 4
the heading(h1-h6) is used for the structure of the Page, if u have too many contents, so they will make your code lokks better and orgnaized
5th Apr 2017, 10:11 AM
Amjad
Amjad - avatar
+ 4
Heading are used to provide a title to an article. In HTML <h1> through <h6> heading are used for above purpose. Semantically, heading level depicts the importance of the heading and font-sizes of headings are predefined. Now if you want to re define their respective sizes, you can use font-size CSS property against heading tag. For example I want to make h1, h2, and h3 of same font size, then I will use following CSS rule h1,h2,h3{ font-size:18px; /* same for all*/ }
5th Apr 2017, 10:11 AM
देवेंद्र महाजन (Devender)
देवेंद्र महाजन (Devender) - avatar
+ 2
Headings are used by search engines to find the page. Never use headings to display text with big font sizes.
5th Apr 2017, 11:44 AM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar