Section 4.17. Exercise Solutions


4.17. Exercise Solutions

4.17.1. Tree Magnets Solutions

Below is how a web browser would view a simple HTML page. We've added magnets to each part of the tree. See how your answers compared with ours.

"Head First HTML with CSS & XHTML"

"Welcome to the Webville Tree Farm. We're still learning about CSS, so pardon out plain site. We just bought "

a

", though, so expect great things soon."

"Webville Tree Farm"

p

"You can visit us at the corner of Binary Blvd. and DOM Drive. Come check us out today!"

h1

p

body

Where are the rest of the answers? We'll leave those up to you. You know your stuff... we believe in you!

 Leaf nodes don't have any children. leaf childAll leaf nodes are also child nodes. "Webville Tree Farm" nodeEvery single piece of HTML is a node... we didn't put node magnets on every piece of HTML, just to keep things clear, but you get the idea. parentIn a lot of cases, a node is both a parent element and a child element. node title child head branchBranches are just groups of nodes... usually at least three or four. node parent root elementRemember, a document has only a single root element, at the "root" of the tree. node html parent parent parent node node leaf leaf child child child branch branch branch root element 




Head Rush Ajax
Head Rush Ajax (Head First)
ISBN: 0596102259
EAN: 2147483647
Year: 2004
Pages: 241

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net