-
Notifications
You must be signed in to change notification settings - Fork 636
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Добавляет плейсхолдер
emphasis
(#4606)
- Loading branch information
1 parent
bf55dce
commit f6cb01a
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: "`emphasis`" | ||
description: "Роль для смыслового акцента на слове или фразе." | ||
authors: | ||
- doka-dog | ||
related: | ||
- a11y/aria-roles | ||
- html/em | ||
- html/strong | ||
tags: | ||
- doka | ||
- placeholder | ||
--- | ||
|
||
## Кратко | ||
|
||
[Роль структуры документа](/a11y/aria-roles/#roli-struktury-dokumenta) из [WAI-ARIA](/a11y/aria-intro/#specifikaciya) для смыслового акцента на слове или фразе. | ||
|
||
Эквивалент роли `emphasis` в HTML — [`<em>`](/html/em/). | ||
|
||
## Как пишется | ||
|
||
Задайте тегу `role="emphasis"`. Для этого больше всего подходит [`<span>`](/html/span/). Хотя роль `emphasis` пока не встроена в тег `<em>` по умолчанию, всё равно лучше использовать возможности HTML. | ||
|
||
Элементам с ролью `emphasis` можно задавать все [глобальные ARIA-атрибуты](/a11y/aria-attrs/#globalnye-atributy), кроме [`aria-label`](/a11y/aria-label/) и [`aria-labelledby`](/a11y/aria-labelledby/). |