xhtml table validation (Full Version)

All Forums >> [Web Development] >> Cascading Style Sheets



Message


vision2000 -> xhtml table validation (11/23/2005 14:29:14)

Hi,

Why does this table not validate for valid xhtml?

<table width="700" align="center" cellpadding="0" cellspacing="0" >

ihost-websites.com/hf/

What CSS could I use instead..maybe it will then validate:-)

Here's the result from validation:
#############
This page is not Valid XHTML 1.0 Transitional!
Below are the results of checking this document for XML well-formedness and validity.

Error Line 79 column 71: document type does not allow element "table" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag.
...lign="center" cellpadding="0" cellspacing="0" >
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
#############

Thanks




womble -> RE: xhtml table validation (11/23/2005 14:55:14)

It's because you've got the whole table wrapped in <p> </p> tags - take those out and validates fine. You can't put a table within a paragraph.




vision2000 -> RE: xhtml table validation (11/23/2005 15:05:51)

Thanks...it's fine now and such a simple error




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.0625