<html>
<body>
<ol id="myOl" type="I">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
<p>Click the button to return the value of the type attribute of the ordered list.</p>
<button onclick="myFunction()">Try it</button>
<p id="demo"></p>
<script>
function myFunction() {
var x = document.getElementById("myOl").type;
document.getElementById("demo").innerHTML = x;
}
</script>
</body>
</html>