<p><a id="w3c" type="text/html" href="http:">W3Cschool</a></p> <script> document.write("Return value of type attribute in link: "); document.write(document.getElementById("w3c").type); </script>