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
Recommended threads
Replies
8
Views
3,994
Replies
15
Views
11,527
Replies
2
Views
2,191
Replies
1
Views
2,346
Replies
0
Views
3,386
Top