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
4
Views
685
Replies
0
Views
118
Replies
1
Views
154
Replies
1
Views
149

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