-
Notifications
You must be signed in to change notification settings - Fork 631
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Добавляет плейсхолдер
paragraph
(#4608)
- Loading branch information
1 parent
17362fe
commit 94c7bbc
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
title: "`paragraph`" | ||
description: "Роль, которая есть у абзаца текста." | ||
authors: | ||
- doka-dog | ||
related: | ||
- a11y/aria-intro | ||
- a11y/aria-roles | ||
- html/p | ||
tags: | ||
- doka | ||
- placeholder | ||
--- | ||
|
||
## Кратко | ||
|
||
[Роль структуры документа](/a11y/aria-roles/#roli-struktury-dokumenta) из [WAI-ARIA](/a11y/aria-intro/#specifikaciya) для параграфа или абзаца текста. | ||
|
||
В HTML эта роль есть у [`<p>`](/html/p/) по умолчанию. | ||
|
||
## Как пишется | ||
|
||
Задайте тегу `role="paragraph"`, лучше всего [`<div>`](/html/div/) или [`<span>`](/html/span/). В большинстве случаев используйте тег `<p>`. | ||
|
||
Элементам с ролью `paragraph` можно задавать все [глобальные ARIA-атрибуты](/a11y/aria-attrs/#globalnye-atributy), кроме [`aria-label`](/a11y/aria-label/) и [`aria-labelledby`](/a11y/aria-labelledby/). |