xhtml and validation

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



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

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jul 6th, 2006, 16:12
New Member
Join Date: Jul 2006
Location: Bath
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
xhtml and validation

Hey hey fun fans
So anyway I just spent quite a long time rebuilding my site with css instead of tables (don't really know why I used them in the first place), and I thought I'd go the whole hog and make it xhtml strict 1.0 valid. It's a nightmare! I ended up settling for xhtml transitional, and then realised that I didn't actually know what the point of making it valid XHTML at all was.

So what is the point? You can make an accessible, attractive, solid site just using html, and if you try and convert it to XHTML and test it (go here: http://validator.w3.org/) it'll probably have loads of silly little errors, like tags you haven't closed properly and stuff, but they don't actually interfere with the workings of the site at all - even if you test it on all four of the big browsers chances are it'll look and work fine.

So anyway, after all that rambling (sorry), my question is, do you validate all your sites? And why?
Your thoughts...
Reply With Quote

  #2 (permalink)  
Old Jul 6th, 2006, 16:24
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Re: xhtml and validation

Yes I do validate all my sites.

From a personal viewpoint, I think it's the professional thing to do.

From a comercial viewpoint, being standards compliant means that your site should work with things you may not even have or are able to consider testing such as mobile phones, assistive technology devices etc, and continue to work correctly as browsers and the Internet continue to evolve.
Reply With Quote
  #3 (permalink)  
Old Jul 6th, 2006, 16:40
minute44's Avatar
Moderator
Join Date: Apr 2006
Location: Nottingham UK
Age: 25
Posts: 1,351
Blog Entries: 1
Thanks: 0
Thanked 1 Time in 1 Post
Re: xhtml and validation

The point is: You're doing your part to bring some standardisation to the internet.

Trying to make all pages conform to the same guidelines so that anyone on any browser, with any special needs can gain the full benefit of viewing your site.
Last Blog Entry: Annoying people.... (Jan 16th, 2008)
Reply With Quote
  #4 (permalink)  
Old Jul 6th, 2006, 17:13
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 23
Posts: 1,650
Blog Entries: 1
Thanks: 0
Thanked 4 Times in 4 Posts
Re: xhtml and validation

Follow standards now so you don't get slapped in the face tomorrow by either new technology or even tougher standards...

It's just good practice, but I believe it should be law.
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
Reply With Quote
  #5 (permalink)  
Old Jul 6th, 2006, 17:14
Junior Member
Join Date: Mar 2006
Age: 42
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Re: xhtml and validation

Plus you'll avoid people on this site telling you that your site doesn't validate, regardless of what your question might be
Reply With Quote
  #6 (permalink)  
Old Jul 6th, 2006, 17:30
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 23
Posts: 1,650
Blog Entries: 1
Thanks: 0
Thanked 4 Times in 4 Posts
Re: xhtml and validation

Quote:
Originally Posted by boscomilo
Plus you'll avoid people on this site telling you that your site doesn't validate, regardless of what your question might be
Not only here, but in other forums too! We're not that bad
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
Reply With Quote
  #7 (permalink)  
Old Jul 6th, 2006, 20:04
New Member
Join Date: Jul 2006
Location: Bath
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Re: xhtml and validation

Hehe! Fair do's...
I suppose I'm just a bit annoyed at the occassional heavy-handedness of the w3c - for example, one of the main reasons my site wouldn't validate to xhtml strict was because I've used the target attribute of the <a> tag - but there's no other way of getting links to open in a new window except javascript, which seems a ridiculously complicated (and code-bloating) way of doing things, and certainly wouldn't help accessibility. Just annoyed me a bit I suppose. I must admit I agree with all your reasons though, and I'm feeling a bit less like I wasted an afternoon now...
Cheers!
Robb
Reply With Quote
  #8 (permalink)  
Old Jul 6th, 2006, 20:34
Most Reputable Member
Join Date: Aug 2005
Location: North Wales, United Kingdom
Age: 21
Posts: 1,093
Thanks: 0
Thanked 0 Times in 0 Posts
Re: xhtml and validation

Yep its because that attribute is meant to be for targetting frames.

In case anyone has this prob the javascript way is:
Code: Select all
 <a href="foo.htm" onclick="window.open(foo.htm); return false;">foo</a>
Reply With Quote
  #9 (permalink)  
Old Jul 7th, 2006, 08:12
Junior Member
Join Date: Mar 2006
Age: 42
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Re: xhtml and validation

I don't understand. The following code will allow you to open a link in a new window and is valid XHTML.

<a href="http://www.sitenamegoeshere" target="_blank">image code or text here</a>

Is that what you mean or are you trying to achieve something else?
Reply With Quote
  #10 (permalink)  
Old Jul 7th, 2006, 08:49
New Member
Join Date: Jul 2006
Location: Bath
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Re: xhtml and validation

Yeah, that's valid html or xhtml transitional, but not xhtml strict, which is what we're all supposed to be working towards. Seems a bit silly as the target attribute works correctly in all browsers, I suppose it's just because that's not what it's meant for though like sypher said.
Reply With Quote
  #11 (permalink)  
Old Jul 7th, 2006, 08:55
minute44's Avatar
Moderator
Join Date: Apr 2006
Location: Nottingham UK
Age: 25
Posts: 1,351
Blog Entries: 1
Thanks: 0
Thanked 1 Time in 1 Post
Re: xhtml and validation

It's not that great a practice making things open in new windows anyway. You should try and avoid it unless it is absolutely necessary.

New window opening can be an annoyance and also it can take the focus away from the main area of your site.
Last Blog Entry: Annoying people.... (Jan 16th, 2008)
Reply With Quote
  #12 (permalink)  
Old Jul 7th, 2006, 15:36
Most Reputable Member
Join Date: Aug 2005
Location: North Wales, United Kingdom
Age: 21
Posts: 1,093
Thanks: 0
Thanked 0 Times in 0 Posts
Re: xhtml and validation

And its annoying for firefox users. Because we dont use new windows we use Tabs.
Im guessing with css3 etc they will bring out some new commands to counter these probs.
Reply With Quote
  #13 (permalink)  
Old Jul 7th, 2006, 15:57
minute44's Avatar
Moderator
Join Date: Apr 2006
Location: Nottingham UK
Age: 25
Posts: 1,351
Blog Entries: 1
Thanks: 0
Thanked 1 Time in 1 Post
Re: xhtml and validation

Quote:
Originally Posted by sypher
And its annoying for firefox users. Because we dont use new windows we use Tabs.
Im guessing with css3 etc they will bring out some new commands to counter these probs.
I've got an extension installed that deals with this annoyance. It opens anything with target_blank in a new tab, opens anything from a different site in a new tab and any links you follow in other apps... you guesed it, new tab.

It's wonderful!
Last Blog Entry: Annoying people.... (Jan 16th, 2008)
Reply With Quote
  #14 (permalink)  
Old Jul 7th, 2006, 16:25
Junior Member
Join Date: Jul 2006
Location: Coventry, UK
Age: 19
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Re: xhtml and validation

I always make it a personal point of validating all my sites. Apart from a personal sense of pride and achievement, it shows that you care about web standards, indicates professionalism and impresses customers.
Reply With Quote
  #15 (permalink)  
Old Jul 7th, 2006, 16:28
minute44's Avatar
Moderator
Join Date: Apr 2006
Location: Nottingham UK
Age: 25
Posts: 1,351
Blog Entries: 1
Thanks: 0
Thanked 1 Time in 1 Post
Re: xhtml and validation

Quote:
Originally Posted by Lyncho
I always make it a personal point of validating all my sites. Apart from a personal sense of pride and achievement, it shows that you care about web standards, indicates professionalism and impresses customers.
Agreed, except the "impresses customers" part. I think you'll find that most customers don't care/understand the whole web standards thing. It's only techies that care mate...
Last Blog Entry: Annoying people.... (Jan 16th, 2008)
Reply With Quote
  #16 (permalink)  
Old Jul 7th, 2006, 16:31
Junior Member
Join Date: Jul 2006
Location: Coventry, UK
Age: 19
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Re: xhtml and validation

Perhaps, but it's just another thing to put on your list of surveys. When you tell them that it will maximise their exposure due to the fact that the site can be viewed on a variety of platforms and browsers, and use buzzwords like 'future-proofing', I reckon they love it. Plus you can tell them that it makes their site really professional etc.
Reply With Quote
  #17 (permalink)  
Old Jul 7th, 2006, 16:36
minute44's Avatar
Moderator
Join Date: Apr 2006
Location: Nottingham UK
Age: 25
Posts: 1,351
Blog Entries: 1
Thanks: 0
Thanked 1 Time in 1 Post
Re: xhtml and validation

Quote:
Originally Posted by Lyncho
Perhaps, but it's just another thing to put on your list of surveys. When you tell them that it will maximise their exposure due to the fact that the site can be viewed on a variety of platforms and browsers, and use buzzwords like 'future-proofing', I reckon they love it. Plus you can tell them that it makes their site really professional etc.
Gotta love them Buzz-Words! Suppose it is all about how you explain it to them....
Last Blog Entry: Annoying people.... (Jan 16th, 2008)
Reply With Quote
  #18 (permalink)  
Old Jul 7th, 2006, 17:02
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Re: xhtml and validation

Lets also not forget that accessibility guidelines also specify that the use of target=_blank should be avoided unless absolutely necessary as it confuses people who cannot see the screen and have low cognitive abilities.

If you absolutely must do it, then you should warn the end user that this is about to happen.
Reply With Quote
  #19 (permalink)  
Old Jul 7th, 2006, 19:58
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,953
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Re: xhtml and validation

Quote:
Originally Posted by boscomilo
Plus you'll avoid people on this site telling you that your site doesn't validate, regardless of what your question might be
ROFL.... how true that is..
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
Reply With Quote
  #20 (permalink)  
Old Jul 8th, 2006, 08:40
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 23
Posts: 1,650
Blog Entries: 1
Thanks: 0
Thanked 4 Times in 4 Posts
Re: xhtml and validation

Just got this on a newsletter:
http://www.webproworld.com/viewtopic.php?t=64982
I think it covers all the points...

To summarise: Search engines themselves don't use valid code, so why should we bother?
Well, SE's are not trying to get their pages indexed by their own robots...
Having valid code simply ensures that robots hit an error, or in other words, won't have any problems indexing your page, its links, etc...
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
Reply With Quote
Reply

Tags
xhtml, validation

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
javascript and xhtml validation nate2099 JavaScript Forum 9 May 1st, 2007 22:34
W3C Xhtml Validation... Pheonix Implemented Suggestions 13 Oct 7th, 2005 12:44
XHTML Validation Help socalledlove Web Page Design 7 May 3rd, 2005 21:06
XHTML validation keeps21 Web Page Design 4 Mar 21st, 2005 08:27
XHTML validation problems Webforumz Staff Web Page Design 6 Jan 4th, 2004 15:45


All times are GMT. The time now is 09:19.


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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43