vs namespace

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
If a <doctype> tells the browser what version of HTML is being used for the
web site what is a namespace telling it? Why do we need both?

Re: vs namespace

<!DOCTYPE> is not the tag of the HTML but it is must to be mentioned
above the HTML tag because it is used to instruct the browser about
version of the HTML in which  the page has been written whereas
namespace is used conflict between element names to avoid.


'Los Angeles Website Design' (http://www.spinxwebdesign.com /) | '*Web
Development Company*' (http://tinyurl.com/7t2hjb7 ) | 'Web Design Orange
County' (http://www.spinxwebdesign.com/about-us /)| 'Graphic Design
Portfolio' (http://portfolio.spinxwebdesign.com /)
Alan_Smith's Profile: http://www.httppoint.com/member.php?userid=17323
View this thread: http://www.httppoint.com/showthread.php?t=58596

Message Posted via the webmaster forum http://www.httppoint.com , (Ad revenue

Re: vs namespace

2012-04-25 14:06, Alan_Smith wrote:

Quoted text here. Click to load it

Do you really think so? Did you *ever* test the idea?

Try writing a document with all kinds of modern tags and slap an HTML
2.0 doctype at the start. Do you think browsers will then refuse to
recognize the modern tags? Did you really expect that to happen? What
*do* you mean my “instruct the browser about version of the HTML” if not
such things?

 > whereas
Quoted text here. Click to load it

Exactly how would a namespace declaration be an HTML thing, given that
there is a single HTML namespace?

Yucca, http://www.cs.tut.fi/~jkorpela /

Site Timeline