backwards compatibility - Image alternate text for html 1 -
is possible use alternate text in <img> tag in html in way compatible html 1(ignoring tags doesn't understand). <img src="image_source" alt="alt text"> alt text </img> valid? more importantly, display correctly?
i figured out. <img src="image_source" alt="alt text" /> <!-- >alt text < --> works. space between <!-- , >, , < , --> internet explorer doesn't think broken conditional comments , try display alt text.
a modern browser sees same thing as:
<img src="image_source" alt="alt text" /> <!-- comment -->
old(html 1) browsers see: <busted_tag busted_atribut="broken" bad_atribute="busted"> <bad_tag>alt text<broken_tag>
Comments
Post a Comment