I brevet "aa1hfc$28aj$1@news.cybercity.dk" skrev Jakob Andersen
(jakob@effectus.dk) den 22/04/02 19:34:
> "Martin Kruse" <martin.kruse@get2net.dk> wrote in message
> news:aa1bbl$1umh$1@news.cybercity.dk...
>> <a href="index.htm">index.htm</a><br>
>> Og ikke
>> <a href='index.htm'>index.htm</a><br>
>>
>> Det sidste er nemlig ikke helt korrekt html.
>
> Kan du venligst give mig en reference til w3c's sider hvor der står at det
> ikke er korrekt HTML.
Det er ikke muligt, for ifølge W3C er begge dele 100% korrekt HTML:
--
3.2.2 Attributes
Elements may have associated properties, called attributes, which may have
values (by default, or set by authors or scripts). Attribute/value pairs
appear before the final ">" of an element's start tag. Any number of (legal)
attribute value pairs, separated by spaces, may appear in an element's start
tag. They may appear in any order.
In this example, the id attribute is set for an H1 element:
<H1 id="section1">
This is an identified heading thanks to the id attribute
</H1>
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). Single quote marks can be included within the attribute
value when the value is delimited by double quote marks, and vice versa.
Authors may also use numeric character references to represent double quotes
(") and single quotes ('). For double quotes authors can also use
the character entity reference ".
--
(
http://www.w3.org/TR/html4/intro/sgmltut.html)
Desværre vil jeg dog tilføje, jeg synes personligt det er rodet med to
muligheder og mon ikke også at de strammer op på et tidspunkt.
I f.eks. den nye P3P definition SKAL attributter f.eks. være i gåseøjn ("),
de var ikke et krav tidligere.
- Morten