我試着用簡單的HTML頁面W3C Markup validation。W3C標記驗證錯誤
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Title</title>
<script src="script/myScript.js" type="text/javascript"></script>
<link href="style/theme.css" rel="stylesheet"></link>
<!--[if lte IE 8]>
<link href="style/themeIE8.css" rel="stylesheet"></link>
<![endif]-->
<noscript>Please enable JavaScript in your browser to view this page properly, to view the basic page of the site click the link <a href="no-javascipt/main.aspx">main.aspx</a>
</noscript>
</head>
<body class="layout">
<div class="header"></div>
<div class="content"></div>
<div class="footer"></div>
</body>
</html>
,得到了以下錯誤
我想在noscript
標籤(或一般是在頭標籤本身)使用DOM元素,如a
是不行的,有沒有替代品那?即如果腳本未找到提供一個鏈接到一個頁面,不需要腳本
和任何想法,爲什麼我得到的錯誤link
& body
標籤?謝謝
'link'是自我關閉標記。你不需要''。 – hallaji
@hallaji,yea沒有注意到,謝謝:) – rps