<html>
<style>
body {
color: red;
font-size: 15px;
}
</style>
<body>
<h1 id="myH1">The Element Object</h1>
<h2>The style Property</h2>
<p>The style properties of this document are:</p>
<p id="demo"></p>
<script>
let styles = document.getElementsByTagName("STYLE")[0].innerHTML;
document.getElementById("demo").innerHTML = styles;
</script>
</body>
</html>