HTML XMLS Attribute

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Post Reply
Dixie
Posts: 1
Joined: Tue Jun 26, 2007 1:43 pm

HTML XMLS Attribute

Post by Dixie »

Hi, I am an internet marketer with some HTML skills. I have just purchased HTML Pad 2007 and plan to use it instead of Dreamweaver.

For my webpages I was taught to use:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> and <html xmlns="http://www.w3.org/1999/xhtml">.

The wizard gives me the DOCTYPE element attribute I need but it does not include the html element attribute. However your HTML Inspector does have the empty xmlns attibute.

I use these attributes to have some future proofing and I also combine CSS with the HTML. However I do not do any XML stuff.

My question is: Do I gain anything by including
<html xmlns="http://www.w3.org/1999/xhtml"> instead of just using the <html> element the wizard produces?

Anyone know what the attribute 'xmlns="http://www.w3.org/1999/xhtml' does?

Thanks

Dixie
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

Practically you gain nothing. Many developers think that it is simply nice to have this, because it is closer to specification, but in real world it has no influence.

There is nothing wrong with having or having it not. Either way the practical result is the same.
Karlis Blumentals
Blumentals Software
www.blumentals.net
RoyReed
Posts: 16
Joined: Wed Aug 02, 2006 6:38 pm
Location: London, UK
Contact:

Post by RoyReed »

Info on XMLNS can be found here: www.w3.org/TR/xptr-xmlns/

And this explains why there's no point in using XHTML instead of HTML: www.spartanicus.utvinternet.ie/no-xhtml.htm
Roy
Post Reply