हिंदी
तमिलनाडु बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान कक्षा ११

Write about <script> tag. - Computer Applications

Advertisements
Advertisements

प्रश्न

Write about <script> tag.

संक्षेप में उत्तर

उत्तर

JavaScript can be implemented using <script>… </script> tags. The <script> tag containing JavaScript can be placed anywhere within in the web page, but it is normally recommended that should be kept it within the <head> tags. The <script> tag alerts the browser program to start interpreting all the text between these tags as script commands.

The syntax of a JavaScript segment in Hyper Text Markup Language (HTML) or Dynamic Hyper Text Markup Language (DHTML) is as follows:

<script language=”javascript” type=”text/
javascript”>
JavaScript code
</script>

The <SCRIPT> tag takes two important attributes:

  1. Language- This attribute specifies the scripting language. Typically, its value will be javascript.
  2. Although recent versions of HTML (Extensible HyperText Markup Language – XHTML, its successor) have phased out the use of this attribute is optional.
  3. Type – This attribute is used to indicate the scripting language and its value should be set to “text/javascript”.
shaalaa.com
Using Javascript in HTML Page
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 14: Introduction to Javascript - Evaluation [पृष्ठ ३१४]

APPEARS IN

सामाचीर कलवी Computer Applications [English] Class 11 TN Board
अध्याय 14 Introduction to Javascript
Evaluation | Q 4. | पृष्ठ ३१४
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×