Search code examples
phphtmlmeta-tags

passing meta data in body part


I use php for coding. Is there a way to pass meta in the body part. so that it is recognized by search engines. I know meta tags needs to be passed in head. but since i am generating pages dynamically . Only body part get changed in every page.


Solution

  • <meta> tags must go in the <head> - per the HTML specification.

    Refactor your templates so you will be able to add <meta> tags dynamically in the head. It shouldn't be a problem.