HTML Dog

Skip to navigation

HTML Tag: script

Used to define a scripting language, such as JavaScript.

Required Attributes

Optional Attributes

Example


<script type="text/javascript" src="somescript.js"></script>
<script type="text/javascript">
	function koala() {
		alert('KOALA! KOALA!');
	}
</script>