HTML5 meta Validation

前端 未结 4 2169
孤街浪徒
孤街浪徒 2020-12-16 19:46

Im trying to make my first HTML5 page but i simply cant get it to validate W3C keeps telling me that i have some errors i my meta tags.

the page in question is http:

4条回答
  •  無奈伤痛
    2020-12-16 20:29

    OK, let's take the easy one first:

    
    

    last-modified is not and has never been a valid attribute of the meta element. Not sure what is intended here.

    
    
    

    Putting caching instructions into meta tags is not a good idea, because although browsers may read them, proxies won't. For that reason, they are invalid and you should send caching instructions as real HTTP headers.

    
    
    

    Neither distribution nor copyright are recognized values for the name attribute of the meta element. Valid names are described at https://w3c.github.io/html/document-metadata.html#standard-metadata-names and http://wiki.whatwg.org/wiki/MetaExtensions.

    I recommend dcterms.audience instead of distribution and dcterms.rights dcterms.rightsHolder instead of copyright.

提交回复
热议问题