A team that I am working on has gotten into the habit of using tags in random places in the body of our HTML pages. For example:
It is valid and, depending on your server-side framework and the nature of the code, sometimes very difficult to avoid.