forked from paulproteus/python-scraping-code-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinvalid.xhtml
More file actions
28 lines (25 loc) · 1.12 KB
/
invalid.xhtml
File metadata and controls
28 lines (25 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<title>Does this page use valid XHTML?</title>
</head>
<body>
<p><img src="questionmark.gif"/></p>
<h1>Does this page use valid XHTML?</h1>
<p>This website is very simple, and probably looks ok in your web browser, but
it contains invalid HTML. This page might look ok in your browser, but it might
choke on a browser that is less tolerant of coding mistakes. Can you find the
invalid HTML on this page? Try this:</p>
<ol>
<li>Look at the XHTML source. See if you can identify the invalid XHTML
before running it through the W3C Validator. <strong>Hint: There are 2
examples of invalid XHTML on this page.</strong></li>
<li>Run this page through the HTML Validator. Did you find the same mistakes
that the Validator found? </li>
<li>Correct the mistakes found by the Validator, save the file, and run it
through the Validator again. </li>
<li>Repeat steps 2 and 3 until the page validates. </li>
</body>
</html>