sanderium to Asklemmy@lemmy.mlEnglish · 1 day agoWhy are h1 headings smaller than h2 when inside and article tag?message-squaremessage-square8fedilinkarrow-up111arrow-down11file-text
arrow-up110arrow-down1message-squareWhy are h1 headings smaller than h2 when inside and article tag?sanderium to Asklemmy@lemmy.mlEnglish · 1 day agomessage-square8fedilinkfile-text
minus-squarebleistift2@sopuli.xyzlinkfedilinkEnglisharrow-up3·edit-21 day agoDo you mean… body > article > h1 is smaller than body > h2 body > article > h1 is smaller than body > article > h2? And where? Which spec stylesheets are you talking about? For (1), https://css-tricks.com/document-outline-dilemma/ might answer your question.
minus-squaresanderiumOPlinkfedilinkEnglisharrow-up2·edit-21 day agoIt is number 2, <body> <main> <article> <h1>Post Title</h1> <h2>Post "Topic"</h2> </article> </main> </body> Doing now the same as some developers I found: <body> <main> <h1>Post Title</h1> <article> <h2>Post "Topic"</h2> </article> </main> </body> Im asking because I found this question on stackoverflow for the section tag
Do you mean…
body > article > h1
is smaller thanbody > h2
body > article > h1
is smaller thanbody > article > h2
?And where? Which spec stylesheets are you talking about?
For (1), https://css-tricks.com/document-outline-dilemma/ might answer your question.
It is number 2,
Doing now the same as some developers I found:
Im asking because I found this question on stackoverflow for the section tag