Click to See Complete Forum and Search --> : Complete XHTML Tags list


Benoni
09-16-2003, 12:36 PM
I have serached around the net and yet havn't been able to find a complete list of all the XHTML 1.0 tags and their attributes. Does anyone know of a site with this - I would be very greatful. Also I noticed that some sites say <applet> is depricated and that <object> should be used instead. However some sites say that <object> is not available in Netscape. Which tag should I use. I am also making a poll to see on a whole what most people use - though which is more "correct".
Thanks very much
Benoni

Charles
09-16-2003, 12:46 PM
XHTML &trade; 1.0 is simply an XML version of HTML 4.01 and XHTML &trade; 1.1 is XHTML &trade; 1.0 Strict. The HTML 4.01 elements are listed at http://www.w3.org/TR/html4/index/elements.html.

pyro
09-16-2003, 12:48 PM
Since XHTML (http://www.w3.org/TR/xhtml-basic/) is just the reformulation of HTML 4.01 (http://www.w3.org/TR/html401/) in XML, you are going to want to look at the HTML 4.01 specs on objects (http://www.w3.org/TR/html401/struct/objects.html) and you will see that the tag you should be using is the <object> (http://www.w3.org/TR/html401/struct/objects.html#h-13.3) tag.

Benoni
09-16-2003, 01:23 PM
I thought XHTML was replacing HTML. Am I wrong?
Thanks
Benoni

pyro
09-16-2003, 01:31 PM
Yes, in a way XHTML is the next version of HTML, though more of a modification to the current version, than an actual new verion. Though HTML 4.01 will still be around for a while, and isn't necessarily outdated. Also, read this quote from the W3C:

The XHTML 1.0 spec relies on HTML 4.01 for the meanings of XHTML elements and attributes.So, as both Charles and I have said, XHTML is, in essence, HTML 4.01.

Benoni
09-16-2003, 01:58 PM
So would you advise I use HTML 4.01 or XHTML??

pyro
09-16-2003, 02:09 PM
Probably XHTML, as that is where the future is headed, though I see nothing wrong with a valid HTML 4.01 Strict page, for the time being...

Robert Wellock
09-17-2003, 08:45 AM
You might as well learn one of the XHTML Families as XHTML 1.0 is easier to learn than HTML 4.01 and <object> has been available for a long time even Netscape 4.7x understood it to some degree.

Charles
09-17-2003, 03:00 PM
Originally posted by Robert Wellock
You might as well learn one of the XHTML Families as XHTML 1.0 is easier to learn than HTML 4.01 and <object> has been available for a long time even Netscape 4.7x understood it to some degree. The only way XHTML &trade; 1.0 is easier to learn than HTML 4.01 is that HTML has a lot of things that are optional. But most people who write HTML include those optional things anyway, never knowing that they could be omitted.

2) MSIE still doesn't get the OBJECT element right. And a recent security patch made it get it even more wrong.

Benoni
09-18-2003, 02:03 PM
Thanks I will use XHTML.
How badly does IE mess up the <object> tag. I am quite worried about using it incase it doesn't work on certian browsers.
Thanks
Benoni