可以任意顺序使用吗?在<title>
之前放置<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
重要吗?
这是最常用的方法,但是否是最好的方法呢?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Title Goes Here</title>
<link rel="stylesheet" href="http://sstatic.net/so/all.css?v=5912">
<link rel="shortcut icon" href="http://sstatic.net/so/favicon.ico">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript">
$(function() {
$("#wmd-input").focus();
$("#title").focus();
$("#revisions-list").change(function() { window.location = '/posts/1987065/edit/' + $(this).val(); });
});
</script>
</head>
<body>
<p>This is my web page</p>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/mootools.js"></script>
</body>
</html>
这个网站 http://stackoverflow.com 没有任何编码和 <meta>
我使用的 CMS 有一个SEO组件,它在所有js和css文件之后添加每个用于SEO的<meta>
标签。在<head>
中放置任何元素并改变它们的顺序是否会影响文档的兼容性和编码?