HTML Elements: <script>
<script> tag itself is HTML. It acts like a container which holds the script code. There are a couple different types of scripts. Within the
<script> tag, you can specify the format and the type of script using the
type attribute. For example, here's a
<script> tag with the
text indicates the format, which in this case is just plain text.
type attribute if you're using HTML5. You can also choose to leave out the
type attribute in HTML 4.01 and XHTML1.0 and the script will run the same. The problem with these two standards is that the page will not validate properly without this attribute.