[prev in list] [next in list] [prev in thread] [next in thread] 

List:       quanta
Subject:    Re: [Quanta] /[KLinkStatus] <a id="top"></a> malformed
From:       Jörg_Becker <news () elke-joerg ! de>
Date:       2008-03-10 15:15:36
Message-ID: 200803101615.36294.news () elke-joerg ! de
[Download RAW message or body]

On Monday, 10. March 2008 15:11:44 Carl Hartung wrote:
> Off the top of my head, I /think/ you want to use <a name="top"></a> as
> compared to <div id="name"></div>. Anchors have names and divs have id's.
> Is that correct?

http://www.w3.org/TR/xhtml1/#defs  4.10:

"HTML 4 defined the name attribute for the elements a, applet, form, frame, 
iframe, img, and  map. HTML 4 also introduced the id attribute. Both of these 
attributes are designed to be used as fragment identifiers.

In XML, fragment identifiers are of type ID, and there can only be a single 
attribute of type ID per element. Therefore, in XHTML 1.0 the id attribute is 
defined to be of type ID. In order to ensure that XHTML 1.0 documents are 
well-structured XML documents, XHTML 1.0 documents MUST use the id attribute 
when defining fragment identifiers on the elements listed above. See the HTML 
Compatibility Guidelines for information on ensuring such anchors are 
backward compatible when serving XHTML documents as media type text/html.

Note that in XHTML 1.0, the name attribute of these elements is formally 
deprecated, and will be removed in a subsequent version of XHTML."


So for my understanding  <a id="top"></a> should be allowed since HTML 4.0 
(1998), and have to be used since XHTML 1.0 (2000).


Jörg.
_______________________________________________
Quanta mailing list
Quanta@mail.kde.org
https://mail.kde.org/mailman/listinfo/quanta

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic