HTML and CSS Reference
In-Depth Information
two-page website, without enabling any of HTML5 's offline features.
Here are the two pages you'll use.
ch06/offline-example/offline-1-a.html
ch06/offline-example/offline-1-b.html
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>
Offline Web Applications 1
- Page A
</title>
<link rel="stylesheet"
href="offline-1.css">
</head>
<body>
<h1>Page A</h1>
<p>
<a href="offline-1-b.html">
Go to page B
</a>
</p>
</body>
</html>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>
Offline Web Applications 1
Page B
</title>
<link rel="stylesheet"
href="offline-1.css">
</head>
<body>
<h1>Page B</h1>
<p>
<a href="offline-1-a.html">
Go to page A
</a>
</p>
<img src="example.png"
alt="An example image">
</body>
</html>
First, start the local web server:
# python -m SimpleHTTPServer
Serving HTTP on 0.0.0.0 port 8000 ...
If you load the page in the browser,
the server records the following
requests:
"GET /offline-1-a.html HTTP/1.1" 200 -
"GET /offline-1.css HTTP/1.1" 200 -
The page itself is requested, as is any-
thing required to display that particu-
lar page (in this case the stylesheet),
but none of the links within the page
are loaded.
 
Search WWH ::




Custom Search