What's the difference between meta name and meta property?

lkovnih226

New member
Joined
Dec 11, 2012
Messages
183
Points
0
I am seeing on my website having two meta element attributes as follows:

Code:
<meta property="description" content="page description">
and

Code:
<meta name="description" content="page description">
What is the difference between meta name and meta property? can anyone explain me?
 

Nick_Levinson

New member
Joined
Mar 21, 2018
Messages
17
Points
0
Use only name. Property is not recognized in HTML specs for meta, so don't expect any parsers (including browsers and search engines) to treat your tag as valid. Google explicitly said it does not accept any property for meta elements. I think only one parser wants property, and that's only for one property value, and that's not for description.

There are two HTML specifications (specs) current now (HTML 5.2 and HTML Living Standard) and both link to MetaExtensions. There is no other authority for what HTML meta tags and attributes are valid.

An HTML validator is available online, and it's free. You can paste in content or give a URL and the validator will tell you what errors it finds.
 
Newer threads
Latest threads
Replies
0
Views
590
Replies
2
Views
789
Recommended threads
Replies
3
Views
6,142
Replies
12
Views
6,164
Replies
9
Views
5,687
Replies
2
Views
5,670

Referral contests

Referral link for :

Sponsors

Popular tags

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top