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.



 Subscribe in a reader

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

Notices


Reply
 
LinkBack Thread Tools
  #1  
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...
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 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.
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 Jul 6th, 2006, 16:40
minute44's Avatar
Most Reputable Member

SuperMember
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)
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 Jul 6th, 2006, 17:13
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 23
Posts: 1,668
Blog Entries: 1
Thanks: 1
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)
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 Jul 6th, 2006, 17:14
Junior Member
Join Date: Mar 2006
Age: 43
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
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 Jul 6th, 2006, 17:30
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 23
Posts: 1,668
Blog Entries: 1
Thanks: 1
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)
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 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
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 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>
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 Jul 7th, 2006, 08:12
Junior Member
Join Date: Mar 2006
Age: 43
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?
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 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.
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 Jul 7th, 2006, 08:55
minute44's Avatar
Most Reputable Member

SuperMember
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)
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 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.
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 7th, 2006, 15:57
minute44's Avatar
Most Reputable Member

SuperMember
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #14  
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #15  
Old Jul 7th, 2006, 16:28
minute44's Avatar
Most Reputable Member

SuperMember
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #16  
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #17  
Old Jul 7th, 2006, 16:36
minute44's Avatar
Most Reputable Member

SuperMember
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #18  
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #19  
Old Jul 7th, 2006, 19:58
Rob's Avatar
Rob Rob is offline
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,160
Blog Entries: 7
Thanks: 27
Thanked 19 Times in 16 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..
__________________
Click the 'Thanks!' button if this post has helped you

Rob - Webforumz Founder
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!