为我的网站项目设置一个“基本框架”,我想知道哪些元素是真的必要/推荐?特别是,我想知道如何处理语言属性(S)!?在下面的例子中,我想。不必要地重复...推荐元数据?
<!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" dir="ltr">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="content-script-type" content="text/javascript" />
<meta http-equiv="content-language" content="en" />
<meta http-equiv="language" content="en" />
<title> Title </title>
<base href="http://www.mydomain.com" />
<meta name="charset" content="utf-8" />
<meta name="content-language" content="en" />
<meta name="language" content="en" />
<meta name="description" content="description" />
<meta name="keywords" content="keywords" />
</head>
P.S. “content-language”=“语言”?
http://stackoverflow.com/questions/1092329/what的重复:
这些应该开幕头标记后直接-are-the-important-meta-tags-i-must-put-in-my-website – 2012-02-07 11:17:36