Sunday, 23.10.2016, 00:23
Welcome Guest
All Html Tags

Articles for Webmaster
:: Proffesional Website Builders
:: Div Tag in Html Examples
:: Notepad As a Free Html Editor

script Tag in Html

Used to define a scripting language, such as JavaScript.

script Tag Attributes

type - is used to specify what type of scripting language is used. This takes the form of a MIME type such as text/javascript.
src - can be used to specify an external source of a script file.
charset - can be used to specify the character set of the element.
defer - can be used to specify that the script does not generate any document content so that the browser doesn't have to worry about it while the page loads. It must be used in the format defer="defer".

Browser Support


Code Example

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

HtmlCodeExamples.Com © 2016