mirror of
				https://github.com/twbs/bootstrap.git
				synced 2025-10-31 00:04:27 -04:00 
			
		
		
		
	Expand/clarify advice about skip links
This commit is contained in:
		
							parent
							
								
									d5647e1f62
								
							
						
					
					
						commit
						2d41894ce5
					
				| @ -3,12 +3,13 @@ | |||||||
|   <p class="lead">Bootstrap follows common web standards and—with minimal extra effort—can be used to create sites that are accessible to those using <abbr title="Assistive Technology" class="initialism">AT</abbr>.</p> |   <p class="lead">Bootstrap follows common web standards and—with minimal extra effort—can be used to create sites that are accessible to those using <abbr title="Assistive Technology" class="initialism">AT</abbr>.</p> | ||||||
| 
 | 
 | ||||||
|   <h3>Skip navigation</h3> |   <h3>Skip navigation</h3> | ||||||
|   <p>If your navigation contains many links and comes before the main content in the DOM, add a <code>Skip to main content</code> link immediately after your opening <code><body></code> tag. <a href="http://a11yproject.com/posts/skip-nav-links/">(read why)</a></p> |   <p>If your navigation contains many links and comes before the main content in the DOM, add a <code>Skip to main content</code> link before the navigation <a href="http://a11yproject.com/posts/skip-nav-links/">(read why)</a>. Using the <code>.sr-only</code> class will visually hide the skip link, and the <code>.sr-only-focusable</code> class will ensure that the link becomes visible once focused (for sighted keyboard users).</p> | ||||||
| {% highlight html %} | {% highlight html %} | ||||||
| <body> | <body> | ||||||
|   <a href="#content" class="sr-only sr-only-focusable">Skip to main content</a> |   <a href="#content" class="sr-only sr-only-focusable">Skip to main content</a> | ||||||
|  |   ... | ||||||
|   <div class="container" id="content"> |   <div class="container" id="content"> | ||||||
|     The main page content. |     <!-- The main page content --> | ||||||
|   </div> |   </div> | ||||||
| </body> | </body> | ||||||
| {% endhighlight %} | {% endhighlight %} | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user