Page 279 - Web Applications (803) Class 11
P. 279

INTRODUCTION TO DYNAMIC                                                   4


                               WEBSITES USING JAVASCRIPT





                 The  first  version  of  HTML  was  introduced  in  1993,  and  it  simply  displayed  plain  text  on  a  web  page.
                 JavaScript was invented in 1995 to give more flexibility and add functionality to web pages. A web page
                 is traditionally made up of three separate parts with separate responsibilities: HTML code defines the
                 structure and meaning of the content on a page, CSS code defines its appearance, and JavaScript code
                 defines its behaviour.
                 In this unit, we will discuss about JavaScript. Both JavaScript and HTML are the required web technology
                 languages  used  to  create  a  fully  functional  web  application  or  web  page.  To  put  it  simply,  JavaScript
                 improves the user interface of the web page and makes a web page interactive, hence enhancing the user
                 experience.

                   4.1 STATIC WEBSITES

                 A static website is made up of a certain number of web pages that have been pre-rendered and have had
                 their structure and content hardcoded. Users thus view the same content irrespective of their identity,
                 location, or browser.

                 Once published, a static website remains unchanged and does not take into account changes in user action.
                 Every page that is a part of the website has HTML source code that must be manually edited if you wish to
                 see something different. Especially if you're upgrading a large website, this can take a lot of time.

                 Advantages of Static Websites

                 Some advantages of static websites are as follows:

                 Ð ÐStatic websites are typically safer.
                 Ð ÐSearch engines find it simpler to rank static websites because they typically load quicker.
                  ÐSimple software can be used to create static websites.
                 Ð
                 Ð ÐBuilding static websites is less expensive.

                 Ð ÐOn a static website, you can alter the structure and appearance of every page.
                 Disadvantages of Static Websites

                 Apart from the advantages, static websites also have some disadvantages, which are as follows:
                 Ð ÐStatic websites can be difficult and time-consuming to update, especially if they are huge.

                 Ð ÐScaling a website to add more content can be challenging once the code has been deployed.
                 Ð ÐYour website can have stale information that gives the impression that your business or brand is
                   out-of-date because static websites require a lot of work to maintain.

                 Ð ÐVisitors cannot be engaged with or provided with distinctive experiences.






                                                                      Introduction to Dynamic Websites Using JavaScript  277
   274   275   276   277   278   279   280   281   282   283   284