Let's say that I want to use “decimal numeric character references” in the alt attribute of the img tag. As an example, “smart quotes” are “ and ”.
In HTML CSE Validator Pro v11.0032, validate the following code:
<img src="images/work-community_168x112.jpg" alt="Our “Soaring with Your Dream” education program" width="168" height="112" />
The result is a the following warning: "[64] An invalid character reference "&" was found in the "alt" attribute value. This may be because the ampersand character was not properly encoded as the entity "&". Example: alt="For him & her" should be alt="For him & her". Note that the ampersand was encoded as "&". Other causes of invalid references are misspelled entity names and missing semicolons.
---"
“Decimal numeric character references” in the alt attribute of the img tag cannot be coded as &#8220; as it appears on the screen as “ rather than a smart quote. “Decimal numeric character references" in the alt attribute of the img tag should not receive the above warning message.



