top | item 41337236

(no title)

polydevil | 1 year ago

It is the same div soup for a screen reader, because there is no behavior attached to those new tags. They can not be a landmark, there are not marked as headings, they have no roles. Just a container with a text. And to attach the behavior you need to use javascript. So without js it wont work.

Why bother and try yo create half-baked non working solution if you can just use html?

Well, it easier to style, maybe. But hey, there is a class attribute.

discuss

order

prisenco|1 year ago

Custom elements are for when semantic elements run out, don't apply or are unnecessary.

Semantic elements are always preferred.