Hi! I’m trying to understand how to use semantic tags to make my websites more accessible, and a few questions are emerging—could someone help me gain some clarity?
For one, how would I assign a “main” tag to just one element? In my Navigator, I might have several sections making up the “main” section?
Also, what is the difference between “header” and “nav” exactly? I’m not sure what to tag as “header.” I’m using a navigation component (which I understand automatically gets tagged as “nav.”) and within this are some header things like my logo and a site search. Perhaps I should nest the nav, logo, and search bar together in a div tagged as “header”?
Thirdly, I’m not sure how to tag the parts of a homepage like this: https://www.hilarybrewerdesign.de/
A blog or text page would be more straightforward— Likely there would be an “article” and “sections” nested within. But on the homepage, there are different kinds of information, like a hero section, some features with short descriptions, a form… how would I tag a page like that?
Thanks in advance…
Hilary