<html>
<body>
<h1>The Element Object</h1>
<h2>The attributes Property</h2>
<p>Click "try it" to display the numer of button attributes:</p>
<button id="myButton" onclick="myFunction()">Try it</button>
<p id="demo"></p>
<script>
function myFunction() {
let numb = document.getElementById("myButton").attributes.length;
document.getElementById("demo").innerHTML = numb;
}
</script>
</body>
</html>