Skip to main content

HTML Guide

Element “meta” is missing one or more of the following attributes: “charset”, “content”, “http-equiv”, “itemprop”, “name”, “property”.

There’s an incomplete or incorrectly formed <meta> tag. The <meta> tag in HTML is used to provide metadata about the HTML document. This metadata is typically specified using attributes like charset, content, http-equiv, itemprop, name, and property.

To fix this issue, you need to ensure that your <meta> tags include at least one of these attributes. Here are some examples of properly formed <meta> tags with each of these attributes:

  1. Using the charset attribute:

    <meta charset="UTF-8">

    This specifies the character encoding for the HTML document, which is crucial for displaying text correctly in different languages.

  2. Using the content and name attributes:

    <meta name="description" content="A brief description of the webpage content.">

    This provides a description of the webpage content, which can be used by search engines.

  3. Using the http-equiv and content attributes:

    <meta http-equiv="refresh" content="30">

    This specifies information to be passed to the browser, such as refreshing the page every 30 seconds.

  4. Using the property and content attributes:

    <meta property="og:title" content="Your Webpage Title">

    This is used for Open Graph meta tags, which improve the appearance of shared content on social media platforms.

Correct Usage Example

Here’s an example of an HTML document with a properly formed set of <meta> tags:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="A brief description of the webpage content.">
    <meta http-equiv="refresh" content="30">
    <meta property="og:title" content="Your Webpage Title">
    <title>Document</title>
</head>
<body>
    <!-- Page content goes here -->
</body>
</html>

Learn more:

Related W3C validator issues