Class and ID declarations are HTML and used for purposes beyond CSS. They should be semantic. A good test is if you can swap out your style sheet and display a completely different design, without affecting the HTML.
1
It is semantic. Heading 2 size is not the same thing as <h2>. Wether you call it Heading 2 or Level 2 Heading or whatever, those are just different ways of describing visually the same thing.
1
1
In my world, .h2 .heading-2, or anything else describing a scale of type is doing exactly what you are talking about. .h2 !== <h2>. I'm not applying the semantics of one element to another, I'm describing one element as having the 2nd largest size a heading can have. Ya dig?
1
That’s a self conflicting answer. If the item can semantically be described as the second most important hierarchical header on the page, it belongs in an <h2> tag, ya dig?
2
Hierarchical size order and semantic order aren't always tied together. Size !== semantic importance.
2
1
6
One thing to keep in mind here, I'm no good at the English language, there very well could be a disconnect between what my brain thinks and what you are reading. :)
1
1
You seem to write perfectly well to me. As for the dyslexia, is it a letter order issue or different? I have issues with language too, but they fall under OCD. For real :)
Jan 8, 2021 · 10:00 PM UTC
2
1


