-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHTML LearningModule2Example.html
More file actions
52 lines (47 loc) · 2.31 KB
/
HTML LearningModule2Example.html
File metadata and controls
52 lines (47 loc) · 2.31 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Introduction to semantic elements</title>
</head>
<body>
<header>
<h2>Using the Markup Validator.</h2>
</header>
<nav>
<!--You will learn about <a> tag later in this chapter-->
<a href="">What is the Markup Validator and what does it do?</a><br />
<a href="">Why validate?</a><br />
<a href="">How do I use the Markup validator?</a><br />
<a href="">Many error messages? Don't panic.</a><br />
</nav>
<section>
<h3>What is the Markup Validator and what does it do?</h3>
<p> The Markup Validator is a free tool and service that
<a href="https://validator.w3.org/docs/help.html#validation_basics">validates markup</a>: in other words, it checks the syntax of Web documents, written in formats such as HTML. </p>
</section>
<section>
<h3>Why validate?</h3>
<p> One of the important maxims of computer programming is: "Be conservative in what you produce; be liberal in what you accept."
Browsers follow the second half of this maxim by accepting Web pages and trying to display them even if they're not legal HTML. The problem is that different browsers (or even different versions of the same browser) will make different guesses about the same illegal construct...
</p>
</section>
<article>
<h3>How do I use the Markup validator?</h3>
<p>Most probably, you will want to use the online Markup Validation service. The simple way to use this service to validate a Web page is to paste its address into the
<a href="https://validator.w3.org/#uri">text area</a>
on the
<a href="https://validator.w3.org/">validator's home page</a>
,and press the "Check" button.</p>
</article>
<aside>
<h3>Many error messages? Don't panic.</h3>
<p> Don't panic. Did The Validator complain about your DOCTYPE declaration (or lack thereof)? Make sure your document has a syntactically correct DOCTYPE declaration, as described in the section on DOCTYPE, and make sure it correctly identifies the type of HTML you're using. Then run it through The Validator again; if you're lucky, you should get a lot fewer errors.
If this doesn't help, then you may be experiencing a cascade failure ... </p>
</aside>
<footer>
<p>Written by: W3C</p>
<p>For more information, please visit <a href="https://validator.w3.org/docs/help.html">this page</a>.</p>
</footer>
</body>
</html>