You are on page 1of 2

HTML5 and CSS3 Latest version of HTML to describe content

Difference between XHTML and HTML5(templates) XHTML Template <!DOCTYPE html PUBLIC "-//W3c//DTD XHTML 1.0 Strict//EN" " http://www.w3.org/TR/xhtml1?DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>XHTML Template</title> <link rel="stylesheet" href="style.css" type="text/css"media="all" /> </head> <body> <script type="text/javascript" src="js/general.js"></script> </body> </html>

HTML5 Template <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>The HTML5 Herald</title> <meta name="description" content="The HTML5 Herald"> <meta name="author" content="SitePoint"> <link rel="stylesheet" href="css/styles.css?v=1.0"> <!--[if lt IE 9]> <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]-->

</head> <body> <script src="js/scripts.js"></script> </body> </html>

You might also like