Sign up and we'll send you the best freelance opportunities straight to
your inbox.
We're building the largest freelancing marketplace for people like you.
A custom data-creationdate attribute on a <body> tag.
The attribute value is not visible, but is readable by JavaScript.
<body data-creationdate="March 14, 2020">
<article>
<h3>Henry Matisse</h3>
<p>Matisse was born in Le Cateau-Cambrésis, in the Nord department
in Northern France, the oldest son of a wealthy grain merchant.
He grew up in Bohain-en-Vermandois, Picardie, France. In 1887,
he went to Paris to study law, working as a court administrator
in Le Cateau-Cambrésis after gaining his qualification. He first
started painting 1889, after his mother brought him art supplies
during a period of convalescence following an attack of appendicitis.
He discovered "a kind of paradise" as he later described it, and
decided to become an artist, deeply disappointing his father.
</p>
</article>
</body>
A custom data-page-type attribute on a <body> element.
Clicking the button will display the page type value.
Henry Matisse
Matisse was born in Le Cateau-Cambrésis, in the Nord department
in Northern France, the oldest son of a wealthy grain merchant.
He grew up in Bohain-en-Vermandois, Picardie, France. In 1887,
he went to Paris to study law, working as a court administrator
in Le Cateau-Cambrésis after gaining his qualification. He first
started painting 1889, after his mother brought him art supplies
during a period of convalescence following an attack of appendicitis.
He discovered "a kind of paradise" as he later described it, and
decided to become an artist, deeply disappointing his father.
<body data-page-type="Home page" id="mybody">
<article>
<h3>Henry Matisse</h3>
<p>Matisse was born in Le Cateau-Cambrésis, in the Nord department
in Northern France, the oldest son of a wealthy grain merchant.
He grew up in Bohain-en-Vermandois, Picardie, France. In 1887,
he went to Paris to study law, working as a court administrator
in Le Cateau-Cambrésis after gaining his qualification. He first
started painting 1889, after his mother brought him art supplies
during a period of convalescence following an attack of appendicitis.
He discovered "a kind of paradise" as he later described it, and
decided to become an artist, deeply disappointing his father.
</p>
</article>
<button onclick="show();">Show data</button>
<script>
let show = () => {
let element = document.getElementById("mybody");
alert("Page type = " + element.getAttribute('data-page-type'));
}
</script>
</body>
Sign up and we'll send you the best freelance opportunities straight to
your inbox.
We're building the largest freelancing marketplace for people like you.