Hacker News new | ask | show | jobs
by daiwei 3806 days ago
I've used `nav` or `section` for a long time, never found of the difference from `div`. Screen readers? Maybe for `nav`, what about `section` and other 1000 tags with subtle different semantics?
1 comments

this is all about default CSS values associated with the tag, you can override them as you like which is probably what your relying on.
But obviously when you use your reset.css that all goes out the window anyway... I thought it was some semantic thing for screen readers.
Correct me if I'm wrong but I believe there are aria attributes (e.g.: role="navigation") that can also be used as well for this same purpose. Nav is probably safer, but agreed on the CSS reset.