Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Property of HTML Meta - Tags throw a warning in eclipse

I have some meta tags for facebook and google in my HTML page, but eclipse shows a warning on the "property" and "itemprop". I tried different doctypes but it does not validate. Is there a way of getting rid of the warnings without disabling the validation for the HTML documents?

<!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>

enter image description here

like image 360
jan Avatar asked Sep 29 '22 17:09

jan


1 Answers

Go to Window->Preferences->Web->HTML Files->Validation

Check Ignore specified attribute names in validation and add "property, itemprop" to the text field bellow.

like image 50
André Campanhã Avatar answered Oct 03 '22 02:10

André Campanhã