Why Google Suggesting To Use META TAGS In Body?

- 1 answer

I was searching about microdata for Google's Sitelink Searchbox. So I found a page on google site.

this is the microdata code -

<div itemscope itemtype="">
  <meta itemprop="url" content=""/>
  <form itemprop="potentialAction" itemscope itemtype="">
    <meta itemprop="target" content="{search_term_string}"/>
    <input itemprop="query-input" type="text" name="search_term_string" required/>
    <input type="submit"/>

URL - >



Some meta tags are allowed inside <div> and <form> tags inside the document body. See <meta>: The metadata element - HTML: HyperText Markup Language | MDN which says:

Permitted parents

  • ...
  • <meta itemprop>: any element that accepts metadata content or flow content.

From the page about flow content, the elements that allow flow content include both <div> and <form> which are used in the <body>.

So while many meta tags only belong in the <head>, when a meta tag has itemprop it can go in the <body> (or in the <head>).