Easy Tutorial
❮ Jsref Isarray Jsref Break ❯

Meta scheme Attribute


Definition and Usage

The scheme attribute sets or returns the format used to interpret the value of the content attribute.

Syntax

Setting the scheme attribute:

Returning the scheme attribute:


Browser Support

All major browsers support the scheme attribute.


Example

This example returns the format used to interpret the value of the content attribute:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>tutorialpro.org(tutorialpro.org)</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>

❮ Jsref Isarray Jsref Break ❯