Page 41 - trackpad v5.1 class 8 flipbook
P. 41

In the previous classes, we have learnt to create web pages using HTML. HTML uses many tags to
                 tell the browser how to display the content on web pages. The web pages we have learnt to create
                 were static in nature which were not interactive. We need to use another scripting language along
                 with HTML to make web pages interactive and dynamic in nature. JavaScript is one of such type
                 of scripting languages.



                           JAVASCRIPT—A SCRIPTING LANGUAGE


                 JavaScript, often abbreviated as JS, is a client-side scripting language used for enhancing
                 users’ interaction with the web page by making web pages dynamic. The meaning of
                 client-side scripting language is that the code written in JavaScript is interpreted by the web
                 browser on which the web page is running. With the help of JavaScript, we can add different
                 types of functionalities in our web pages like taking input from the user, validating the user
                 input, displaying pop-up boxes, etc.

                 Alongside  HTML5 and  CSS,  JavaScript  is  one  of the  core  languages  of the  World  Wide  Web
                 (WWW).  It was developed  by  Brendan  Eich, a  Netscape  Communications  Corporation
                 programmer, in 1995. He took only ten days to develop the language.



                                                                                                         PURE
                     There are about 1.7 billion websites on the Internet from which 95% websites use
                     JavaScript.                                                                         FACT






                           FEATURES OF JAVASCRIPT

                 Some of the important features of JavaScript are as follows:

                    It is used in both client-side and server-side applications.
                    It is platform independent; hence, it runs on many operating systems.

                     It is used with HTML code and runs on
                   web browsers.                                            Subject: LiveScript Launch Date

                     It is  a case-sensitive  and  interpreted              In September 1995, a Netscape programmer
                   language.                                                named  Brandan Eich developed  a new
                                                                            scripting  language  in just  10 days.  It was
                     It is used to validate user input for errors.          originally named Mocha, but quickly became
                                                                            known as LiveScript and, later, JavaScript

                           USING JAVASCRIPT


                 JavaScript cannot run on its own because it is a scripting language, and hence, needs to be
                 embedded within HTML code.

                 In HTML5, we can use JavaScript in two ways: internally and externally.


                                                                                      Dynamic Web Pages in HTML5  39
   36   37   38   39   40   41   42   43   44   45   46