answersLogoWhite

0

Unless it is in a comment, you can't

User Avatar

Wiki User

7y ago

What else can I help you with?

Continue Learning about Engineering

Which tag is used to implement javascript in an HTML file?

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).


What element do you use to add JavaScript code to a web page and how is it structured?

To add javascript code in HTML, you have to include the script tag on top. It can be added as <script src="source of script"></script>


How do you make glitter graphics in HTML?

You can't reli create them in HTML, javascript would be a push but I think was you are looking for is the img tag of HTML therefore: You can create gilter graphics with a genertor customise you image then save and add an image tag in your HTML page. (added a link under related links)


Does the external JavaScript file have to contain the script tag?

No, just the HTML file. If you include the tag, it will cause a syntax error. The best way to think of it is that the HTML file already has the tag in it, and the external JS file is inserted into the HTML file at that point, between the tags.


Can you use JavaScript within the form tag?

You can call an external javascript file or javascript code located inside the head or body tag from a form using event handlers. I am not sure if you can or cannot use javascript code inside form tags but am sure that it is not a good programming practise to put code of two different language (js & html) together

Related Questions

How do you write HTML codes and javascript events together in your HTML kit?

You need to write the HTML code in the tag format. If you want to write JavaScript put it in <script> tag.


Which tag is used to implement javascript in an HTML file?

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).


What tag is used in adding variables in HTML?

HTML has no variables of its own. Javascript does.


What element do you use to add JavaScript code to a web page and how is it structured?

To add javascript code in HTML, you have to include the script tag on top. It can be added as <script src="source of script"></script>


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

Easy one. <script type="text/javascript"></script>.


How do you make glitter graphics in HTML?

You can't reli create them in HTML, javascript would be a push but I think was you are looking for is the img tag of HTML therefore: You can create gilter graphics with a genertor customise you image then save and add an image tag in your HTML page. (added a link under related links)


How do you insert a HTML text box in a flash website how to insert HTML text box code in empty text box?

The textarea tag is a part of the form tag and is contained within that and the fieldset tags. A textbox is produced by an inline or external JavaScript.


Does the external JavaScript file have to contain the script tag?

No, just the HTML file. If you include the tag, it will cause a syntax error. The best way to think of it is that the HTML file already has the tag in it, and the external JS file is inserted into the HTML file at that point, between the tags.


Where do you write javascript?

JavaScript is written in an HTML document. You start it with this tag:and end it with:


Can you use JavaScript within the form tag?

You can call an external javascript file or javascript code located inside the head or body tag from a form using event handlers. I am not sure if you can or cannot use javascript code inside form tags but am sure that it is not a good programming practise to put code of two different language (js & html) together


How do you add text to an already existing p tag in JavaScript or PHP?

Consider your HTML <p id="pid">Hello </p> In javascript document.getElementById('pid').innerHTML="world"; Remember "id" are unique on the HTML page hence js will always pick <p> where id=pid.


How can we use script tag in java?

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