Replying to @stolinski @kvlly
Size shouldn’t be in HTML. What does size mean to a screen reader, when you’re saying it conflicts with the actual proper semantic order?
2
1
Web these days...maybe I’m too old school. CSSZengarden, WASP, ALA, etc. my heroes were/are @mholzschlag @meyerweb @mezzoblue to me, <h1 class=“h2”> is just wrong 🤷🏻‍♂️
1
2
I'm not sure if you think I'm some young gun or something, but this is the same way people have been defining type scales since CSS Zen Garden. h1 is semantically the highest level of heading. `.h2` has no semantic meaning and is defining the 2nd largest heading size
2
2
There is nothing "web these days" about this. class="h2" has no semantic meaning. I'm very confused about what your position is here.
1
1
My position is that it’s not semantic markup. You’re exactly right: it has no semantic meaning. It’s correcting for an error in markup or laziness in style code. If it’s an h2, put it in an <h2>. If it’s an <h1> but needs subtle emphasis, code class=“subtle”.
1
<h2> does not mean the "size of an 2nd heading" it mean the "2nd most important thing on the page" this has been the same since before you started dev'ing. - Correct.
2
3
If you aren't a dev and don't know how screen readers work, why would you argue with someone who is and does? - Wut? I did web & accessibility consulting & teaching for 15 years.
2
2
H1 is reserverved for top heading. H2 and so on are structural in relation to screen readers. They are read out so people using the reader understand the structure of the document. Darn y'all, you sucked me in!
1
1
I'm just talking about classes here not the actual element <h1>
1
1
THAT makes far more sense. Meaning changes with context!

Jan 8, 2021 · 9:52 PM UTC

1