Dan
Premium Member
Registered: 22nd Apr 02
Location: Gorleston on Sea, Norfolk
User status: Offline
|
Im trying to validate my site, but i have 5 errors.
The one im stuck on at the min is:
Line 31, Column 19: start tag for "TR" omitted, but its declaration does not permit this
<td width="100%">
What the hell does that mean lol. BTW, i have no HTML experience lol
Adult GiftsClick here to vist us
|
ashleh
Member
Registered: 23rd Dec 08
Location: Nottingham
User status: Offline
|
did you close the table row off i.e <\tr>?
[Edited on 02-04-2010 by ashleh]
|
Dan
Premium Member
Registered: 22nd Apr 02
Location: Gorleston on Sea, Norfolk
User status: Offline
|
have a look, im really not sure :/
www.protectyourpiece.co.uk
Adult GiftsClick here to vist us
|
AndyKent
Member
Registered: 3rd Sep 05
User status: Offline
|
Jesus christ that code is a state
I think you'll be able to fix it by inserting a another <tr> after line 29, but can't be 100% sure
[Edited on 02-04-2010 by AndyKent]
|
ashleh
Member
Registered: 23rd Dec 08
Location: Nottingham
User status: Offline
|
condom info page, 4th line down, you spelt learn wrong .
|
Dan
Premium Member
Registered: 22nd Apr 02
Location: Gorleston on Sea, Norfolk
User status: Offline
|
that code is 99% standard for an oscommerce store
Adult GiftsClick here to vist us
|
Nismo
Member
Registered: 12th Sep 02
User status: Offline
|
Had a quick look noticed it was tables and couldnt be assed to sift through all the tables, Id say your probally missing a closing tag somewhere.
None simple solution: Learn divs
|
Dan
Premium Member
Registered: 22nd Apr 02
Location: Gorleston on Sea, Norfolk
User status: Offline
|
I dont know any code at all lol.
The suggestion from andy has cured that one cheers!
I have 2 more :S if you fancy helping some more I managed to suss the rest lol
first one:
Line 166, Column 5: end tag for "TABLE" omitted, but its declaration does not permit this
</td>
Which relates to this start tag:
Line 116, Column 13: start tag was here
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
CHeers!!!
Adult GiftsClick here to vist us
|
Reedy
Member
Registered: 11th Apr 04
Location: Hammersmith
User status: Offline
|
Your missing the starting body tag
you need to put <body> in just after the head
|
Reedy
Member
Registered: 11th Apr 04
Location: Hammersmith
User status: Offline
|
<tr>
<td><!-- main_categories //-->
<tr>
LINE 142, its missing a </td> and a </tr>
[Edited on 02-04-2010 by Reedy]
|
Reedy
Member
Registered: 11th Apr 04
Location: Hammersmith
User status: Offline
|
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="4" class="infoBoxContents">
<tr>
LINE 154, missing a </td> and a </tr>
|
ed
Member
Registered: 10th Sep 03
User status: Offline
|
I can't view the HTML but if you want to validated it you shouldn't really be using witdth tags, you should define it in CSS either in a style sheet or in a style tag. The first error is basically saying that the doc type (XHTML Strict/Transitional or whatever) doesn't use those tags.
|
Sam
Moderator Premium Member
Registered: 24th Dec 99
Location: West Midlands
User status: Offline
|
The problem is to do with the main "body text" section - i.e. where "Welcome to Protect Your Piece" starts - I think the problem is your Main Categories box on the main part of the page.
|
xa0s
Banned
Registered: 4th Mar 08
Location: Dartford, Kent Car: Turbo'd Fabia vRS
User status: Offline
|
<td width="100%">
The style (width) should be dealt with in CSS either in an external CSS stylesheet or just through using the style tag:
<td style="width:100%">
|
ed
Member
Registered: 10th Sep 03
User status: Offline
|
If we're getting picky too, you shouldn't really use tables for layout like that...
|
Dan
Premium Member
Registered: 22nd Apr 02
Location: Gorleston on Sea, Norfolk
User status: Offline
|
As has been said already, i have no html exp etc, all i have used is an oscommerce store, then added contributions, and some small edits.
So all the code, layout etc is standard, or as modified by the contributions (all of which are the big main ones)
The store isnt really expected to take mega bucks, its simple, works, and is doing an ok job tbh, i cannot afford anything more yet
Adult GiftsClick here to vist us
|
AndyKent
Member
Registered: 3rd Sep 05
User status: Offline
|
Why do you want the code to validate anyway?
If it looks ok across all browsers (which I am assuming it does) it wouldn't worry me whether it does or doesn't validate too much.
|
Dan
Premium Member
Registered: 22nd Apr 02
Location: Gorleston on Sea, Norfolk
User status: Offline
|
I dont really know tbh.
Its just something i thought id try have a go at. i managed to do about 11 errors, but the last 2, i havent.
It appears fine in all browsers, hence why im really not to fussed. Was just a challenge to myself, to learn a little more
Adult GiftsClick here to vist us
|
ed
Member
Registered: 10th Sep 03
User status: Offline
|
Creating valid code is important! If there are guidelines on how to do something, then why do it another way? Most validation errors are missing bits of HTML which are needed for the document to render correctly...
|
ed
Member
Registered: 10th Sep 03
User status: Offline
|
Line 166, Column 5: end tag for "TABLE" omitted, but its declaration does not permit this
</td>
It should be <td />
A terminating HTML tag always ends like this /> and there is meant to be a space between the tag name and the />
|
ed
Member
Registered: 10th Sep 03
User status: Offline
|
Just fixing that should get it to validate actually.
|
Sam
Moderator Premium Member
Registered: 24th Dec 99
Location: West Midlands
User status: Offline
|
quote: Originally posted by AndyKent
Why do you want the code to validate anyway?
Yes, it's not like Microsoft care about minor things like W3C standards.
|
ed
Member
Registered: 10th Sep 03
User status: Offline
|
Internet Explorer
|
Paul_J
Member
Registered: 6th Jun 02
Location: London
User status: Offline
|
quote: Originally posted by ed
Creating valid code is important! If there are guidelines on how to do something, then why do it another way? Most validation errors are missing bits of HTML which are needed for the document to render correctly...
and it helps search engines like google index the page, as it doesn't fall over errors in the code.
|
Dan
Premium Member
Registered: 22nd Apr 02
Location: Gorleston on Sea, Norfolk
User status: Offline
|
Still getting there with this.
Started doing bits each day to help my seo.
Ive now acheived a rank of 1/10, and got a few keywords in top 10. These are only low searched words (10-30 per day), but there is hardly any competition compared to the big words. So hopefully i can get my way to the top of these and capture some of this traffic
Adult GiftsClick here to vist us
|