+ 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?
3 Antworten
+ 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
+ 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*/
}
+ 2
Headings are used by search engines to find the page. Never use headings to display text with big font sizes.