PDA

View Full Version : Validating images in lists




Dal123
Sep 12, 2009, 03:03 PM
I've got a little problem understanding this validation error on xhtml 1.0 strict :confused:.
This is what I have and below it is what the developer toolbar says on firefox developer toolbar.:confused:
<ul id="mid">
<li>Formwork Sub-Contractor</li>
<li><img src="images_site/valid-xhtml10-blue.png"alt="valid xhtml 1.0 strict"/><img src="images_site/valid-css-blue.png"alt="valid css"/></li>
</ul>

# Error Line 167, Column 51: XML Parsing Error: attributes construct error

…="images_site/valid-xhtml10-blue.png"alt="valid xhtml 1.0 strict"/><img src="


# Error Line 167, Column 51: XML Parsing Error: Couldn't find end of Start Tag img line 167

…="images_site/valid-xhtml10-blue.png"alt="valid xhtml 1.0 strict"/><img src="


# Error Line 167, Column > 80: XML Parsing Error: attributes construct error

…lue.png"alt="valid xhtml 1.0 strict"/><img src="images_site/valid-css-blue.pn…


# Error Line 167, Column > 80: XML Parsing Error: Couldn't find end of Start Tag img line 167

…lue.png"alt="valid xhtml 1.0 strict"/><img src="images_site/valid-css-blue.pn…



nuxx
Sep 12, 2009, 05:35 PM
You just need to have a space separating the src and alt attributes and, IMHO and for clarity only, one separating the image tags.

<li><img src="images_site/valid-xhtml10-blue.png" alt="valid xhtml 1.0 strict"/> <img src="images_site/valid-css-blue.png" alt="valid css"/></li>

Dal123
Sep 13, 2009, 07:01 AM
Wow that was it :). Thanks buddy :D.