Search code examples
htmlcssmetahtml-head

Should The Meta Tag Go In A Style Tag


Does the meta tag need to be enclosed in a style tag (like CSS):

<head>
<style>
<meta name="title" content="Some text here" />
</style>
</head>

Or is this good:

<head>
<meta name="title" content="Some text here" />
</head>

Solution

    1. It does not go in the style tag.
    2. It does not matter if it is before or after the CSS.
    3. The / is not required (except in XHTML, which you didn't mention using)
    4. Even if you do use the /, a space is not required.