CoolInterview.com - World's Largest Collection of Interview Questions & Answers, FAQs, queries, sample papers, exam papers, dumps, what, why, how, where, when questions
Our Services
Get 9,000 Interview Questions & Answers in an eBook.




Get it now !!
Send your Resume to 6000 Companies
HTML DOM Interview Questions & Answers - Learning Mode
COOLINTERVIEW.COM PROGRAMMING LANGUAGES INTERVIEW QUESTIONS HTML DOM INTERVIEW QUESTIONS QUESTIONS & ANSWERS - LEARNING MODE

HTML DOM Interview Questions & Answers - Learning Mode

The Document Object Model (DOM) is a cross-platform and language-independent application programming interface that treats an HTML, XHTML, or XML document as a tree structure wherein each node is an object representing a part of the document. The objects can be manipulated programmatically and any visible changes occurring as a result may then be reflected in the display of the document.

Try HTML DOM Interview Questions & Answers - Exam Mode

1

Sort By : Latest First | Oldest First | By Rating

HTML DOM Interview Questions & Answers - Learning Mode
Try HTML DOM Interview Questions & Answers - Exam Mode
Question: What is the difference between DOM and SAX? What would you use if an option is given?

Answer: DOM
1. Tree of nodes
2. Memory: Occupies more memory, preffered for small XML
documents
3. Slower at runtime
4. Stored as objects
5. Programmatically easy
6. Ease of navigation
SAX
1. Sequence of events
2. Doesn't use any memory preferred for large documents
3. Faster at runtime
4. Objects are to be created
5. Need to write code for creating objects
6. Backward navigation is not possible as it sequentially
processes the document Source: CoolInterview.com
Question: What is the syntax of UI object identifier used by DOM extension?

Answer: The DOM browser extension uses the following syntax for web UI objects:
Browser.BrowserChild(?page_titile?).html_class(?object_tag?)
1. ?page_title? is the title of the web page, defined by the HTML ?TITLE? tag.
2. ?object_tag? is the label of the HTML element. How a HTML element is labeled depending on the type of HTML element. Source: CoolInterview.com
Question: What is XML family ?

Answer: Display : XHTML, XSLT, XSL
Modeling : DTD, XML Schema
Manipulating : DOM, SAX
Querying : Xlink, XQL, Xpath

The purchase of the domain is to provide some common interview questions, answers and tutorials for Java, J2EE, Struts, RUP, XML, JSP, Servlets and Oracle. The site is ONLY for reference purposes. The users need to verify the correctness and OracleQuestions.com do not guarantee the correctness of the content. The risk of using this content remains with the user. Source: CoolInterview.com
Question: How to change HTML Attribute using HTML DOM?

Answer: I have given you example to change HTML Attribute by using HTML DOM.
Example:
<html>
<body>
<img id="image" src="oldimage.gif">
<script type="text/javascript">
document.getElementById("image").src="newimage.jpg";
</script>
</body>
</html>
In the above example we load an image on HTML document by using id="image".Using DOM we get the element with id="image".JavaScript that we used in example to changes the src attribute from Source: CoolInterview.com
Question: What is multi-tagging?

Answer: Multi-tagging is a technique used by the DOM browser extension to identify a web page UI object. Whenever possible, DOM extension inserts more than one tag into the object identifier in following format:
Browser.BrowserChild(?page_title?).html_class(?caption_tag|window_tag?)
1. ?Caption_tag? is the caption of the HTML element.
2. ?#index_tag? is the index of this HTML element, counting from the beginning of this page of the same class of HTML elements.
3. ?window_tag? is the window i Source: CoolInterview.com
Question: What is DOM and how does it relate to XML?

Answer: The Document Object Model (DOM) is an interface specification maintained by the W3C DOM Workgroup that defines an application independent mechanism to access, parse, or update XML data. In simple terms it is a hierarchical model that allows developers to manipulate XML documents easily Any developer that has worked extensively with XML should be able to discuss the concept and use of DOM objects freely. Additionally, it is not unreasonable to expect advanced candidates to thoroughly understand i Source: CoolInterview.com
Question: OK, then what is Javascript and how does it work with the DOM?

Answer: Jeremy: JavaScript is just one of many programming languages with DOM support. What makes the combination of JavaScript and the DOM so exciting is the environment where they are used. Whereas most programming languages do all their work on the server side, putting together pages to be sent to the browser, JavaScript runs in the browser. Source: CoolInterview.com
Question: What is DOM?

Answer: The Document Object Model (DOM) is an interface specification maintained by the W3C DOM Workgroup that defines an application independent mechanism
to access, parse, or update XML data. In simple terms it is a hierarchical model that allows developers to manipulate XML documents easily. Source: CoolInterview.com
Question: What is the DOM?

Answer: The DOM is a W3C (World Wide Web Consortium) standard.

The DOM defines a standard for accessing documents like HTML and XML:

"The W3C Document Object Model (DOM) is a platform and language-neutral interface that allows programs and scripts to dynamically access and update the content, structure, and style of a document."

The DOM is separated into 3 different parts / levels:

