- From: Masayasu Ishikawa <mimasa@w3.org>
- Date: Fri, 18 Dec 1998 17:13:39 +0900
- To: XavePlant@iName.Com
- Cc: www-html@w3.org
I will answer only the last question.
Xavier Plantefeve <XavePlant@iName.Com> wrote:
> A last thing: I had a quick look but was unable to find it: in HTML 4,
> is <IMG Src=foo.jpg ...> correct? Or is <IMG Src="foo.jpg" ...> the only
> correct manner?
<img src=foo.jpg ...> is correct. "3.2.2 Attributes" [1] of HTML 4.0
Specification says:
In certain cases, authors may specify the value of an attribute
without any quotation marks. The attribute value may only contain
letters (a-z and A-Z), digits (0-9), hyphens (ASCII decimal 45), and
periods (ASCII decimal 46). We recommend using quotation marks even
when it is possible to eliminate them.
foo.jpg contains only letters and a period, so it can be written without
quotation marks (though I don't recommend to do so, as mentioned above).
By the way, its SGML declaration [2] says:
NAMING LCNMSTRT ""
UCNMSTRT ""
LCNMCHAR ".-_:"
UCNMCHAR ".-_:"
Which means, low lines (ASCII decimal 95) and colons (ASCII decimal 58)
are also allowed without quotation marks. I think this point should be
mentioned in the errata [3].
[1] http://www.w3.org/TR/REC-html40/intro/sgmltut.html#h-3.2.2
[2] http://www.w3.org/TR/REC-html40/sgml/sgmldecl.html#h-20.1
[3] http://www.w3.org/MarkUp/html40-updates/REC-html40-19980424-errata.html
Regards,
--
Masayasu Ishikawa / mimasa@w3.org
W3C - World Wide Web Consortium
Received on Friday, 18 December 1998 03:20:55 UTC