Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
xhtml Validation error
Old 08-23-2007, 10:34 PM xhtml Validation error
Captor of Sin's Avatar
Extreme Talker

Posts: 155
Location: Canada
Trades: 2
I'm trying to get one of my pages to validate, but I can't. The problem is a table I have and i'm only getting one error. I thought that tables comply with valid xhtml?

Anyway this is the error i'm getting.

Validation Output: 1 Error
Line 34, Column 76: document type does not allow element "table" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag.
…="center" cellpadding="5" cellspacing="5">✉
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>").



Any input? thanks.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
Captor of Sin is offline
Reply With Quote
View Public Profile Visit Captor of Sin's homepage!
 
 
Register now for full access!
Old 08-23-2007, 11:04 PM Re: xhtml Validation error
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Can you post a link to the page in question? You might be missing a closing tag for something else before the table in your code.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 08-24-2007, 12:08 AM Re: xhtml Validation error
Captor of Sin's Avatar
Extreme Talker

Posts: 155
Location: Canada
Trades: 2
I looked over it a couple times and it doesn't look like i'm missing any end tags or anything, but a fresh pair of eyes are probably better than mine.

The page is located here.

Thanks.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
Captor of Sin is offline
Reply With Quote
View Public Profile Visit Captor of Sin's homepage!
 
Old 08-24-2007, 10:30 AM Re: xhtml Validation error
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Thinks like <div align="center"> are incorrect for XHTML because XHTML requires the separation of presentational code and content. The centering has to be done thru proper CSS, not sloppy in-line code.

In looking at your code, it appears you have a table wrapped INSIDE <p></p> tags - not allowed. You also have these errors:

Quote:
line 71 column 14 - Warning: <br> element not empty or not closed
line 76 column 81 - Warning: <a> attribute "target" has invalid value "0"
line 33 column 10 - Warning: trimming empty <p>
ALL tags must be closed, a <br> must be written as <br />
The "target" attribute is deprecated and should not be used and obviously has an incorrect value anyway.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 08-24-2007, 11:42 AM Re: xhtml Validation error
Captor of Sin's Avatar
Extreme Talker

Posts: 155
Location: Canada
Trades: 2
Ah, it was the <p> that did it. Thanks.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
Captor of Sin is offline
Reply With Quote
View Public Profile Visit Captor of Sin's homepage!
 
Reply     « Reply to xhtml Validation error
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.21736 seconds with 12 queries