4 ms·
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 tag
by daiwei 11y 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?
- bluejekyll 11y agothis is all about default CSS values associated with the tag, you can override them as you like which is probably what your relying on.
- estefan 11y agoBut obviously when you use your reset.css that all goes out the window anyway... I thought it was some semantic thing for screen readers.
- FilterSweep 11y agoCorrect 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.