HTML XHTML 1.0严格的Doctype基本模板

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了HTML XHTML 1.0严格的Doctype基本模板相关的知识,希望对你有一定的参考价值。

<!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" xml:lang="en" lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
		<meta name="keywords" content="" />
		<meta name="description" content="" />
		<title>Title Here</title>
		
		<!-- CSS Links -->
		<link rel="stylesheet" href="basic.css" type="text/css" media="screen" />
		<link rel="alternate stylesheet" type="text/css" href="alternative.css" title="alternative" />
		
		<!-- Scripts Here -->
		<script src="../js/script1.js" type="text/javascript"></script>
		<script src="../js/script2.js" type="text/javascript"></script>

	</head>

<body>

</body>
</html>

HTML XHTML 1.1模板

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
		 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
	<head>
		<meta http-equiv="content-type" content="text/html; charset=utf-8" />
		<title>title goes here</title>
		<base href="base url goes here" />
		<meta name="Author" content="#" />
		<meta name="Robots" content="#" />
		<meta name="Generator" content="#" />
		<meta name="Keywords" content="#" />
		<meta http-equiv="Expires" content="#" />
		<meta name="Description" content="#" />
		<meta name="Copyright" content="#" />
		<meta http-equiv="Cache-Control" content="#" />
    <link rel="Shortcut Icon" href="/favicon.ico" type="image/x-icon" />
    <link href="/script/javascript.js" type="text/javascript"  />
		<style type="text/css" xml:space="preserve">
		/*<![CDATA[*/
		      @import url(/css/style.css) all;
		/*]]>*/
		</style>
		<link rel="stylesheet" href="/css/screen.css" type="text/css" media="screen" />
	  <link rel="stylesheet" href="/css/print.css" type="text/css" media="print" />
	</head>
	<body>
		<div id="container">
		
			<div id="header">
				<h1>Title of page goes here</h1>
				<h2>Subtitle of page goes here</h2>
				<h3>Skip to content</h3>
			</div><!-- end header div -->
			
			<div id="nav">
				<ul>
					<li><a href="#">Link #1</a></li>
					<li><a href="#">Link #2</a></li>
					<li><a href="#">Link #3</a></li>
				</ul>
				<ul id="breadcrumbs">
					<li><a href="#">Home</a></li>
					<li><a href="#">sub directory</a></li>
					<li><a href="#">current page</a></li>
				</ul>
			</div><!-- end nav div -->

			<div id="main">
				<h3>Title of article goes here?</h3>
				<p>Begin article here</p>

				<ul id="sidebar">
					<li><a href="#">Sidebar Link #1</a></li>
					<li><a href="#">Sidebar Link #2</a></li>
					<li><a href="#">Sidebar Link #3</a></li>
				</ul>
			</div><!-- end main div -->

			<div id="footer">
				<p>©2XXX company name here. Creative Commons link/ your own link</p>
			</div><!-- end footer div -->
			
		</div><!-- end container div -->

	</body>
</html>

以上是关于HTML XHTML 1.0严格的Doctype基本模板的主要内容,如果未能解决你的问题,请参考以下文章

HTML xHTML严格的Doctype页面标题

HTML XHTML严格的Doctype

HTML XHTML 1.0 Transitional Doctype

doctype声明 过渡transitional 严格strict 框架frameset

html XHTML 1.0严格模板[已弃用]

HTML XHTML 1.0严格模板