+ 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>
1 Respuesta
+ 2
Your text will be larger in article tag instead of section tag, cause article wraps it, as a chapter