W3C home > Mailing lists > Public > www-html@w3.org > April 2001

Re: HTML Document conventions.

From: Skult <Skult@Softhome.net>
Date: Sun, 22 Apr 2001 20:35:28 +0200
Message-ID: <001001c0cb6b$bf29c9e0$b5f72e3e@sksys>
To: "Skult" <Skult@Softhome.net>
Cc: <www-html@w3.org>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:48 GMT