Red font in Firefox Page Source

后端 未结 4 1578
遇见更好的自我
遇见更好的自我 2021-01-04 00:03

I have been messing around with my meta descriptions, trying to make them more unique by showing relevant data from the database.

But when I check the meta descripti

4条回答
  •  难免孤独
    2021-01-04 00:30

    2 attributes are usually the most important one in meta tags: name and content

    so description tag may look like

    
    

    You probably forgot to close the double quotes, or using quotes-wrapper word in content attribute ?

    
    

    in which case source viewer does not validate the code.

    This is also valid for single quotes. If your meta tag uses single quotes and there's an apostrophe inside content attribute..

    
    

提交回复
热议问题