Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Dal123

macrumors 6502a
Original poster
Oct 23, 2008
903
0
England
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:
HTML:
<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>

HTML:
#  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…
 
You just need to have a space separating the src and alt attributes and, IMHO and for clarity only, one separating the image tags.

Code:
<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>
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.