I often work with 3rd party code and I’m often confused by so much html code. SEO professionals know that text/code ratio is very important so you should save every byte of code when it’s possible. Today I want to focus on image tag and the ways people use it in a bad (or just not good) way.
Example #1:
<img src="file.jpg">
It’s short (no much html code). But wrong. Try to validate such code against W3C rules and you’ll know what XHTML code requires self-closing tag and the "alt" attribute is required for "img". So, the correct way for this would be at least:
<img src="file.jpg" alt="" />
[Read more]