HTML DOM Meta scheme property
Definition and Usage
scheme property sets or returns the format used to interpret the content attribute values.
grammar
Setting scheme properties:
linkObject.scheme="format"
Returns scheme attributes:
linkObject.scheme
Browser Support
All major browsers support scheme property
Examples
Examples
This example returns the format used to interpret the content attribute values:
<! DOCTYPE html>
<Html>
<Head>
<Meta charset = "utf-8">
<Title> This tutorial (w3big.com) </ title>
<Meta name = "revised" content = "2011-02-03" scheme = "YYYY-MM-DD">
<Script>
function displayResult () {
var x = document.getElementsByTagName ( "meta") [0] .scheme;
alert (x);
}
</ Script>
</ Head>
<Body>
<Button type = "button" onclick = "displayResult ()"> Display meta scheme </ button>
</ Body>
</ Html>
<Html>
<Head>
<Meta charset = "utf-8">
<Title> This tutorial (w3big.com) </ title>
<Meta name = "revised" content = "2011-02-03" scheme = "YYYY-MM-DD">
<Script>
function displayResult () {
var x = document.getElementsByTagName ( "meta") [0] .scheme;
alert (x);
}
</ Script>
</ Head>
<Body>
<Button type = "button" onclick = "displayResult ()"> Display meta scheme </ button>
</ Body>
</ Html>
try it"
Meta Object