Skip to content

Commit 30939ff

Browse files
committed
Remove unnecessary classes from inline code tags
1 parent 2b4cbd4 commit 30939ff

File tree

231 files changed

+1430
-1430
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

231 files changed

+1430
-1430
lines changed

techniques/aria/ARIA1.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<link rel="stylesheet" type="text/css" href="../../css/editors.css" class="remove">
55
</head>
66
<body>
7-
<h1>Using the <code class="language-html">aria-describedby</code> property to provide a descriptive label for user interface controls</h1>
7+
<h1>Using the <code>aria-describedby</code> property to provide a descriptive label for user interface controls</h1>
88
<section class="meta">
99
<p class="id">ID: ARIA1</p>
1010
<p class="technology">Technology: aria</p>
@@ -16,18 +16,18 @@ <h2>When to Use</h2>
1616
</section>
1717
<section id="description">
1818
<h2>Description</h2>
19-
<p>The purpose of this technique is to demonstrate how to use the WAI-ARIA <a href="https://www.w3.org/TR/wai-aria-1.2/#aria-describedby"><code class="language-html">aria-describedby</code></a> property to provide programmatically determined, descriptive information about a user interface element. The <code class="language-html">aria-describedby</code> property may be used to attach descriptive information to one or more elements through the use of an <code class="language-html">id</code> reference list. The <code class="language-html">id</code> reference list contains one or more unique element <code class="language-html">id</code>s.</p>
19+
<p>The purpose of this technique is to demonstrate how to use the WAI-ARIA <a href="https://www.w3.org/TR/wai-aria-1.2/#aria-describedby"><code>aria-describedby</code></a> property to provide programmatically determined, descriptive information about a user interface element. The <code>aria-describedby</code> property may be used to attach descriptive information to one or more elements through the use of an <code>id</code> reference list. The <code>id</code> reference list contains one or more unique element <code>id</code>s.</p>
2020
<p>Refer to <a href="https://www.w3.org/TR/html-aria/">ARIA in HTML</a> for information on how to provide WAI-ARIA States and Properties with HTML. WAI-ARIA States and Properties are compatible with other languages as well; refer to documentation in those languages.</p>
2121
<div class="note">
22-
<p>The <code class="language-html">aria-describedby</code> property is not designed to reference descriptions on an external resource - since it is an <code class="language-html">id</code>, it must reference an element in the same <abbr title="Document Object Model">DOM</abbr> document.</p>
22+
<p>The <code>aria-describedby</code> property is not designed to reference descriptions on an external resource - since it is an <code>id</code>, it must reference an element in the same <abbr title="Document Object Model">DOM</abbr> document.</p>
2323
</div>
2424
</section>
2525
<section id="examples">
2626
<h2>Examples</h2>
2727
<section class="example">
28-
<h3>Using <code class="language-html">aria-describedby</code> to associate instructions with form fields</h3>
28+
<h3>Using <code>aria-describedby</code> to associate instructions with form fields</h3>
2929

30-
<p>Sample form field using <code class="language-html">aria-describedby</code> to associate instructions with form fields while there is a form label.</p>
30+
<p>Sample form field using <code>aria-describedby</code> to associate instructions with form fields while there is a form label.</p>
3131
<pre xml:space="preserve"><code class="language-html">&lt;form&gt;
3232
&lt;label for="fname"&gt;First name&lt;/label&gt;
3333
&lt;input aria-describedby="int2" autocomplete="given-name" id="fname" type="text"&gt;
@@ -36,7 +36,7 @@ <h3>Using <code class="language-html">aria-describedby</code> to associate instr
3636

3737
</section>
3838
<section class="example">
39-
<h3>Using <code class="language-html">aria-describedby</code> property to provide more detailed information about the button</h3>
39+
<h3>Using <code>aria-describedby</code> property to provide more detailed information about the button</h3>
4040

4141
<pre xml:space="preserve"><code class="language-html">&lt;div&gt;
4242
&lt;span id="fontDesc"&gt;Select the font faces and sizes to be used on this page&lt;/span&gt;
@@ -59,7 +59,7 @@ <h2>Tests</h2>
5959
<section class="procedure">
6060
<h3>Procedure</h3>
6161
<ol>
62-
<li>Check that there is a user interface control having an <code class="language-html">aria-describedby</code> attribute that references one or more elements via unique <code class="language-html">id</code>.</li>
62+
<li>Check that there is a user interface control having an <code>aria-describedby</code> attribute that references one or more elements via unique <code>id</code>.</li>
6363
<li>Check that the referenced element or elements provide additional information about the user interface control.</li>
6464
</ol>
6565
</section>
@@ -93,7 +93,7 @@ <h2>Resources</h2>
9393
<a href="https://www.w3.org/TR/accname/">Accessible Name and Description Computation</a>.
9494
</li>
9595
<li>
96-
<a href="https://developer.mozilla.org/en-US/docs/web/accessibility/aria/attributes/aria-describedby"><code class="language-html">aria-describedby</code> attribute (<abbr title="Mozilla Developer Network">MDN</abbr>)</a>.
96+
<a href="https://developer.mozilla.org/en-US/docs/web/accessibility/aria/attributes/aria-describedby"><code>aria-describedby</code> attribute (<abbr title="Mozilla Developer Network">MDN</abbr>)</a>.
9797
</li>
9898
<li>
9999
<a href="https://www.w3.org/TR/aria-in-html/">Using WAI-ARIA in HTML</a>.

