You are here: Reference > JavaScript > client-side > HTML DOM > properties > scheme (meta)

scheme property (meta)

Browser support:
Specifies or returns how the value of content should be interpreted, when name is used.
This property contains additional information for the exact determination of meta content. For example, it may contain a standard for dates used in the meta section.

Syntax:

object.scheme;
You can find the related objects in the Supported by objects section below.
This property is read/write.
HTML page for this property: scheme

Possible values:

String that sets or retrieves the scheme to use.
Default: this property has no default value.

Example HTML code 1:

This example illustrates the use of the scheme attribute:
<head>
    <meta scheme="ISBN" name="identifier" content="0-8230-2355-9" />
    <meta scheme="customer" name="id" content="Fancy Pants" />
</head>
Did you find this example helpful? yes no

Example HTML code 2:

This example illustrates the use of the scheme property:
<head>
    <meta scheme="ISBN" name="identifier" content="0-8230-2355-9" />
    <meta scheme="customer" name="id" content="Fancy Pants" />
    <script type="text/javascript">
        function GetScheme () {
            var metaTags = document.getElementsByTagName ("meta");

            for (var i = 0; i < metaTags.length; i++) {
                alert ("The value of the scheme properties in the " + (i+1) + ". meta tag: " +metaTags[i].scheme);
            }
        }
    </script>
</head>
<body >
    <button onclick="GetScheme ();">Get scheme!</button>
</body>
Did you find this example helpful? yes no

Supported by objects:

External links:

User Contributed Comments

Post Content

Post Content