XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old April 21st, 2003, 05:27 AM
coredumped coredumped is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Posts: 149 coredumped User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 49 m 47 sec
Reputation Power: 7
XHTML <TABLE> element problem.

I'm trying to validate my XHTML-generated site, but I'm getting the following errors:

document type does not allow element "table" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag

I also get the error for <hr width=...> tags, and <center> tags.

Below is a sample of my XHTML:

<p>
<a name="top" />
<table width="100%">
<tr>
<td align="center">Jump To: <a href="#section1">Section 1</a></td>
</tr>
</table>

...
</p>

Obviously this isn't ALL of my output XHTML, but it IS where it's failing. It'll give me the error on the <table> tag on the fhird line.

Any ideas why this is happening, or how to get around it?


Thanx,

- coredumped.

Reply With Quote
  #2  
Old April 21st, 2003, 02:54 PM
miffo miffo is offline
Bored
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Location: IL
Posts: 36 miffo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via AIM to miffo
Maybe you can't put <table> inside <p>.

Reply With Quote
  #3  
Old April 21st, 2003, 03:05 PM
coredumped coredumped is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Posts: 149 coredumped User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 49 m 47 sec
Reputation Power: 7
You're right... turns out you CAN'T nest a <table> element inside a <p> element. I tested it this morning and it works fine now. Dunno why, but I'm sure there's a reason for it. :/

- coredumped.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > XHTML <TABLE> element problem.


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway