Skip to main content
HTML Validation

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

About This HTML Issue

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>

Last reviewed: September 19, 2024

Was this guide helpful?

Find issues like this automatically

Rocket Validator scans thousands of pages in seconds, detecting HTML issues across your entire site.

Ready to validate your sites?
Start your free trial today.