What happens if the meta tags are present in the document body?

后端 未结 9 1789
有刺的猬
有刺的猬 2020-11-29 06:26

I am working on a ASP application and the code, template and files are organized in a way that does not allow me to alter anything outside the body tag. So I am thinking abo

9条回答
  •  北荒
    北荒 (楼主)
    2020-11-29 06:54

    meta tags can be added anywhere in the HTML.

    The web crawlers can read them but the only issue is when you have to share your pages over some application like facebook messenger, whatsapp etc.

    These applications only read meta tags present inside the head tag. So, the og:image, og:description properties of meta tag if placed inside body tag are not read and hence won't be displayed while sharing in such applications.

    If its only for SEO purpose, you can add meta tag anywhere but it is recommended to add inside head tag only

提交回复
热议问题