h1 tag resulting in different output font size | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

h1 tag resulting in different output font size

In the HTML course > HTML5 > article, section, & aside > section the following code is given. The Article and Section block each contain an h1 tag. When the code is run in the Code Playground it is clear that the text in the article tag is larger than that of the section tag even though they have the same header rank. Can someone explain a little as to why this happens? Thank you <article> <h1>Welcome</h1> <section> <h1>Heading</h1> <p>content or image</p> </section> </article>

9th Jul 2020, 3:06 PM
Andrew
1 Answer
+ 2
Your text will be larger in article tag instead of section tag, cause article wraps it, as a chapter
9th Jul 2020, 3:13 PM
{P~A} Programmation Addict
{P~A} Programmation Addict - avatar