News for hackers. Stuff that matters.
Re:Default styles for h1 elements are changing by quotemstr on Thursday April 10, 2025 @11:59PM (#43650393)
It's a shame that the outline algorithm didn't succeed. Why shouldn't we be able to compose content from different sources arbitrarily? Why shouldn't I be able to write an <h1> fragment and have it mean "top-level heading OF MY CONTEXT" instead of making an assertion about global document context that I can't control?
Re:Default styles for h1 elements are changing by zarzavat on Friday April 11, 2025 @01:54AM (#43650876)
The outline algorithm didn't succeed because it was too complicated and hard to understand for the common case.

You can define your own styles and have a similar behaviour.

Re:Default styles for h1 elements are changing by teo_zero on Friday April 11, 2025 @01:55AM (#43650888)
While I agree on hierarchical headings, I don't think H1...H6 are the right tools. These represent absolute levels, we would need a means to express "level+1". I think a H tag with no digit would better convey the meaning "heading of the right level as defined by the surrounding SECTION tags".
Re:Default styles for h1 elements are changing by pjerem on Friday April 11, 2025 @03:11AM (#43651261)
Well I totally agree with you but we don’t have that. h1 was that, but not anymore.

It’s a shame that we basically can’t rely on default styling to structure a simple document .

There are tons of moments in my life and in my career where I wanted to "just publish" some web page with content while not really caring for aesthetics. But even if you write semantically correct HTML without styling, what you get is not neutral and coherent as it should be, on the contrary, it’s all over the place and inconsistent.

Re:Default styles for h1 elements are changing by lblume on Friday April 11, 2025 @02:05AM (#43650928)
But they don't have to represent absolute levels. They could just as easily have represented relative levels, with h2 in a doubly nested section to describe the level today expressed as h4. Dependent on your usecase, this could either be very useful or just mess up your styles a lot.
Re:Default styles for h1 elements are changing by brewmarche on Friday April 11, 2025 @11:45AM (#43655163)
XHTML2 had some good ideas.
Re:Default styles for h1 elements are changing by zcorpan on Friday April 11, 2025 @06:06AM (#43652257)
There's a new proposal to address this: https://github.com/whatwg/html/issues/5033