Web Development Basics: HTML, JavaScript & XML

Fundamental concepts of web development including HTML tags and attributes, JavaScript syntax and methods, and XML document structure and syntax.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

How can you open a link in a new browser window?

  1. <a href="url" target="_blank">
  2. <a href="url" target="new">
  3. <a href="url" new>
  4. <a window="url" new>
Question 2 Multiple Choice (Single Answer)

What is the correct HTML for making a checkbox?

  1. <input type="check" />
  2. <check>
  3. <checkbox>
  4. <input type="checkbox" />
Question 3 Multiple Choice (Single Answer)

Which set of tags looks like this? ·Dogs ·Cats ·Birds

  1. <ul></ul>
  2. <ol></ol>
  3. <dl></dl>
Question 4 Multiple Choice (Single Answer)

What is the HTML feature that divides a web page into two or more scrollable parts?

  1. Split Page
  2. Frame
  3. Forms
  4. Table
Question 5 Multiple Choice (Single Answer)

When you place a JavaScript on a Web page, which tag would you use?

  1. <JS></JS>
  2. <JSCRIPT></JSCRIPT>
  3. <JAVA></JAVA>
  4. <SCRIPT></SCRIPT>
Question 6 Multiple Choice (Single Answer)

What is the correct syntax of the declaration which defines the XML version?

  1. <?xml version="1.0"?>
  2. <xml version="1.0"/>
  3. <?xml version="1.0"/>
  4. <?xml version=1.0>
Question 7 True/False

This is a "well formed" XML document? AXA TCS Reminder Please COnfirm your acceptance

  1. True
  2. False
Question 8 True/False

XML elements cannot be empty

  1. True
  2. False
Question 9 Multiple Choice (Single Answer)

For the XML parser to ignore a certain section of your XML document, which syntax is correct?

  1. <![CDATA[ Text to be ignored ]]>
  2. <xml:CDATA[ Text to be ignored ]>
  3. <PCDATA> Text to be ignored </PCDATA>
  4. <CDATA> Text to be ignored </CDATA>
Question 10 Multiple Choice (Single Answer)

Choose the correct HTML tag for the largest heading

  1. <h1>
  2. <h6>
  3. <head>
  4. <heading>
Question 11 Multiple Choice (Single Answer)

What is the correct HTML for adding a background color?

  1. <background>yellow</background>
  2. <body background="yellow">
  3. <body style="background-color:yellow">
  4. <body style="background-color='yellow'">
Question 12 Multiple Choice (Single Answer)

How can you open a link in a new browser window?

  1. <a href="url" target="_blank">
  2. <a href="url" target="new">
  3. <a href="url" new>
  4. <a window="url" new>
Question 13 Multiple Choice (Single Answer)

What is the correct HTML for making a checkbox?

  1. <input type="check" />
  2. <check>
  3. <checkbox>
  4. <input type="checkbox" />
Question 14 Multiple Choice (Single Answer)

Which set of tags looks like this? ·Dogs ·Cats ·Birds

  1. <ul></ul>
  2. <dl></dl>
  3. <ol></ol>
Question 15 Multiple Choice (Single Answer)

What is the HTML feature that divides a web page into two or more scrollable parts?

  1. Split Page
  2. Frame
  3. Form
  4. table
Question 16 Multiple Choice (Single Answer)

When you place a JavaScript on a Web page, which tag would you use?

  1. <JS></JS>
  2. <JScript></JScript>
  3. <java></java>
  4. <script></script>
Question 17 Multiple Choice (Single Answer)

onBlur, onClick, and onFocus are all ______

  1. elements
  2. properties
  3. methods
  4. eventhandlers
Question 18 Multiple Choice (Single Answer)

What is the correct way to write a JavaScript array?

  1. var txt = new Array("tim","kim","jim")
  2. var txt = new Array:1=("tim")2=("kim")3=("jim")
  3. var txt = new Array(1:"tim",2:"kim",3:"jim")
  4. var txt = new Array="tim","kim","jim"
Question 19 Multiple Choice (Single Answer)

What is the correct JavaScript syntax for opening a new window called "w2" ?

  1. w2=window.open("http://www.w3schools.com");
  2. w2=window.open "http://www.w3schools.com";
  3. w2=window.new "http://www.w3schools.com";
  4. w2=window.new("http://www.w3schools.com");
Question 20 Multiple Choice (Single Answer)

//* in Xpath stands for

  1. all child nodes
  2. all elements
  3. all elements which have attributes
  4. no meaning at all