Exercise 7
Explanation
Cause
- The name attribute was used in an
<img />tag under the XHTML-strict DTD. - The name attribute has been deprecated from the
<img />. It does not exist for this tag in the DTD. - So, the XHTML validator says that there is no attribute "name".
- The name attribute was used in an
Correction
- Switch from the XHTML-strict DTD to the XHTML-transitional DTD.
Review
