Posted By

flicity on 11/24/09


Tagged


Versions (?)

XHTML doctype


 / Published in: XHTML
 

URL: http://www.w3schools.com/Xhtml/xhtml_dtd.asp

Use the strict DOCTYPE when you want really clean markup, free of presentational clutter. Use it together with CSS.

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3.  
  4. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
  5. <title>simple document</title>
  6. </head>
  7. <p>a simple paragraph</p>
  8. </body>
  9. </html>

Report this snippet  

You need to login to post a comment.