3D Game Programming

(C. Jardin) #1
This is the kind of dumb part. The web page is usually pretty small and
uninteresting. Web pages often look pretty and do lots of amazing things, but
by themselves they don’t look pretty. A web page by itself can’t do lots of
amazing things. For anything fun to happen, the web page needs to tell the
browser to make lots and lots of other requests.

We saw HTML web pages in Chapter 9, What's All That Other Code?, on page
85. They have funny angle brackets that are the markup important to
browsers:

<body>
<h1>Hello!</h1>
<p>
You can make<b>bold</b>words,
<i>italic</i>words,
even<u>underlined</u>words.
</p>
<p>
You can link to
<ahref="http://gamingJS.com">other pages</a>.
You can also add images from web servers:
<imgsrc="/images/purple_fruit_monster.png">
</p>
</body>

Chapter 21. Getting Code on the Web • 210


Prepared exclusively for Michael Powell report erratum • discuss

Free download pdf