All Exams Test series for 1 year @ ₹349 only
Question

The behaviour of the document elements in XML can be defined by

This question was previously asked in
UGC NET 2014 Paper 1 Question Paper (28-Dec-2014)
The correct answer is

All of the above

XML itself only describes structure and data; behaviour is added by a script (such as JavaScript) working through the Document Object Model (DOM), which represents the XML document as a tree of objects.

The document object is the root of that tree: through it a script can find, create and remove elements (getElementsByTagName, createElement …), so it defines how the document responds as a whole.

Each element object represents one element: its attributes, text and children can be read and changed through its properties and methods, which defines how that element behaves.

Registering event handlers on elements (e.g. for click or load events) attaches code that runs when the event occurs, which is the most direct way of giving elements interactive behaviour. All three mechanisms are used, so every one of them applies.

Hence, the answer is All of the above.

Was this answer helpful?

Similar Questions

  1. __________ tag is an extension to HTML that can enclose any number of Javascript statements.

  2. Javascript and Java has similar name because __________ is/are true.

    (a) Javascripts syntax is loosely based on Java’s syntax

    (b) Javascript is stripped down version of Java

    (c) Java and Javascript are originated from Island of Java

    Codes :

  3. The syntax of capturing events method for document object is


Important Questions from Javascript Basics

  1. __________ tag is an extension to HTML that can enclose any number of Javascript statements.

  2. Javascript and Java has similar name because __________ is/are true.

    (a) Javascripts syntax is loosely based on Java’s syntax

    (b) Javascript is stripped down version of Java

    (c) Java and Javascript are originated from Island of Java

    Codes :

  3. The syntax of capturing events method for document object is

  4. Which of the following statements is/are true?

    P: In a scripting language like JavaScript, types are typically associated with values, not variables.

    Q: It is not possible to show images on a web page without the image tag of HTML
    Select the correct answer from the given below:
Need Expert Advice?
Upcoming Exams
CTET
December 12, 2026
CBSE UGC NET
December 14, 2026
CSIR UGC NET
December 19, 2026
Test Series
UGC NET img
Teaching
UGC NET (Paper 2) 2026 Mock Test Series
796 Tests 2 Tests Free
4.4(40)
English
More Questions from UGC NET

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App