Tables and certain xhtml elements!, Hey all! :) |
Tables and certain xhtml elements!, Hey all! :) |
v0rtex |
Feb 22 2007, 04:41 PM
Post
#1
|
Newbie Group: Members Posts: 10 Joined: 22-February 07 Member No.: 2,001 |
Hi,
So, i have created my website and just went to validate it and its throwing up stupid errors about ( <p class= ... ) ... Errors that shouldn't be there! Now, i am pretty sure its because it is inside a table? Does anyone know how to use these elements inside a table or will i have to go for a bit of a redesign? Look forward to your help! v0rtex |
Darin McGrew |
Feb 22 2007, 05:05 PM
Post
#2
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
Can you provide the URL (address) of a document that demonstrates the problem?
Taking a guess, perhaps you have the P elements inside a TABLE element, but not inside a TD element. (And the TD element needs to be inside a TR element.) |
Effovex |
Feb 22 2007, 05:21 PM
Post
#3
|
Serious Coder Group: Members Posts: 251 Joined: 6-January 07 From: Sherbrooke, Qc, Canada Member No.: 1,477 |
Are you putting the p directly in the table? A paragraph can be contained in a table CELL (td) but not directly in a table.
Anyway, it's impossible to help you without seeing the page and the errors thrown by the validator. What validator are you using btw? Are you certain it's a real validator? Edit: muh? I opened the page 3 minutes ago and there were no replies, but Darin answered 15 minutes ago... This post has been edited by Effovex: Feb 22 2007, 05:22 PM |
v0rtex |
Feb 22 2007, 06:55 PM
Post
#4
|
Newbie Group: Members Posts: 10 Joined: 22-February 07 Member No.: 2,001 |
Hi guys,
Thanks for your quick responces!! The link is as follows: http://www.abernightlife.com/uni/index.htm Please let me know what you think! You may want to run it through the w3c validator! It brings up 9 errors! All to do with what i mentioned above! Kind Regards |
v0rtex |
Feb 22 2007, 06:56 PM
Post
#5
|
Newbie Group: Members Posts: 10 Joined: 22-February 07 Member No.: 2,001 |
|
Darin McGrew |
Feb 22 2007, 07:15 PM
Post
#6
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
The report generated by our validator might be a bit easier to understand. Anyway, here's what it means:
QUOTE Error: element p not allowed here; possible cause is an inline element containing a block-level element You can't put a block-level element (like p) inside an inline element (like span). This has nothing to do with the tables.QUOTE Error: end tag for p omitted; end tags are required in XML for non-empty elements; empty elements require an end tag or the start tag must end with /> You're missing the closing </p> tag.QUOTE Error: end tag for div omitted; end tags are required in XML for non-empty elements; empty elements require an end tag or the start tag must end with /> You're missing the closing </div> tag.While I'm at it, you should remove CODE <p class="first"> </p> from your HTML and specify appropriate margins/padding in your CSS. |
v0rtex |
Feb 22 2007, 07:21 PM
Post
#7
|
Newbie Group: Members Posts: 10 Joined: 22-February 07 Member No.: 2,001 |
Cheers!
Guess i need to go do my homework on span then huh! and how do i specify appropriate margins/padding in your CSS?? This is for a uni project btw to demonstrate my knowledge of css and xhtml strict! lol... Hopefully i will pass! Like the site design? Thanks again for your help! |
v0rtex |
Feb 22 2007, 07:23 PM
Post
#8
|
Newbie Group: Members Posts: 10 Joined: 22-February 07 Member No.: 2,001 |
Should i close off the SPAN and put all my block level elements that are inside the table in DIV??
|
v0rtex |
Feb 22 2007, 07:26 PM
Post
#9
|
Newbie Group: Members Posts: 10 Joined: 22-February 07 Member No.: 2,001 |
wow! thats weird, looking at the top of your validator! and i see WebDesignGroup! I am the owner of webdesigngroup.net! Funny huh! lol
|
Lo-Fi Version | Time is now: 27th April 2024 - 10:24 PM |