Page 127 - DCAP202_Fundamentals of Web Programming
P. 127

Fundamentals of Web Programming




                    Notes          HTML Element Methods
                                          Method                         Description                   W3C
                                   toString()            Converts an element to a string               Yes

                                   Self Assessment

                                   Fill in the blanks:
                                   6.  The ........................... tag is used to include  objects such  as images,  audio, videos,  Java
                                       applets, ActiveX, PDF, and Flash into a webpage.

                                   7.  The Document object is the root of a ...........................
                                   8.  ........................... is used to create an attribute node.
                                   9.  ........................... method is used to import a node from another document.

                                   10.  ........................... are actions that can be detected by JavaScript.
                                   11.  Every element on a ........................... has certain events which can trigger a JavaScript.
                                   12.  The ........................... event is often used to check the visitor’s browser type and browser
                                       version, and load the proper version of the web page based on the information.
                                   13.  The ........................... event is used to validate ALL form fields before submitting it.
                                   14.  onMouseOver and onMouseOut are often used to create “...........................” buttons.
                                   15.  ........................... is a frame set, document, or form object such as a text field loses the focus
                                       for input.

                                   9.3 Summary

                                      The Document Object Model (DOM) is a programming API for HTML and XML documents.
                                      The Document Object Model currently consists of two parts, DOM Core and DOM HTML.
                                       The DOM Core represents the functionality used for XML documents, and also serves as
                                       the basis for DOM HTML.

                                      The objects are self-contained bundles of data.
                                      Object tag is used to include objects such as images, audio, videos, Java applets, ActiveX,
                                       PDF, and Flash into a webpage.

                                      The M in DOM stands for Model, but it could just as easily stand for Map.
                                      A Node is an interface from which a number of DOM types inherit, and allows  these
                                       various types to be treated (or tested) similarly.

                                      The Document object is the root of a document tree. The Document object gives us access
                                       to the document’s data.

                                      By using JavaScript, we have the ability to create dynamic web pages. Events are actions
                                       that can be detected by JavaScript.











          120                               LOVELY PROFESSIONAL UNIVERSITY
   122   123   124   125   126   127   128   129   130   131   132