Skip to content

Commit

Permalink
add more accessibility
Browse files Browse the repository at this point in the history
  • Loading branch information
beumsk committed Sep 20, 2024
1 parent 2d270d0 commit 3fe675e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion HTML.html
Original file line number Diff line number Diff line change
Expand Up @@ -519,10 +519,13 @@ <h1>H1 Title</h1><!-- use once per page, and be consistent with hierarchy of oth
<em>Emphasized content</em><!-- use to make text emphasized --><br>
<table><caption>Table description</caption></table><!-- use caption to describe a table --><br>
<img src="img/html.jpg" alt="image description"><!-- use alt to describe the image --><br>
<div role="navigation">Navigation</div><!-- role can be used to make any element understood as anything (button, navigation, search...) --><br>
<div role="navigation">Navigation</div><!-- role can be used to make any element understood as anything (button, navigation, search, banner, dialog, alert...) --><br>
<div tabindex="0">Focusable element</div><!-- force element to have focus with tab key; link and input have that by default; set to -1 to disable it --><br>
<p aria-label="description of the element">Described element</p><!-- use aria-label to give more description to an element --><br>
<p aria-hidden="true">Hidden element for screen readers</p><!-- tells screen readers to ignore this element --><br>
<h2 id="some-heading">Some heading</h2>
<section aria-labelledby="some-heading"></section><!-- tells screen readers the section is described by h2 label --><br>
<abbr title="World Wide Web">WWW</abbr><br><!-- tells extra info on hover; not all screen readers read it, nor touch screen users -->
<!--// ACCESSIBILITY -->


Expand Down

0 comments on commit 3fe675e

Please sign in to comment.