- Joined
- 22 Feb 2010
- Posts
- 1,629
Hey all again.
Small issue
I tryed validateing but this is an error
<a href="DS Lite White.xhtml"><img src="../images/DS Lite White.jpg" /></a>
That above gives me a nice box with an image and a link...
But w3C gives this error:
Line 48, Column 75: required attribute "alt" not specified
<a href="DS Lite White.xhtml"><img src="../images/DS Lite White.jpg" /></a>
The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.
Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.
Anyone got any ideas why this is happening?
Thanks
here is the code for the box:
<div class="item_box">
<a href="DS Lite White.xhtml"><img src="../images/DS Lite White.jpg" /></a>
<br /><a href="DS Lite White.xhtml">Nintendo DS Lite White</a><br />
<small>£65.00</small>
</div>
Small issue
I tryed validateing but this is an error
<a href="DS Lite White.xhtml"><img src="../images/DS Lite White.jpg" /></a>
That above gives me a nice box with an image and a link...
But w3C gives this error:
Line 48, Column 75: required attribute "alt" not specified
<a href="DS Lite White.xhtml"><img src="../images/DS Lite White.jpg" /></a>
The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.
Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.
Anyone got any ideas why this is happening?
Thanks
here is the code for the box:
<div class="item_box">
<a href="DS Lite White.xhtml"><img src="../images/DS Lite White.jpg" /></a>
<br /><a href="DS Lite White.xhtml">Nintendo DS Lite White</a><br />
<small>£65.00</small>
</div>