News for hackers. Stuff that matters.
Re:Default styles for h1 elements are changing by mjevans on Friday April 11, 2025 @12:26AM (#43650503)
I still think even one within a section (or even div like nested sections) shouldn't be a warning... but I hadn't heard of <section> until today (seemingly it's been in browsers for decades, I just hadn't seen it USED anywhere) so I'm not sure if that implies something other than a logical structural block. From the context it seemed like a different type of div or span.
Re:Default styles for h1 elements are changing by Cthulhu_ on Friday April 11, 2025 @03:32AM (#43651358)
"decades" I had to look it up, it's been 15 years apparently, with HTML5 being 17 years old... I quipped to my colleague that I'm still stuck at XHTML. Mind you, that's also because in 2008 we still had to support Internet Explorer 6.
Re:Default styles for h1 elements are changing by marcosdumay on Friday April 11, 2025 @12:53PM (#43655918)
Sections are a very good idea for a tag that embedded a document in a lower hierarchy inside your document. The way that it should be from the beginning instead of having the global h1, h2... and hacking a structure out of them.

But then screen readers universally decided that no, instead of using sections to navigate a page, they will just ignore the spec and flatten everything into the top of the hierarchy. So nobody uses them.

(And yes, it shouldn't be a warning to use an h1 in a section with the default style either. They are just making a non-backwards-compatible change to the default style, fucking own it and have the old pages change.)