3 ms·
But if they leave out alt="", then they won't validate. What are they supposed to do, force the user to enter text? Then you'll end up with alt="sldfjsjf".
by kalleboo 14y ago
But if they leave out alt="", then they won't validate. What are they supposed to do, force the user to enter text? Then you'll end up with alt="sldfjsjf".
- olavk 14y agoNo, it is correct according to the HTML5 spec to leave out the alt-attribute if there is no valid alternative text available.