Section 4.5. Here s the HTML that you give to the browser...


4.5. Here's the HTML that you give to the browser...

When you're creating a web page, you write HTML to represent the different parts of your page. Then you give that HTML to the browser, and the browser figures out how to represent that HTML on the screen. But if you want to start changing your web page using JavaScript, you need to know exactly how the browser sees your HTML.

First, let's take a look at a simple HTML document:

     <html>      <head>       <title>Webville Tree Farm</title>      </head>      <body>     <h1>Webville Tree Farm</h1>     <p>Welcome to the Webville Tree Farm. We're still learning       about CSS, so pardon our plain site. We just bought       <a href="http://www.headfirstlabs.com/books/hfhtml/">Head       First HTML with CSS & XHTML</a>, though, so expect       great things soon.</p>     <p>You can visit us at the corner of Binary Blvd. and       DOM Drive. Come check us out today!</p>    </body>   </html> 

OK, this is HTML 101. So what in the world does any of this have to do with trees?




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