techniques/aria/ARIA10.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<!DOCTYPE html><html lang="en"><head><title>Using aria-labelledby to provide a text alternative for non-text content</title><link rel="stylesheet" type="text/css" href="../../css/editors.css" class="remove"></head><body><h1>Using aria-labelledby to provide a text alternative for non-text content</h1><section class="meta"><p class="id">ID: ARIA10</p><p class="technology">Technology: aria</p><p class="type">Type: Technique</p></section><section id="applicability"><h2>When to Use</h2>
22
<p>This technique applies to HTML with <a href="https://www.w3.org/TR/wai-aria/">Accessible Rich Internet Applications (WAI-ARIA)</a>.</p>
33
</section><section id="description"><h2>Description</h2>
4-
<p>The purpose of this technique is to provide a short description for an element that can be read by assistive technologies by using the <code class="language-html">aria-labelledby</code> attribute. The <code class="language-html">aria-labelledby</code> attribute associates an element with text that is visible elsewhere on the page by using an <code class="language-html">id</code> reference value that matches the <code class="language-html">id</code> attribute of the labeling element. Assistive technology such as screen readers use the text of the element identified by the value of the <code class="language-html">aria-labelledby</code> attribute as the text alternative for the element with the attribute.</p>
4+
<p>The purpose of this technique is to provide a short description for an element that can be read by assistive technologies by using the <code>aria-labelledby</code> attribute. The <code>aria-labelledby</code> attribute associates an element with text that is visible elsewhere on the page by using an <code>id</code> reference value that matches the <code>id</code> attribute of the labeling element. Assistive technology such as screen readers use the text of the element identified by the value of the <code>aria-labelledby</code> attribute as the text alternative for the element with the attribute.</p>
55
</section><section id="examples"><h2>Examples</h2>
66
<section class="example">
77
<h3>Providing a short description for a complex graphic</h3>
88

9-
<p>This example shows how to use the <code class="language-html">aria-labelledby</code> attribute to provide a short text description for a read-only complex graphic of an star rating pattern; the graphic is composed of several image elements. The text alternative for the graphic is the label, visible on the page beneath the star pattern.</p>
9+
<p>This example shows how to use the <code>aria-labelledby</code> attribute to provide a short text description for a read-only complex graphic of an star rating pattern; the graphic is composed of several image elements. The text alternative for the graphic is the label, visible on the page beneath the star pattern.</p>
1010
<pre xml:space="preserve"><code class="language-html">&lt;div role="img" aria-labelledby="star-id"&gt;
1111
&lt;img src="fullstar.png" alt=""&gt;
1212
&lt;img src="fullstar.png" alt=""&gt;
@@ -22,9 +22,9 @@ <h3>Providing a short description for a complex graphic</h3>
2222
</section><section id="tests"><h2>Tests</h2>
2323
<section class="procedure"><h3>Procedure</h3>
2424
<ol>
25-
<li>Examine each element where the <code class="language-html">aria-labelledby</code> attribute is present and the element does not support the <code class="language-html">alt</code> attribute.</li>
26-
<li>Check whether the value of the <code class="language-html">aria-labelledby</code> attribute is the <code class="language-html">id</code> of an element on the web page.</li>
27-
<li>Determine that the text of the element identified by the <code class="language-html">aria-labelledby</code> attribute accurately labels the element, provides a description of its purpose, or provides equivalent information.</li>
25+
<li>Examine each element where the <code>aria-labelledby</code> attribute is present and the element does not support the <code>alt</code> attribute.</li>
26+
<li>Check whether the value of the <code>aria-labelledby</code> attribute is the <code>id</code> of an element on the web page.</li>
27+
<li>Determine that the text of the element identified by the <code>aria-labelledby</code> attribute accurately labels the element, provides a description of its purpose, or provides equivalent information.</li>
2828
</ol>
2929
</section>
3030
<section class="results"><h3>Expected Results</h3>

