On Thu, 11 Nov 2004 14:34:54 +0000, Robin Goodall <anon@somewhere.com> wrote:
[color=blue]
>Maxim Vexler <hq4ever (at) 012 (dot) net (dot) il> wrote:[color=green]
>>
>> How should i do it if i had something like <HEAD><TITLE='PHP foo'></HEAD>?[/color]
>
>[nit-picking]
>Tags and attributes should be lower case[/color]
This is not required, and the examples in the HTML specification have the
element names in upper case.
HTML4.0.1, sec 1.2.1 (Document Conventions, Elements and Attributes):
http://www.w3.org/TR/html4/about.html#h-1.2.1
"Element names are written in uppercase letters (e.g., BODY). Attribute names
are written in lowercase letters (e.g., lang, onsubmit). Recall that in HTML,
element and attribute names are case-insensitive; the convention is meant to
encourage readability."
HTML4.0.1, sec 3.2.1:
http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.2.1
"Element names are always case-insensitive."
[color=blue]
>Attribute values should be in double quotes no single.[/color]
Single quotes are perfectly acceptable; they're explicitly allowed in the HTML
specification, via the SGML specification:
HTML4.0.1, sec 3.2.2:
http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.2.2
"By default, SGML requires that all attribute values be delimited using either
double quotation marks (ASCII decimal 34) or single quotation marks (ASCII
decimal 39)."
--
Andy Hassall / <andy@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool