Hey Everyone,
I’m not new to HTML as it’s been around for a long time but I’m somewhat new to developing for the web.
Currently I’m reviewing so...
For further actions, you may consider blocking this person and/or reporting abuse
I read this last week and I'll link it here. Ken's post on using semantic elements. and not using so many
<div>
s!Yeah yeah I see, thanks! Good to know there’s a way to make screen readers ignore something.
I think the “hate” on using divs is more from using a div when there is a semantic element that is better to use.
Eg:
<div role=“navigation”>
vs<nav>
So using div isn’t a no-no, it’s just a last-resort if there isn’t a semantic element for the use case. This is in contrast to what may have been a trend of excessive use of divs.
Re: Validating HTML
There are some services that do HTML validation (I didn't know about this). This relates to the topic of best practices. But, I think that a validator can't determine everything for you. For example I doubt it would distinguish an error between using an
em
orstrong
tag.So I dug around and I've found a few things that I'm going to experiment with. I haven't had time to try them all yet:
See also validator
I went digging a little just now on google and found this.
html-best-practices
There's a lot of info there.
What scenario would you use that for?