techniques/aria/ARIA11.html

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ <h1>Using ARIA landmarks to identify regions of a page</h1>
2222
</p>
2323
<p>Landmarks are inserted into the page using the role attribute on an element that marks the section. The value of the attribute designates the type of landmark. These role values are listed below. For HTML mappings of landmark roles, refer to the <cite>Rules of ARIA attribute usage by HTML element</cite> table in the <a href="https://www.w3.org/TR/html-aria/">ARIA In HTML recommendation</a>.</p>
2424
<ul>
25-
<li><code class="language-html">banner</code>: A region that contains mostly site-oriented content, such as the logo or a site-specific search tool.</li>
26-
<li><code class="language-html">navigation</code>: A region that contains navigation links to other pages or different parts of the same page.</li>
27-
<li><code class="language-html">main</code>: A region that contains a page's main content.</li>
28-
<li><code class="language-html">region</code>: A region that contains a perceivable section of the page containing content that is sufficiently important for users to be able to navigate to the section. A <code class="language-html">region</code> landmark isn't exposed as a landmark region unless it has an accessible name, often provided using <code class="language-html">aria-label</code> or <code class="language-html">aria-labelledby</code>.</li>
29-
<li><code class="language-html">form</code>: A region of the document that represents a collection of form-associated elements, some of which can represent editable values that can be submitted to a server for processing. A <code class="language-html">form</code> landmark isn't exposed as a landmark region unless it has an accessible name.</li></li>
30-
<li><code class="language-html">search</code>: A region of the page containing search functionality.</li>
31-
<li><code class="language-html">complementary</code>: Any section of the document that supports the main content, yet is separate and meaningful on its own.</li>
32-
<li><code class="language-html">contentinfo</code>: A region that contains information about the parent document such as copyrights and links to privacy statements.</li>
25+
<li><code>banner</code>: A region that contains mostly site-oriented content, such as the logo or a site-specific search tool.</li>
26+
<li><code>navigation</code>: A region that contains navigation links to other pages or different parts of the same page.</li>
27+
<li><code>main</code>: A region that contains a page's main content.</li>
28+
<li><code>region</code>: A region that contains a perceivable section of the page containing content that is sufficiently important for users to be able to navigate to the section. A <code>region</code> landmark isn't exposed as a landmark region unless it has an accessible name, often provided using <code>aria-label</code> or <code>aria-labelledby</code>.</li>
29+
<li><code>form</code>: A region of the document that represents a collection of form-associated elements, some of which can represent editable values that can be submitted to a server for processing. A <code>form</code> landmark isn't exposed as a landmark region unless it has an accessible name.</li>
30+
<li><code>search</code>: A region of the page containing search functionality.</li>
31+
<li><code>complementary</code>: Any section of the document that supports the main content, yet is separate and meaningful on its own.</li>
32+
<li><code>contentinfo</code>: A region that contains information about the parent document such as copyrights and links to privacy statements.</li>
3333
</ul>
3434

3535
<p>There are cases when a particular landmark role could be used more than once on a page, such as on primary and secondary blocks of navigation. In these cases, identical roles should be named using a valid technique for labeling regions.</p>
@@ -56,7 +56,7 @@ <h3>Simple landmarks</h3>
5656
<section class="example" id="multiple-landmarks-aria-labelledby">
5757
<h3>Multiple landmarks of the same type and aria-labelledby</h3>
5858

59-
<p>The following example shows a best practice of how landmarks might be added to an HTML document in situations where there are two or more of the same type of landmark on the same page. For instance, if a navigation role is used multiple times on a page, each instance may have a unique label specified using <code class="language-html">aria-labelledby</code>:</p>
59+
<p>The following example shows a best practice of how landmarks might be added to an HTML document in situations where there are two or more of the same type of landmark on the same page. For instance, if a navigation role is used multiple times on a page, each instance may have a unique label specified using <code>aria-labelledby</code>:</p>
6060

6161
<pre xml:space="preserve"><code class="language-html">&lt;div aria-labelledby="site-nav-heading" role="navigation"&gt;
6262
&lt;h2 id="site-nav-heading"&gt;Site&lt;/h2&gt;
@@ -97,7 +97,7 @@ <h3>Multiple landmarks of the same type and aria-label</h3>
9797
</section>
9898
<section class="example" id="search-form">
9999
<h3>Search form</h3>
100-
<p>The following example shows a search form with a "search" landmark. The <code class="language-html">search</code> role typically goes on the <code class="language-html">form</code> element or a <code class="language-html">div</code> surrounding the form:</p>
100+
<p>The following example shows a search form with a "search" landmark. The <code>search</code> role typically goes on the <code>form</code> element or a <code>div</code> surrounding the form:</p>
101101
<pre xml:space="preserve"><code class="language-html">&lt;form role="search"&gt;
102102
&lt;label for="product-search" id="search-label"&gt;Search&lt;/label&gt;
103103
&lt;input id="product-search" placeholder="title, author, or ISBN" type="text"&gt;
@@ -110,7 +110,7 @@ <h3>Search form</h3>
110110
<h3>Procedure</h3>
111111
<ol>
112112
<li>Examine each element with a <a href="https://www.w3.org/TR/wai-aria/#landmark_roles">landmark role</a>.</li>
113-
<li>Examine whether the correct element has been used to mark up content. For example: a <code class="language-html">navigation</code> role has been used to mark up a section with navigation links, or the <code class="language-html">main</code> role is used to contain the page's main content.</li>
113+
<li>Examine whether the correct element has been used to mark up content. For example: a <code>navigation</code> role has been used to mark up a section with navigation links, or the <code>main</code> role is used to contain the page's main content.</li>
114114
<li>If a landmark region needs to have an accessible name to be exposed as a landmark, check to see that there is an accessible name.</li>
115115
<li>If the same type of landmark appears multiple times on the page, check that each one is given a unique and meaningful accessible name.</li>
116116
</ol>

0 commit comments

Comments
 (0)