Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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".


No, it is correct according to the HTML5 spec to leave out the alt-attribute if there is no valid alternative text available.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: