html a javascript code example
Example 1: html a href
<a href="http://example.com" >Link text</a>
Example 2: how to use javascript in html
<!-- include an external javascript document -->
<script src="myJavaScript.js" charset="utf-8"></script>
<!-- JavaScript inside html element -->
<script>
console.log("This is JavaScript");
</script>
Example 3: link in html
<a href="https://example.com">Link text goes here</a>
Example 4: href html
<a href="link">text</a>