answersLogoWhite

0

The SCRIPT tag is used to implement a JavaScript (or other kind, i.e. VBScript) in an HTML document.

The tag can either contain the actual JavaScript code, or can point to an external script file that should be included at render-time.

To add JavaScript directly to the document in HTML 5, place these tags in either the HEAD section or just prior to the BODY sections closing tag.

<script type="text/javascript">

//JS code goes here

</script>

To call an external JavaScript file, use the "src" attribute, like so:

<script type="text/javascript" src="path/to/script.js"></script>

If you're unsure of where to put the JavaScript tags, see the related answer(s).

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

Which programming languages can be used on the Internet?

HTML but you can implement javascript css and other SCRIPTING LANGUAGES within HTML


How can you insert javascript into an HTML document?

Here are two examples of internal and external calling of javascriptInternal Calling (Not Recommended)// Your javascript code ehreExternal Calling (Recommended)


Is javascript a form of HTML used to add dynamic capabilities and interactivity to webpages?

Javascript is a language used WITH HTML. It is not HTML. HTML is a markup language used to delineate between different types of data. JavaScript is a programming language, containing logic, functions, and object.


How is javascript used?

JavaScript is used to make HTML DHTML or Dynamic HTML. Provides a lot more interactivity between the web page and the browser provided JavaScript is not turned off.


Can javascript be used in Jtextpane in swing?

No. JavaScript can be used only in HTML and other Web Components


How can we use script tag in java?

to implement javascript embed the statements between &lt;script&gt; n &lt;/script&gt;,,, and include any scripting language. eg:&lt;script LANGUAGE="javascript"&gt; block of codes &lt;/script&gt;


What tag is used in adding variables in HTML?

HTML has no variables of its own. Javascript does.


Which HTML tag is used to indicate to the web browser that the HTML page contains a javascript program?

Easy one. &lt;script type="text/javascript"&gt;&lt;/script&gt;.


What is an HTML converter?

An HTML Converter is a program that will take your HTML files and modify them to be able to be used with PHP, Javascript or ASP.


What language is used to write websites?

The most common languages used to write websites are HTML, CSS, and JavaScript. HTML is used for structuring the content, CSS for styling and design, and JavaScript for adding interactivity and behavior to the website.


What if difference between HTML and dHTML?

DHTML was an old term we used to describe HTML that was being played with using Javascript (or J-Script) The term was derived from "Dynamic HTML." Javascript is now very widely used, and so the term DHTML has gone by the wayside.


Which programming language is used within HTML documents to trigger interactive features?

Javascript is the main language used, but there are some other scripting languages used too.