4
我的HTML页面中有一些用于facebook和google的meta标签,但eclipse在“属性”和“itemprop”上显示警告。我尝试了不同的文档类型,但不验证。有没有办法在不禁用HTML文档验证的情况下摆脱警告?HTML Meta的属性 - 标签在eclipse中抛出警告
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<!-- Facebook meta tags -->
<meta property="og:title" content="My Title" />
<meta property="og:description" content="My Description" />
<!-- Meta tags for google. -->
<meta itemprop="name" content="My Title"/>
<meta itemprop="description" content="My Description"/>
</head>
</html>