Mobile app version of vmapp.org
Login or Join

Login to follow query

More posts by @Eichhorn148

1 Comments

Sorted by latest first Latest Oldest Best

 

@Cofer257

It depends on your doctype. In HTML 4 and 5, using named entities like » is perfectly valid. However, in XHTML you must use numbered entities like » - most named entities are invalid, except for ", ', <, > and &.

Note: the alt tag is irrelevant in this case, it allows the same textual content as outside of HTML tags.

Simplest solution in my opinion: switch to the HTML5 doctype - <!DOCTYPE html>. It forces standards modes in all browsers, is future proof and is dead simple to remember.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme