freeCodeCamp/guide/russian/certifications/responsive-web-design/applied-accessibility/use-tabindex-to-add-keyboar.../index.md

20 lines
901 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
title: Use tabindex to Add Keyboard Focus to an Element
localeTitle: Использование tabindex для добавления фокуса клавиатуры к элементу
---
## Использование tabindex для добавления фокуса клавиатуры к элементу
Следуя инструкциям:
Добавьте атрибут tabindex к тегу p и установите его значение «0».
строка 16 \`\` \`CSS
Инструкции: заполните всю вашу информацию и нажмите « **Отправить».**
```
becomes:
```css
<p tabindex="0">Instructions: Fill in ALL your information then click <b>Submit</b></p>
```
Таким образом, он будет получать фокус клавиатуры, когда пользователь наберет страницу.