I know it in the spec stylesheets but why was this made like this?


EDIT:

If anyone is wondering what I am talking about read more from the spec stylesheets

After May 2025 this styling is removed.

To fix this follow Moziilla’s web docs. It shows how to consistently size headings for old browsers.

    • sanderium@lemmy.zipOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      5 months ago

      It 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