<meta name="copyright" content="By Me" />
Run Code Online (Sandbox Code Playgroud)
W3C验证器输出:
第5行,第41栏:元素元素属性名称的版权值不正确:未注册关键字版权.
我需要设置版权.任何的想法?
当我从w3c验证器将html5验证器传递到我的网站时,我遇到了问题.错误是下一个:
Bad value Content-Script-Type for attribute http-equiv on element meta
<meta http-equiv="Content-Script-Type" content="text/javascript" >
Bad value expires for attribute http-equiv on element meta
<meta http-equiv="expires" content="Wed, 26 Feb 1997 08:21:57 GMT" >
Bad value pragma for attribute http-equiv on element meta
<meta http-equiv="pragma" content="no-cache" >
Bad value Cache-Control for attribute http-equiv on element meta.
<meta http-equiv="Cache-Control" content="no-cache" >
Run Code Online (Sandbox Code Playgroud)
传递html5验证器的元标记的正确值是什么?
好的,所以我一直在使用错误的代码,我不知道现在多久 - 似乎
<meta http-equiv="expires" content="0">
Run Code Online (Sandbox Code Playgroud)
是错的,以下是正确的
<meta http-equiv="expires" content="mon, 27 sep 2010 14:30:00 GMT">
Run Code Online (Sandbox Code Playgroud)
所以我的问题是,0如果他们要我像上面那样放置日期格式以及如何在没有PHP/JavaScript的情况下生成它,我仍然可以得到它?把它放在日期格式中似乎很愚蠢.