Author Topic: My brain doesn't work today (HTML problem)  (Read 1223 times)

Code: [Select]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>asdf</title>
</head>
<body>
<img scr="http://validator.w3.org/images/w3c.png" alt="asdasd" />
</body>
</html>
Someone explain to me why I this image does not display and I'm getting an error on the validator:

Quote
Error Line 7, Column 10: there is no attribute "SCR"

<img scr="http://validator.w3.org/images/w3c.png" alt="asdasd" />

You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.




*src, not scr

Exactly this.

I did this all the time when learning HTML. I remembered it in my head as the sound "sker" to make it easier to remember SCR, unaware it was wrong haha. Its a common mistake I think.

SRC is short for source.

Exactly this.

I did this all the time when learning HTML. I remembered it in my head as the sound "sker" to make it easier to remember SCR, unaware it was wrong haha. Its a common mistake I think.

SRC is short for source.

I remember it as serce

Kept typoing align as aling when starting out html

I didn't do anything wrong when learning html because it's easy lol

I remember it as serce
or you know you could remember it as the actual word Source.

or you know you could remember it as the actual word Source.
I do both! But we all have our own ways of remembering righhtttt?

Thanks. I haven't worked with websites in a while.

Why are you validating it against the extremely ancient HTML3 anyway?