13.02.2018 Views

html_tutorial pdf

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

HTML<br />

<br />

<br />

document.write("You're visiting <strong>tutorial</strong>spoint!")<br />

<br />

<br />

<br />

This will produce the following result:<br />

You're visiting <strong>tutorial</strong>spoint!<br />

For more detail on tag please check HTML Scripts chapter.<br />

Global Attributes<br />

This tag supports all the global attributes described in - HTML Attribute Reference<br />

Specific Attributes<br />

The HTML tag also supports the following additional attributes:<br />

Attribute Value Description<br />

async<br />

sync<br />

Specifies that the script is executed<br />

asynchronously.<br />

charset<br />

charset<br />

Defines the character encoding that<br />

the script uses.<br />

defer<br />

defer<br />

Declares that the script will not<br />

generate any content. Therefore,<br />

the browser/user agent can<br />

continue parsing and rendering the<br />

rest of the page.<br />

src<br />

URL<br />

Specifies a URI/URL of an external<br />

script.<br />

type<br />

text/JavaScript<br />

application/ecmascript<br />

Specifies the scripting language as<br />

a content-type (MIME type).<br />

287

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!