Total Questions:-17 Goto Page:
1 2 3 4
R4R --->HTML DOM-->HTML DOM -->HTML DOM Subjective Questions And Answers
HTML DOM Subjective Questions And Answers
Page 1
Question :How you define DOM?
Give Your Answer
Answer: Dom is standards for Document Object Model. It is an standard given by World Wide Web Consortium.
W3C define that standard to accessing the HTML and XML like document.Also we can say that using DOM we can define the objects and properties of all document elements and aslo has methods using them we accessed documents.
I have given you another definition of DOM.
Simply DOM is an plateform and language-netural interface that helps both programs and scripts to access and update the style,content and structure of document dynamically.
W3C also diveded DOM into three different but important parts.These are,
1. Core DOM
2. XML DOM
3. HTML DOM
User Name:Vivek Date:09.02.09
Question :What do you mean by HTML DOM?
Give Your Answer
Answer: Using HTML DOM is use to define the object and their properties of all HTML elements and using HTML DOM we can access the methods of HTML elements.
In brief we can say that HTML DOM is a W3C standard which is plateform and language independent.It is also a programing interface for HTML document.
User Name:Vivek Date:09.02.09
Question :How you define nodes in HTML DOM?
Give Your Answer
Answer: DOM says that everything inside an HTML document called as node.
DOM also says that all HTML tags are called as element node.Every text, comments and HTML attribute inside the HTML tags also called as text nodes, comment nodes and attribute node repectively.
I have given you a HTML DOM example:
<html>
<head>
<title>DOM interview questions</title>
</head>
<body>
<p>R4R Welcomes You!</p>
</body>
</html>
In the above example <html> node contain two child nodes.These are <head> and <body>.
<In side the <HTML> tag, <head> node contain a <title> node and the <body> node contain a <p> node.
User Name:Vivek Date:09.02.09
Question :How you define node tree in HTML DOM?
Give Your Answer
Answer:Using HTML DOM we can show a node tree structure of all nodes in an HTML document.
In a node tree structure all nodes in an HTML document are relations with each other.
Using node tree structure we can access all node of HTML document.
In tree structure we start from root node and go down to the lowest level nodes of tree.
User Name:Vivek Date:09.02.09
Question :How you define Parents, Children and Siblings nodes in node tree?
Give Your Answer
Answer: In node tree structure nodes are relate to some other nodes.
Root node of node tree and predecessor node of a node is called as parent node.Nodes of a parent node are called as children.Siblings nodes are the children that are on the same level.
Node properties of node tree are given below:
Every node(except node) should have exactly one parent node.
A node contains nodes are called parent nodes and contains nodes are called as children.
A node may have many childrens.
Siblings are the nodes of same level and Parents of sibling nodes should be same.
Last node or leaf node doesn't have any children.
Example:
<html>
<head>
<title>DOM interview questions</title>
</head>
<body>
<h2>My first DOM example</h2>
<p>R4R Welcomes You!</p>
</body>
</html>
In the above example I define you each of the HTML document in terms of Parent, Children and Sibling nodes.
1. Because <html> has not any parent node.So, we called <html> as root node.
2. <html> is also a parent node because it has two childrens <head> and <body>.
3. <head> node has only one children <title> and
<body> node has two childrens <h2> and <p>.
4. <title> node has one child node as text node "DOM interview question"
5. Node <h2> and <p> are called as siblings because they are children of same parent node called <body>.
6. Node <h2> and <p> has contain only one children as text node "My first DOM example" and
"R4R Welcomes You!".
User Name:Vivek Date:09.02.09
Go:
1 2 3 4
HTML DOM Objective
HTML DOM Objective Questions And Answers
HTML DOM Interview Questions And Answers
HTML DOM Interview Questions And Answers
R4R,HTML DOM Objective, HTML DOM Subjective, HTML DOM Interview Questions And Answers,HTML DOM,HTML DOM Interview,HTML DOM Questions ,HTML DOM Answers
R4R --->HTML DOM-->HTML DOM -->HTML DOM Subjective Questions And Answers
Contact Us
|