Why wont it Validate

This is a discussion on "Why wont it Validate" within the Web Page Design section. This forum, and the thread "Why wont it Validate are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jun 18th, 2007, 12:11
Reputable Member
Join Date: May 2007
Location: Margate
Age: 24
Posts: 156
Thanks: 0
Thanked 0 Times in 0 Posts
Why wont it Validate

I have tried to validate my website and it says that it will not due to the errors below

http://validator.w3.org/check?uri=ht...00=1&verbose=1

But I am confused with what I have to change. Can someone help please.

Cheers
Dan
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jun 18th, 2007, 12:25
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Why wont it Validate

Pretty simple ... you have a <center> tag that not closed.

BTW ... you do realize the center element is deprecated yes?

You really shouldn't be using it.

CSS is what you should be using instead.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jun 18th, 2007, 12:39
Reputable Member
Join Date: May 2007
Location: Margate
Age: 24
Posts: 156
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Why wont it Validate

Thank you very much,
Am now struggling to center using CSS please could you help.

Cheers
Dan
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Jun 18th, 2007, 13:15
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Why wont it Validate

How to center your site horizontally
body can be used to style too!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Jun 18th, 2007, 16:40
New Member
Join Date: Jun 2007
Location: Scotland
Age: 19
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Why wont it Validate

I found a page searching google which said, that to obtain centre alignment you can set an elements formatting (using CSS) to this:
margin-left: auto;
margin-right: auto;

I currently use this style of alignment for my pages, for both centre and right alignment (seeings how left is by default :P).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Jun 19th, 2007, 11:57
Ryan Fait's Avatar
Elite Veteran
Join Date: May 2006
Location: Las Vegas
Posts: 3,787
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Why wont it Validate

Or you can use shorthand garfunkle.

Code: Select all
margin: 0 auto;
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Jun 19th, 2007, 13:17
New Member
Join Date: Jun 2007
Location: Scotland
Age: 19
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Why wont it Validate

Yeah, i still feel more comfortable doing it the long way right now :S. I'll get to shortening it eventually.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Jun 24th, 2007, 05:29
Banned Member
Join Date: Jun 2007
Location: somewhere
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Why wont it Validate

i had like 150 errors on my site but i dont really care about validating it yet
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Jun 28th, 2007, 15:02
Reputable Member
Join Date: May 2007
Location: Margate
Age: 24
Posts: 156
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Why wont it Validate

Have made alot changes to the website and now have 5 errors cant figure out how to fix these ones.
(CSS is fine)

I want to keep the XHTML logo on there but if I cant validate it I will have to take it off.

Can someone help me yet again.

Cheers Dan
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Jun 28th, 2007, 20:01
Elite Veteran
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Why wont it Validate

Error #1 wants you to add a equals symbol.
Code: Select all
id="btsidebar"
2) delete
target="_blank"

3-6 just add either the end> or the beginning<
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old Jun 29th, 2007, 14:53
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Why wont it Validate

error 3 is because you need to add an id to the map element... usually the same as your name attribute.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old Jun 29th, 2007, 15:21
Most Reputable Member
Join Date: May 2006
Location: North West, UK
Age: 22
Posts: 1,173
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Why wont it Validate

The target attribute is not valid xhtml. You will have remove that in order to validate. A simple javascript pop-up would be better or no pop-up at all would probably be the best.

Pete.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #13  
Old Jul 4th, 2007, 17:01
New Member
Join Date: Jul 2007
Location: Larkfield, England
Age: 18
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Why wont it Validate

I spent about 4 hours trying to validate my page. And in did in the end. All the answers are there for you.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
html

Thread Tools

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Div wont line up with Nav bar? Oak Web Page Design 1 Mar 1st, 2008 12:26
sometimes a link wont work.. why? col Web Page Design 1 Aug 20th, 2007 22:38
why wont my image show up? :( monkeymafia Web Page Design 4 Jun 20th, 2007 17:12
for #%&* sake why wont this validate! bruno89 Flash & Multimedia Forum 1 Feb 26th, 2007 18:08
my div wont move cheataweb Web Page Design 1 Dec 19th, 2006 17:44


All times are GMT. The time now is 21:54.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved