Advertisement
Guest User

Untitled

a guest
May 15th, 2021
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.23 KB | None | 0 0
  1. <html>
  2.     <body>
  3.         <section title="notebooks">List of your notebooks.</section>
  4.         <section title="notes">List of your notes.</section>
  5.  
  6.         <!-- div below will be read by it's aria-label and the "action" part will not be readed -->
  7.         <div aria-label="save note" role="button" style="padding: 1rem; margin 5rem; bacground: blue;">action</div>
  8.         <div aria-label="save note" role="button" style="padding: 1rem; margin 5rem; bacground: blue;">&times;</div>
  9.        
  10.         <input type="text" name="name" value="Note #1" title="enter note name">
  11.         <input type="text" name="name" value="Note #1" aria-label="enter note name">
  12.         <input type="text" name="name" value="Note #1" aria-labelledby="enter note name">
  13.        
  14.         <br/>
  15.  
  16.         <!-- These two aren't read -->
  17.         <button placeholder="close note">&times;</button>
  18.         <button title="close note">&times;</button>
  19.         <!-- Only this one will read out properly cuz we use aria-label for elements with no text -->
  20.         <button aria-label="close note">&times;</button>
  21.         <!-- we would label the button like this if it had some text in it -->
  22.         <button aria-labelledby="close note">&times;</button>
  23.     </body>
  24. </html>    
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement