Jump to content

I just don't get this! (validation)


Room23

Recommended Posts

Ok, I started with HTML today, so I figured I might try to do this the right way, so I validate very often to check for errors. But now I even get errors when I copy the code from the examples :) Here is the code i try to use:

<p>An image from W3Schools:<img src="http://www.w3schools.com/images/ie.gif" width="73" height="68"></p>

The picture itself is showing, can anyone please help?Here is the error msg:

Error  Line 12 column 72: required attribute "ALT" not specified....ols.com/images/ie.gif" width="73" height="68">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>.

Thanks for all help!

Link to comment
Share on other sites

Depending on which doctype you use, you might wanna close the image tag.html: <img src="..." alt="...">xhtml: <img src="..." alt="..." />

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...