- From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
- Date: Fri, 29 Apr 2005 18:23:55 +1000
- To: Albert Chang <albert.chang@comcast.net>
- CC: www-validator@w3.org
Albert Chang wrote: > Ok, I'm trying to make my scripts into xhtml 1.1 strict. Scripts? I think you mean markup. > I'm just teaching myself. I already have some knowledge of xhtml. > I've been using 1.0 transitional for a while now. > > The validator said that for xhtml 1.1, the anchor tag no longer supports > the name attribute. However, when I went to > http://www.domstyle.net/tuts/xhtml/xhtml3.html, the name attribute > bypassed the validator. I would like to know why. Don't bother with the name attribute for that purpose, use the id attribute instead. Name attributes are generally only required for form fields and for backwards compatibility with obsolete browsers like Netscape 4 (when using HTML4, since NN4 does not support XHTML). Also, you should be aware that XHTML 1.1 SHOULD NOT be served as text/html. Please use application/xhtml+xml instead. However, since IE does support XHTML at all, and there are no semantic benefits for using XHTML over HTML 4 unless you're using mixed namespaces or any other XML only feature. http://www.hixie.ch/advocacy/xhtml You should also be aware of the difference between elements and tags, attributes and properties, etc. The document you linked to makes many mistakes and I suggest you do a lot more research before you try to write a tutorial for it. http://lachy.id.au/log/2004/12/html-tags > I included my xhtml 1.1 source code in an attachment. URLs are preferred over attachments. -- Lachlan Hunt http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web http://GetThunderbird.com/ Reclaim your Inbox
Received on Friday, 29 April 2005 08:24:21 UTC