Home > Net >  Wwhat is the correct syntax for meta description in html
Wwhat is the correct syntax for meta description in html

Time:09-19

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

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

CodePudding user response:

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

CodePudding user response:

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

  • Related