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.
|
|
|
|
|
![]() |
||
Validation... why?
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
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. |
|
|
|
||||
|
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:
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:
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
Last edited by Aso; Nov 20th, 2007 at 20:41. |
|
|||
|
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. |
|
|||
|
Re: Validation... why?
Quote:
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." Last edited by MikeHopley; Nov 21st, 2007 at 08:57. |
|
|||
|
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 |
|
|||
|
Re: Validation... why?
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)
|
![]() |
| Thread Tools | |
|
|
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 |