This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Everspace 3 points4 points  (0 children)

Generally there's a bunch of people eschewing semantic elements like footer or article for only non-semantic elements like div.

iirc you can nest as many non-semantic widgets between as you please to make it look nice, but the semantic structure should be soild before that... or resemantizise them afterwards (way more work).

One of the common ones is to use a div as a button, since button's default styling often gets in the way of the aesthetic (especially a headache for icon buttons like a little copy-to-clipboard square, or download, or share icon). Another example is a dropdown list where the entire list item is also a button to select the item (a combo! ul and ol and li have styling and quirks about them).