簡體   English   中英

W3C驗證器:元素頭缺少子元素標題的必需實例

[英]W3C validator : Element head is missing a required instance of child element title

您好我通過w3c驗證器驗證我的HTML代碼。 但它顯示錯誤元素頭缺少必需的子元素標題實例。

網址是http://nitansh.fwd.wf/article/travel/best-all-inclusive-resorts-for-romance/3189783/

雖然標題存在於html正文的頭部

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>      Best all-inclusive resorts for romance- NowU
</title>
<link rel="stylesheet" href="/static/css/styles.css">
<link rel="stylesheet" href="/static/css/video-js.css">
<link rel="stylesheet" href="/static/css/font-awesome.min.css">
<link rel="stylesheet" media="print" href="/static/css/print.css">
  <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  <!--[if lt IE 9]>
 <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js">
 </script>
 <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js">
 </script>
 <![endif]-->
 <link rel="stylesheet" href="/static/css/socialsharing.css">
 <link rel="canonical" href="/article/travel/best-all-inclusive-resorts-for-romance/3189783/">




  <meta name="description" content="Whether for a honeymoon, anniversary, or private escape, these resorts fit the romantic bill.">
  <meta property="og:description" content="Whether for a honeymoon, anniversary, or private escape, these resorts fit the romantic bill.">


  <meta name="twitter:card" value="Whether for a honeymoon, anniversary, or private escape, these resorts fit the romantic bill.">



  <meta property="og:title" content="Best all-inclusive resorts for romance">


  <meta property="og:type" content="article">


  <meta property="og:url" content="http://nitansh.fwd.wf/article/travel/best-all-inclusive-resorts-for-romance/3189783/">


  <meta property="og:image" content="http://www.gannett-cdn.com/media/USATODAY/USATODAY/2013/06/18/1371593281000-Earlyne-s-luggage-1306181810_3_4.jpg"></head>

只是為了您的信息,這是驗證器在您的代碼中看到的內容

<head>
<script src="//cdn.optimizely.com/js/687271175.js"></script>
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<meta charset="UTF-8">
</head>

您可以通過啟用驗證程序中的show source選項來查看此內容。 也許現在是時候研究漸進增強了嗎?

與您的其他問題相同的解決方案:

您正在使用JavaScript注入title元素,但W3C驗證程序不執行JavaScript。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM