Question:

Why """<html xmlns="http://www.w3.org/1999/xhtml">"""... instead of just """<html>"""?

by  |  earlier

0 LIKES UnLike

Why does dreamweaver automatically put """<html xmlns="http://www.w3.org/1999/xhtml">""" instead of just """<html>""" when you create a new html file?

Here's everything:

1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-...

2. <html xmlns="http://www.w3.org/1999/xhtml">

3. <head>

4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />

5. <title>Untitled Document</title>

6. </head>

7.

8. <body>

9. </body>

10. </html>

 Tags:

   Report

1 ANSWERS


  1. The DOCTYPE explains what sort of document type it is (although browsers usually take their best guess if it&#039;s not present).  The xmlns part is the namespace of the xml document, since you&#039;re composing an XHTML page.  It&#039;ll work without all that, most likely, but it&#039;s better coding practice to include it.

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.
Unanswered Questions