What is the meaning of HTML <script> tag in english?

( 5 ) 1 Rating
 1 views  .  0 comments  .   0 up votes .    0 down votes . shares 0 Download Solution PDF tuteeHUB earn credit +10 pts

Answer: HTML <script> TAG

When writing in HTML, the <script> tag is an inline element used to designate a client-side script on a web page. The <script> tag EITHER points to an external script file or contains scripting statements. It is useful for adding things like DYNAMIC content or form validation. The following sections contain information about this tag, including an example of it in use, and related attributes and browser compatibility.

Example of <script> code<script>document.write("Your browser supports JavaScript.")</script>
<noscript>Sorry, your browser does not support JavaScript.</noscript>Example result

document.write("Your browser supports JavaScript!")Sorry, your browser does not support JavaScript.

Example explanation

If you browser supports JavaScript, you see the message "Your browser supports JavaScript." If not, you see the message "Sorry, your browser does not support JavaScript."

Attributes

Within an HTML tag, an attribute DICTATES certain aspects of an HTML element. Attributes are made up of a name and value pair; all tags support standard attributes. The following table shows all of the current unique HTML attributes for the <script> tag, and a description of each.

Note

The type attribute is optional in HTML5, but still required in HTML 4.

AttributeDescription
asyncDesignates that the script should be executed asynchronously (external scripts only).
charsetDesignates the character encoding used with an external script file.
deferDesignates that the script is executed once the page has finished parsing (external scripts only).
srcDesignates the URL of an external script file.
typeDesignates the script's media type.
Deprecated attributes

A deprecated attribute is ONE that may function currently but is not supported in going forward. While the attribute may work with the current version of HTML, it will eventually be phased out. It is better to avoid using these attributes to help future-proof your website.

AttributeDescription
xml:spaceDesignates whether or not whitespace in code should be preserved.
Compatibility
EdgeInternet ExplorerFirefoxSafariOperaChrome
All versionsAll versionsAll versionsAll versionAll versionsAll versions

tuteehub_quiz
Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.






Report
Write Your Comments or Explanations to Help Others


Comments(0)



Tuteehub Dictionary Web Story
HTML help in Computer Definitions
Tuteehub Dictionary Web Story
T - Definitions in Computer Definitions
Tuteehub Dictionary Web Story
Microsoft Windows Help in Computer Definitions
Tuteehub Dictionary Web Story
N - Definitions in Computer Definitions
Tuteehub Dictionary Web Story
O - Definitions in Computer Definitions
Tuteehub Dictionary Web Story
P - Definitions in Computer Definitions
Tuteehub Dictionary Web Story
Q - Definitions in Computer Definitions
Tuteehub Dictionary Web Story
R - Definitions in Computer Definitions
Tuteehub Dictionary Web Story
S - Definitions in Computer Definitions
Tuteehub Dictionary Web Story
Y - Definitions in Computer Definitions
Tuteehub Dictionary Web Story
X - Definitions in Computer Definitions


Ever curious about what any word really means? Dictionary has got them all listed out for you to explore. Simply,Choose a subject/topic and get started on a self-paced learning journey in a world of word meanings and translations.

open app imageOPEN APP