* Core DOM - standard model for any structured document
* XML DOM - standard model f Source: CoolInterview.com
Question: What the hell is the DOM?

Answer:

Jeremy: I could give you the very unhelpful answer that it's an API, but I would just be exchanging one acronym for another.

Basically, the Document Object Model is a way of looking at a document. In that sense, it isn't all that different to CSS, which uses another kind of mental model. CSS uses the idea of selectors to interact with a document. The DOM, on the other hand, views a document as a tree of nodes: element nodes, attribute nodes and text nodes. The DOM Source: CoolInterview.com
Question: What is DOM and how does it relate to XML?

Answer: The Document Object Model (DOM) is an interface
specification maintained by the W3C DOM Workgroup that
defines an application independent mechanism to access,
parse, or update XML data. In simple terms it is a
hierarchical model that allows developers to manipulate XML
documents easily Any developer that has worked extensively
with XML should be able to discuss the concept and use of
DOM objects freely. Additionally, it is not unreasonable to
expect advanced candidates to Source: CoolInterview.com
Question: What is the HTML DOM?

Answer: The HTML DOM is:

* A standard object model for HTML
* A standard programming interface for HTML
* Platform- and language-independent
* A W3C standard

The HTML DOM defines the objects and properties of all HTML elements, and the methods (interface) to access them.

In other words: Source: CoolInterview.com
Question: What is the XML DOM?

Answer: The XML DOM defines the objects and properties of all XML elements, and the methods (interface) to access them. Source: CoolInterview.com
Question: What is DOM and how does it relate to XML?

Answer: The Document Object Model (DOM) is an interface specification maintained by the W3C DOM Workgroup that defines an application independent mechanism to access, parse, or update XML data. In simple terms it is a hierarchical model that allows developers to manipulate XML documents easily Any developer that has worked extensively with XML should be able to discuss the concept and use of DOM objects freely. Additionally, it is not unreasonable to expect advanced candidates to thoroughly understand i Source: CoolInterview.com
Question: How DHTML work with JavaScript?


Answer: Using JavaScript we can made dynamic HTML content.
We can use document.write() to show dynamic content on your web page.Below I have given you HTML page which made dynamic after using JavaScript.This example will show current date.
Example:
<html>
<body>
<script type="text/javascript">
document.write(Date());
</script>
</body>
</html>
Source: CoolInterview.com

1



India News Network
Latest 20 Questions
Payment of time- barred debt is: (a) Valid (b) Void (c) Illegal (d) Voidable
Consideration is defined in the Indian Contract Act,1872 in: (a) Section 2(f) (b) Section 2(e) (c) Section 2(g) (d) Section 2(d)
Which of the following is not an exception to the rule, "No consideration, No contract": (a) Natural love and affection (b) Compensation for involuntary services (c) Completed gift (d) Agency
Consideration must move at the desire of: (a) The promisor (b) The promisee (c) The promisor or any other party (d) Both the promisor and the promisee
An offer which is open for acceptance over a period of time is: (a) Cross Offer (b) Counter Offer (c) Standing Offer (d) Implied Offer
Specific offer can be communicated to__________ (a) All the parties of contract (b) General public in universe (c) Specific person (d) None of the above
_________ amounts to rejection of the original offer. (a) Cross offer (b) Special offer (c) Standing offer (d) Counter offer
A advertises to sell his old car by advertising in a newspaper. This offer is caleed: (a) General Offer (b) Special Offer (c) Continuing Offer (d) None of the above
In case a counter offer is made, the original offer stands: (a) Rejected (b) Accepted automatically (c) Accepted subject to certain modifications and variations (d) None of the above
In case of unenforceable contract having some technical defect, parties (a) Can sue upon it (b) Cannot sue upon it (c) Should consider it to be illegal (d) None of the above
If entire specified goods is perished before entering into contract of sale, the contract is (a) Valid (b) Void (c) Voidable (d) Cancelled
______________ contracts are also caled contracts with executed consideration. (a) Unilateral (b) Completed (c) Bilateral (d) Executory
A offers B to supply books @ Rs 100 each but B accepts the same with condition of 10% discount. This is a case of (a) Counter Offer (b) Cross Offer (c) Specific Offer (d) General Offer
_____________ is a game of chance. (a) Conditional Contract (b) Contingent Contract (c) Wagering Contract (d) Quasi Contract
There is no binding contract in case of _______ as one's offer cannot be constructed as acceptance (a) Cross Offer (b) Standing Offer (c) Counter Offer (d) Special Offer
An offer is made with an intention to have negotiation from other party. This type of offer is: (a) Invitation to offer (b) Valid offer (c) Voidable (d) None of the above
When an offer is made to the world at large, it is ____________ offer. (a) Counter (b) Special (c) General (d) None of the above
Implied contract even if not in writing or express words is perfectly _______________ if all the conditions are satisfied:- (a) Void (b) Voidable (c) Valid (d) Illegal
A specific offer can be accepted by ___________. (a) Any person (b) Any friend to offeror (c) The person to whom it is made (d) Any friend of offeree
An agreement toput a fire on a person's car is a ______: (a) Legal (b) Voidable (c) Valid (d) Illegal
Cache = 0.027344 Seconds