Skip to content

Commit 51ccf42

Browse files
committed
Semantics slides.
1 parent 6f0ead6 commit 51ccf42

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

index.html

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,16 +349,38 @@ <h3>DEMO</h3>
349349
<section>
350350
<section>
351351
<h2>Semantics Revisited</h2>
352+
<p>Re-cap. We already know this stuff...</p>
352353
</section>
353354
<section>
354355
<h3>HTML Elements</h3>
356+
<ul>
357+
<li>&lt;div&gt; means <em>nothing</em>></li>
358+
<li>&lt;span&gt; means <em>nothing</em>></li>
359+
<li>&lt;button&gt; - press it, makes something <em>happen</em>.</li>
360+
<li>&lt;a href&gt; - hyperlinks direct you <em>elsewhere</em>.</li>
361+
<li>Button vs Link. We'll run into that a lot.</li>
362+
</ul>
355363
</section>
356364
<section>
357365
<h3>Human-readable semantics</h3>
366+
<p>Attributes which often contain rich semantics, but are really only useful to a human audience: developers!</p>
367+
<ul>
368+
<li>class attribute</li>
369+
<li>data-* attributes</li>
370+
<li>ng-* attributes</li>
371+
<li>Others?</li>
372+
</ul>
373+
<p>None are understood by screen-readers.</p>
358374
</section>
359375
<section>
360376
<h3>Semantics for screen-readers</h3>
361-
<p>Machine-readable semantics</p>
377+
<p>We want machine-readable semantics</p>
378+
<ul>
379+
<li>HTML Elements: headings, tables, forms, ...</li>
380+
<li>HTML attributes: disabled, required, checked, ...</li>
381+
<li>aria-* attributes</li>
382+
<li>SVG, MathML.</li>
383+
</ul>
362384
</section>
363385
</section>
364386

0 commit comments

Comments
 (0)