treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Is this template good for making a xhtml 1.0 strict?

  • <?xml version="1.0" encoding="utf-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
    Is this template good for making a xhtml 1.0 strict cross browser compatible website ?


    <html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">

    <head>
    <title>An XHTML 1.0 Strict standard template</title>
    <meta http-equiv=\"content-type\"
    content=\"text/html;charset=utf-8\" />
    <meta http-equiv=\"Content-Style-Type\" content=\"text/css\" />
    </head>

    <body>

    <p>… Your HTML content here …</p>

    </body>
    </html>



    I found this on W3C site and two thing is new for me

    <?xml version=\"1.0\" encoding=\"utf-8\"?>


    and

    <meta http-equiv=\"Content-Style-Type\" content=\"text/css\" />
  • Looks okay to me. It looks like you left out the DOCTYPE and XML declaration out of the code box.