I tweeted/posted out a half-joking question the other day about the usage of the <div> tag still.
element to hold the content of their site...
For further actions, you may consider blocking this person and/or reporting abuse
Check my website — it's been like this since 1.0.0. 😎
Nicely done!
Todd, you’re the main man.
Thank you, Salma! 😊🤣
I forgot is exist 😂
It's always good to have a reminder. I sometimes forget about certain things while coding myself!
Nice article, always good to be cognizant of these things!
Does this really pass the accessibility/semantic HTML "sniff test", though? Dumping all body content inside
main
as implied byid="app"
suggests that everything is main content. If everything is main, then nothing is main.I sometimes start off a project like this (or more often with something like
div#app>(header>nav#site-nav)+main#container>{...everything else}
), but usually after a while I still find I've placedmain
too far up the tree and it ends up holding stuff like secondary navigation, sidebars, or site footers, which isn't semantically correct. At that point it's time for a refactor.Adjust accordingly then. Which it seems you have. No, not everything needs to be in
<main>
but it would be nice to have main content in the main container. Also, as I stated in the article, "I get that there are cases where it is a<div>
and what I am saying is moot." so I know there are many cases where it may not be applicable, but if it is, use it is what I am saying.I do?
If you want to make your stuff more accessible, yes. If not, then you don't have to. Your mileage may vary.
no, I mean I do!
😂 Heck yeah!