Wwhat is the correct syntax for meta description in html

Viewed 27

Is there a difference between <meta description="blahblahblah"> and <meta name="description" content="blahblahblah">?

Are they both valid? Is one obsolete (or deprecated)?

2 Answers

The meta element does not accept the attribute "description". You should always use the name="" & content="" attributes in this case (and many other meta tags) to keep it valid.

Source: developer.mozilla.org

The meta description doesn't exist. The whole bunch of meta tags in your document head can be considered for Meta description.

Related