Re: HTML Document conventions.

Sorry, I guess I already figured out....

If I'm right, quotation marks are only needed when attribute values are not
alphanumeric (like #FFFFFF for example where the "#" makes quoting
necessary)...

There are some exceptions, though (like hyphens)...

--- Skult


----- Original Message -----
From: "Skult" <Skult@softhome.net>
To: <www-html@w3.org>
Sent: Sunday, April 22, 2001 7:34 PM
Subject: HTML Document conventions.


> I've browsed through the HTML Specs and couldn't find information
regarding
> the use of quotation marks (don't know if that's the right word, I mean:
"")
> when defining attributes for HTML tags.
>
> Can anyone tell me whether there is any difference between
>
> <img src="some_picture.png" width="10" height="10" alt="Some alternative
> text"> and
> <img src="some_picture.png" width=10 height=10 alt="Some alternative
text">.
> Or may I even write
> <img src='some_picture.png' width='10' height='10' alt='Some alternative
> text'>
>
> (I've never tried the last one, though)...
>
> Thanks in advance,
> --- Skult
>
>

Received on Sunday, 22 April 2001 16:37:04 UTC