我试图验证我的网站,但出现以下错误
没有属性“属性”
<meta property="og:title" content="Free Sms" />
没有属性“allowTransparency”
…w:hidden; width:450px; height:21px;" allowTransparency="true">Facebook</iframe>
没有属性“占位符”
…"search" type="text" placeholder="SEARCH" value="" class="searchInp …
首先我的代码有这个,我得到 13 个错误。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
将代码更改为此可以减少我的错误。但我得到了 3 个错误。为什么?任何指南如何解决这个问题?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:og="http://ogp.me/ns#"
xmlns:fb="https://www.facebook.com/2008/fbml"
xml:lang="en" lang="en">
完全的
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:og="http://ogp.me/ns#"
xmlns:fb="https://www.facebook.com/2008/fbml"
xml:lang="en" lang="en">
<head>
<title>Welcome to mysite</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta name="keywords" content="Social, Programming" />
<meta name="description" content="Share Ideas and become the best" />
<meta http-equiv="Content-Language" content="en" />
<meta name="robots" content="*" />
<meta name="document-type" content="text" />
<meta name="googlebot" content="NOODP" />
<meta name="slurp" content="NOYDIR" />
<meta name="msnbot" content="NOODP" />
<meta name="Generator" content="snippet" />
<meta property="og:title" content="Welcome to mysite" />
<meta property="og:type" content="website" />
<meta property="og:url" content="" />
<meta property="og:description" content="Share Ideas and become the best" />
<meta property="fb:app_id" content="" />
<meta property="og:image" content="http://mysite.com/images/fbicon.png" />