forked from w3c/wcag-act
-
Notifications
You must be signed in to change notification settings - Fork 0
/
technique-H25-act.html
134 lines (119 loc) · 6.4 KB
/
technique-H25-act.html
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
<head>
<meta charset="UTF-8" />
<title>H25: Providing a title using the title element</title>
<link rel="stylesheet" type="text/css" href="https://www.w3.org/StyleSheets/TR/2016/base" />
<link rel="stylesheet" type="text/css" href="https://www.w3.org/WAI/WCAG21/Techniques/techniques.css" />
<link rel="stylesheet" type="text/css" href="https://www.w3.org/WAI/WCAG21/Techniques/slicenav.css" />
</head>
<body>
<nav>
<ul id="navigation">
<li><a href="https://www.w3.org/WAI/WCAG21/Techniques/#techniques" title="Table of Contents">Contents</a></li>
<li><a href="https://www.w3.org/WAI/WCAG21/Techniques/#introduction" title="Introduction to Techniques">Intro</a></li>
<li><a href="https://www.w3.org/WAI/WCAG21/Techniques/html/H24">Previous Technique: H24</a></li>
<li><a href="https://www.w3.org/WAI/WCAG21/Techniques/html/H28">Next Technique: H28</a></li>
</ul>
</nav>
<nav class="navtoc">
<p>On this page:</p>
<ul id="navbar">
<li><a href="#important-information">Important Information about Techniques</a></li>
<li><a href="#applicability">Applicability</a></li>
<li><a href="#description">Description</a></li>
<li><a href="#examples">Examples</a></li>
<li><a href="#resources">Related Resources</a></li>
<li><a href="#related">Related Techniques</a></li>
<li><a href="#act-rules">Related ACT Rules</a></li>
<li><a href="#tests">Tests</a></li>
</ul>
</nav>
<h1>Providing a title using the title element</h1>
<section id="important-information">
<h2>Important Information about Techniques and ACT Rules</h2>
<p>See <a href="https://www.w3.org/WAI/WCAG21/Understanding/understanding-techniques">Understanding Techniques for WCAG Success Criteria</a> and <a href="understanding-act-rules.html">Understanding ACT Rules for WCAG Success Criteria</a> for important information about the usage of these informative techniques and rules, and how
they relate to the normative WCAG 2.1 success criteria. The Applicability section
explains the scope of the technique, and the presence of techniques for a specific
technology does not imply that the technology can be used in all situations to create
content that meets WCAG 2.1.
</p>
</section>
<main>
<section id="applicability">
<h2>Applicability</h2>
<p>HTML and XHTML</p>
<p>This technique relates to <span><a href="https://www.w3.org/WAI/WCAG21/Understanding/page-titled">Success Criterion 2.4.2: Page Titled</a> (Sufficient as a way to meet <a href="../general/G88">G88: Providing descriptive titles for Web pages</a>)</span>.
</p>
</section>
<section id="description">
<h2>Description</h2>
<p>All HTML and XHTML documents, including those in individual frames in
a frameset, have a <code class="el">title</code> element in the <code class="el">head</code> section that
defines in a simple phrase the purpose of the document. This helps users to orient
themselves within the site quickly without having to search for orientation information
in the body of the page.
</p>
<p>Note that the (mandatory) <code class="el">title</code> element, which only appears once in a
document, is different from the <code class="att">title</code> attribute, which may be applied to
almost every HTML and XHTML element.
</p>
</section>
<section id="examples">
<h2>Examples</h2>
<section class="example" id="example-1">
<h3>Example 1</h3>
<p>This example defines a document's title.</p><pre xml:space="preserve"><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>The World Wide Web Consortium</title>
</head>
<body>
...
</body>
</html> </pre></section>
</section>
<section id="resources">
<h2>Resources</h2>
<p>Resources are for information purposes only, no endorsement implied.</p>
<ul>
<li>
<a href="https://www.w3.org/TR/html401/struct/global.html#h-7.4.2">HTML 4.01
TITLE element</a>
</li>
</ul>
</section>
<section id="related">
<h2>Related Techniques</h2>
<ul>
<li><a href="https://www.w3.org/WAI/WCAG21/Techniques/general/G88">G88: Providing descriptive titles for Web pages</a></li>
<li><a href="https://www.w3.org/WAI/WCAG21/Techniques/general/G127">G127: Identifying a Web page's relationship to a larger collection of Web pages</a></li>
</ul>
</section>
<section id="act-rules">
<h2>Related ACT Rules</h2>
<ul>
<li><a href="https://www.w3.org/WAI/standards-guidelines/act/rules/html-page-has-title-2779a5/">HTML page has title</a></li>
</ul>
</section>
<section id="tests">
<h2>Tests</h2>
<section class="procedure" id="procedure">
<h3>Procedure</h3>
<ol>
<li>Examine the source code of the HTML or XHTML document and check that a non-empty
<code class="el">title</code> element appears in the <code class="el">head</code> section.
</li>
<li>Check that the <code class="el">title</code> element describes the document.
</li>
</ol>
</section>
<section class="results" id="expected-results">
<h3>Expected Results</h3>
<ul>
<li>Checks 1 and 2 are true.</li>
</ul>
</section>
</section>
</main>
</body>
</html>