a A documents DOM tree represents all of the nodes in a document as well as

A a documents dom tree represents all of the nodes in

This preview shows page 7 - 9 out of 10 pages.

a) A document’s DOM tree represents all of the nodes in a document, as well as their relationships to each other. b) Every XHTML element in a page is represented by a DOM tree. c) A text node cannot have child nodes. d) The document node in a DOM tree cannot have child nodes. e) The createElement method creates a new node and inserts it into the document. f) The insertBefore method is called on the document object, taking a new node and an existing one to insert the new one before.
Background image
Question 4: PHP (10 marks) 1.With PHP you can: 2.What will be the output of the following PHP code? <?php $states = array("Canada" => array( "population" => "35,000,000", "capital" => "Ottawa"), "France" => array( "population" => "64,600,000", "capital" => "Paris") "Germany" => array( "population" => "82,600,000", "capital" => "Berlin") ); echo "population=" . $states["France"]["population"] . " capital=" . $states["Germany"]["capital"]; ?> 3.What will be the output of the following PHP code? <?php $abc = 100; echo 'Value of abc = $abc'; ?>
Background image
Image of page 9

You've reached the end of your free preview.

Want to read all 10 pages?

  • Fall '09
  • KUNZ
  • Midterm/ThomasKunz, Document Object Model, Cascading Style Sheets, input type, following PHP code

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture