Skip to content

Commit

Permalink
Добавляет плейсхолдер paragraph (#4608)
Browse files Browse the repository at this point in the history
  • Loading branch information
TatianaFokina authored Jul 31, 2023
1 parent 17362fe commit 94c7bbc
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions a11y/role-paragraph/index.md
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/).

0 comments on commit 94c7bbc

Please sign in to comment.