#1 ()  
Old 08-22-2008, 07:15 AM
TheShortStack's Avatar
TheShortStack TheShortStack is offline
Climbing into the saddle
 
Join Date: Jan 2008
Location: London
Posts: 435
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via MSN to TheShortStack
Default W3C help

Morning all - having just run my site through W3C's validator tool, I've been given a list of errors that I'd really like to get sorted out.

Firstly, I've noticed that a lot of the code that I've been given to display banners is showing up as Invalid. Given the fact that I've been given this code by various poker rooms, is there anything I can do about this?

Secondly, I've found that most of the erros tend to be something like this:

Quote:
"end tag for "img" omitted, but OMITTAG NO was specified."
Quote:
You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
Can some explain what this actually means? How am I supposed to close <br>, <img> or <a> tags?

I'd really appreciate some help with this.

Thanks alot,
Reply With Quote
  #2 ()  
Old 08-22-2008, 08:51 AM
mypokercorner's Avatar
mypokercorner mypokercorner is offline
Post Whore
 
Join Date: Dec 2007
Location: Canada eh?
Posts: 678
Thanks: 0
Thanked 15 Times in 9 Posts
Default

You are probably using <br> instead of <br />, <hr> instead of <hr />, <img> instead of <img />, etc.

Bassically, apply /> this to any tag that doesn't have a seperate closing tag. (don't forget the *space* before "/>")

This wouldn't apply to <a> tag because you have a speparate </a> tgat that closes it. You can use this on list items <li />. There's not a ton of tags this applies to as most have their own seperate closing tags.
__________________
Learn how to play poker, read about online poker strategy, get poker hands PDFs and play at the top poker site. Find PKR bonus codes that work for you!
Reply With Quote
  #3 ()  
Old 08-22-2008, 09:41 AM
TheShortStack's Avatar
TheShortStack TheShortStack is offline
Climbing into the saddle
 
Join Date: Jan 2008
Location: London
Posts: 435
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via MSN to TheShortStack
Default

Thanks for that - really appreciate it.

It's all pretty much sorted out.

I've just gone error left, which I'd love to get rid of. Unfortunately, the only thing that the validator is giving me is an </a> tag which it says is unnecessary.

It's giving me a line number so I've copied the code into Dreamweaver and searched for that line number, but there is no <a/> tag on that line.

Is there something I'm missing here??

Last edited by TheShortStack : 08-22-2008 at 10:43 AM.
Reply With Quote
  #4 ()  
Old 08-22-2008, 04:01 PM
mypokercorner's Avatar
mypokercorner mypokercorner is offline
Post Whore
 
Join Date: Dec 2007
Location: Canada eh?
Posts: 678
Thanks: 0
Thanked 15 Times in 9 Posts
Default

If that's your only error, I wouldn't worry about it.
__________________
Learn how to play poker, read about online poker strategy, get poker hands PDFs and play at the top poker site. Find PKR bonus codes that work for you!
Reply With Quote
  #5 ()  
Old 08-22-2008, 08:35 PM
TheShortStack's Avatar
TheShortStack TheShortStack is offline
Climbing into the saddle
 
Join Date: Jan 2008
Location: London
Posts: 435
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via MSN to TheShortStack
Default

Yeah, I know you're right. It's only because I'm down to the last error that I really want to get it sorted out.

Call it an ego thing ;-)
Reply With Quote
  #6 ()  
Old 08-22-2008, 09:16 PM
crazy44 crazy44 is offline
God
 
Join Date: Apr 2008
Posts: 163
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Basically it means you have the end of a link tag (</a>) but all your links have been closed.

If you go to line 318 you'll see </a> - you need to remove it.
Reply With Quote
  #7 ()  
Old 08-22-2008, 09:42 PM
DealerDan's Avatar
DealerDan DealerDan is offline
Members
 
Join Date: Nov 2005
Posts: 498
Thanks: 2
Thanked 40 Times in 23 Posts
Send a message via AIM to DealerDan
Default

Think this is it:

Quote:
<a href="http://www.fulltiltpoker.com/?key=MDAwMDM5QjYwMDAxMkEzMjAwMDAwMDAwMDAwMDAwMDA-" target="_blank"><img src="http://www.fulltiltpoker.com/images/com/en/content/affiliates/banners-sizes/Aussie-millions-2008/300x250.gif" alt="Play Online Poker" width="300" height="250" border="0" /></a></a>
__________________
Graeme aka Dealer Dan
Owner of the Dealer Dan Gaming Network, and Poker Affiliate Bible.
Latest Article Nov 26, 08: Best Online Casino to Promote to Poker Players
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Forum Jump


All times are GMT -5. The time now is 01:40 PM.


Copyright 2008 PokerAffiliatePrograms.com


SEO by vBSEO 3.2.0