Our book uses this style of doctype, html tag, and meta tag for chapter 7-but posted below this is what is used as template for XHTML 1.0 on W3C website. The WC3 website uses a different Meta tag set up and adds lang="en" xml:lang="en" at end of html tag . Do you recommend setting up Meta tag like it is done in book or like it is done on WC3 website?
THE WAY DONE IN BOOK
<!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" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>blank</title>
</head>
<body
TEMPLATE WC3 website.
<!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">
<head>
<title>An XHTML 1.0 Strict standard template</title>
<meta http-equiv="content-type"
content="text/html;charset=utf-8" />
</head>
<body>
<p>… Your HTML content here …</p>
</body>
</html>
This post has been edited by coolcat: 25 November 2012 - 02:16 PM











