Sams Teach Yourself HTML, CSS & JavaScript Web Publishing in One Hour a Day

(singke) #1
ptg16476052

522 LESSON 18: Using jQuery


The second is the page containing the information about the countries. Here’s the source
for the second page, countri es.html, which contains information about the countries:
<!DOCTYPE html>
<html>
<head>
<title>South American Countries</title>
</head>
<body>
<div id="uruguay">
<h2>Uruguay</h2>

<p>Uruguay, officially the Oriental Republic of Uruguay, is a country located
in the southeastern part of South America. It is home to some 3.5 million people,
of whom 1.4 million live in the capital Montevideo and its metropolitan area. An
estimated 88% of the population are of European descent.</p>
<p>Uruguay's only land border is with Rio Grande do Sul, Brazil, to the north.
To the west lies the Uruguay River, to the southwest lies the estuary of Rio de
la Plata, with Argentina only a short commute across the banks of either of these
bodies of water, while to the southeast lies the southern part of the Atlantic
Ocean. Uruguay, with an area of approximately 176 thousand km2, is the second
smallest nation of South America in area after Suriname.</p>
</div>

<div id="paraguay">
<h2>Paraguay</h2>
<p>Paraguay, officially the Republic of Paraguay, is a landlocked country in
South America. It is bordered by Argentina to the south and southwest, Brazil to
the east and northeast, and Bolivia to the northwest. Paraguay lies on both banks
of the Paraguay River, which runs through the center of the country from north to
south. Because of its central location in South America, is sometimes referred to

FIGURE 18.16
A page that loads
data from an exter-
nal source using
AJAX.
Free download pdf