Validation... why?

This is a discussion on "Validation... why?" within the Web Page Design section. This forum, and the thread "Validation... why? 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 Nov 20th, 2007, 20:12
Reputable Member
Join Date: Sep 2006
Location: England
Age: 20
Posts: 144
Thanks: 0
Thanked 0 Times in 0 Posts
Validation... why?

I have an Assignment which needs to be handed in tomorrow, I just want to make sure of some things.

What is a doctype and why do we need to declare one within our xhtml file?
We have this cause it's a standard right? It also cuts down on cross browser errors?

Explain the meaning of xmlns and where it would be placed in an xhtml file?
I've never understood what this is and why it's used? Cause anyone elaborate?

Give a written example of xmlns

Yeah if you could.
Reply With Quote

  #2 (permalink)  
Old Nov 20th, 2007, 20:37
Aso's Avatar
Aso Aso is offline
Chief Moderator

SuperMember
Join Date: Oct 2007
Location: UK
Posts: 1,010
Blog Entries: 2
Thanks: 5
Thanked 23 Times in 20 Posts
Send a message via Skype™ to Aso
Re: Validation... why?

Essentially, a a correct doctype will ensure a browser to render in standards mode. Without a doctype (or with an invalid one) browsers will resort to quirks mode, which can lead to spurious and unpredictable rendering of your site

Doctype's are also required for valid markup. Read more at A List Apart

Quoting on the topic of xmlns

Quote:
xmlns stands for "XML namespace". A namespace is a unique identifier for a variant of XML. It is a method to avoid conflicts with different XML variants which use the same element names.

There's a bit of discussion surrounding this, as xmlns accompanies XHTML, not HTML. XHTML was a new introduction to help integrate HTML and XML. It was not a 'new' HTML as such, and many argue XHTML should only be used for the purpose it was built for, and not simply served as 'text/html.' Read the discussion

An example of an xmlns declaration:
HTML: Select all
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)

Last edited by Aso; Nov 20th, 2007 at 20:41.
Reply With Quote
  #3 (permalink)  
Old Nov 20th, 2007, 21:05
Reputable Member
Join Date: Sep 2006
Location: England
Age: 20
Posts: 144
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Validation... why?

I've done all the Assignment now apart from this one;

Explain the meaning of xmlns and where it would be placed in an xhtml file?

It's supposed to be below the DOC type if I'm correct. However, I'm lost on what the answer or general answer for the meaning/use of XMLS is? What is it supposed to do?

Oh and something called MIME which is a file extension from what I've been reading. 'A method of encoding a file for delivery over the Internet.' Does anyone know of a site which is more detailed than this description?

Thanks for your information aso so far

Last edited by PicoDeath; Nov 20th, 2007 at 21:12.
Reply With Quote
  #4 (permalink)  
Old Nov 21st, 2007, 08:55
SuperMember

SuperMember
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,111
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Validation... why?

Quote:
Oh and something called MIME which is a file extension from what I've been reading. 'A method of encoding a file for delivery over the Internet.'
The MIME type choice says to the browser, "this is the type of content you're getting".

XHTML should be sent with a MIME type of "application/xhtml+xml". You give the browser XHTML, and at the same time you say, "yes, this really is XHTML".

Internet Explorer does not understand XHTML at all, however. For this reason, XHTML is often sent with a MIME type of "text/html". This is somewhat like a Jedi mind trick:
Internet Explorer: "Halt! This looks suspiciously like XHTML. I will be forced to render a document parse tree instead of a webpage."

Jedi webmaster: "This is not XHTML. This is invalid HTML."

Internet Explorer: "This is not XHTML. It is invalid HTML."

Jedi webmaster:
"I will render this as a normal webpage. It is tasty tag soup."

Internet Explorer: "I will render it as a normal webpage. I like tag soup."

Last edited by MikeHopley; Nov 21st, 2007 at 08:57.
Reply With Quote
  #5 (permalink)  
Old Nov 21st, 2007, 09:18
Reputable Member
Join Date: Sep 2006
Location: England
Age: 20
Posts: 144
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Validation... why?

I might use that example actually, I'll add a little more serious-ness to it

Thanks hopley! That's helped a lot
Reply With Quote
  #6 (permalink)  
Old Nov 24th, 2007, 01:37
Highly Reputable Member
Join Date: Sep 2007
Age: 15
Posts: 717
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Validation... why?

Quote:
Originally Posted by PicoDeath View Post
I'll add a little more serious-ness to it
What do you mean? Silliness makes it more fun and better to learn from
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
Reply With Quote
Reply

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
Help with validation snappy Web Page Design 4 Mar 27th, 2008 18:33
help with validation glensimister JavaScript Forum 2 Jul 26th, 2007 22:58
w3c validation cocoonfx Web Page Design 8 Jul 21st, 2007 13:55
CSS validation VanessaJW Web Page Design 17 May 24th, 2007 19:59
CSE for validation nextgen Scripts and Online Services 3 Jan 30th, 2007 03:41


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


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