You are on page 1of 4

1. What does HTML stand for ?

1. 2. 3. 4. Hyperlinks and Text Markup Language Home Tool Markup Language Hyper Text Markup Language Home Text Markup Language

2. What is the syntax to write the HTML tags ?


1. 2. 3. 4. (HTML) <%HTML%> "HTML" <HTML>

3. What is the correct HTML tag for inserting an horizontal line ?


1. 2. 3. 4. <hr> <line> <horizontal line> <tr>

4. How do you define font style of the text ?


1. 2. 3. 4. <text style="Arial"> <font style="Arial"></font> <text=Arial> <style="Arial">

5. Tags and text that do not show directly on the page are placed where ?
1. 2. 3. 4. Head Body Tables Title

6. What is the file extension used for HTML file ?


1. 2. 3. 4. .webpage .shtml .html .doc

7. The <i> tag makes text... ?


1. 2. 3. 4. Bold Inline Underlined Italic

8. Besides <B>, another way to make text bold is what ?


1. 2. 3. 4. <fat> <strong> <dark> <emp>

9. To seperate single list items use ?


1. 2. 3. 4. <ol> and </ol> <ul> and </ul> <li> and </li> <th> and </th>

10. To create a bulleted list use ?


1. 2. 3. 4. <ol> <il> <bullet> <ul>

1. To change the size of an image in HTML use what ?


1. 2. 3. 4. pliers height and width top and bottom bigger and smaller

2. Which tag is used to insert images into your web page ?

1. 2. 3. 4.

img scr pic image

3. What does vlink mean ?


1. 2. 3. 4. active link virtuallink visited link very good link

4. Which colors consist of equal amounts of all basic colors ?


1. 2. 3. 4. purple, green, and red white, black and gray white,red,blue black, blue, and gray

5. To add rows to your tables use which tags?


1. 2. 3. 4. <td> and </td> <cr> and </cr> <th> and </th> <tr> and </tr>

6. Increasing the cellpadding value will what ?


1. 2. 3. 4. Increase the distance between cell and content Increase the softness of your site Increase the space between cells none

7. You can add names to each frame window using which setting ?
1. 2. 3. 4. src ur name none

8. Which is not valid HTML ?


1. 2. 3. 4. <frameset columns="16%,84%"> <frameset rows="16%,84%"> <frameset table="100,100"> <frameset cols="100,150">

9. Which attribute specify where to send a form ?


1. 2. 3. 4. method input output action

10. Password fields are similar to what ?


1. 2. 3. 4. Text fields except text show as asterix Hidden fields except text show as asterix Text area except text show as asterix none

HTML DOM Quiz (Multiple Choice Questions) - 2


1. Every node has some properties that contain some information about the node. The properties are__________ .
1. 2. 3. 4. nodeName nodeValue nodeType All of these.

2. The nodetype for document returns the ________ value.


1. 2. 3. 4. 2 9 3 8

3. The Document object is part of the Which object ?


1. Tree

2. 3. 4.

System Window None of these.

4. The _______ object represents an HTML hyperlink.


1. 2. 3. 4. href Anchor Reference None of these.

5. Which object represents a push button in HTML DOM ?


1. 2. 3. 4. PushButton Input Button Button None of these.

6. In list below, which is not the HTML DOM Object ?


1. 2. 3. 4. Area Image Frame TextBox

7. The History object is actually a ________ object.


1. 2. 3. 4. JavaScript HTML DOM XML DOM Core DOM

8. The History object is automatically created by the JavaScript runtime engine and consists of an array of _______ .
1. 2. 3. 4. Images URLs JavaScript Commands None of these.

9. The Location object is automatically created by the_______________ and contains information about the current URL.
1. 2. 3. 4. HTML Browser Java Compiler JavaScript runtime engine

10. You can access a radio object by searching through the elements[] array of the form, or by using ______________ .
1. getElementById() 2. document.getElementById() 3. document.get() 4. All of these

1. Which of the following is the latest DOM recommendation from the W3C?
1. 2. 3. 4. DOM 1.5 DOM level 1 DOM level 2 None of the above

2. Which of the following is an important way of making sure your scripts will work with future browsers?
1. 2. 3. 4. Follow HTML, JavaScript, and DOM standards. Spend an hour a day downloading the newest browsers and testing your scripts. Wait until the very last browsers are released before writing any scripts. All of these

3. What is DOM ?
1. 2. 3. 4. Dynamic Object Model Document Object Model Distributed Object Model None of these

4. The DOM presents an HTML document as a __________ .


1. 2. Hash table structure Dynamic structure

3. 4.

Tree-structure All of these

5. Which defines a standard set of objects for any structured document ?


1. 2. 3. 4. HTML DOM Core DOM XML DOM None of these

6. In how many defferent parts is the DOM divided ?


1. 2. 3. 4. 2 4 3 1

7. According to the DOM, everything in an HTML document is a _________ .


1. 2. 3. 4. Tree Node Table Branches

8. You can find the element you want to manipulate in ________ way ?
1. 2. 3. 4. getElementById() getElementsByTagName() All of these None of these

9. What is the syntax of getElementById() ?


1. 2. 3. 4. document.getElementsByTagName("tagname"); document.getElementsByTagName; getElementsByTagName("tagname"); getElementsByTagName.document("tagname");

10. A Window object is created automatically with every instance of ________ .


1. 2. 3. 4. <head> <title> <table> <body>

You might also like