-
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.
Добавляет плейсхолдер
superscript
(#4613)
- Loading branch information
1 parent
3a9b95d
commit 88b2f91
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: "`superscript`" | ||
description: "Роль для надстрочного текста." | ||
authors: | ||
- doka-dog | ||
related: | ||
- a11y/aria-roles | ||
- html/sub | ||
- html/sup | ||
tags: | ||
- doka | ||
- placeholder | ||
--- | ||
|
||
## Кратко | ||
|
||
[Роль структуры документа](/a11y/aria-roles/#roli-struktury-dokumenta) из [WAI-ARIA](/a11y/aria-intro/#specifikaciya) для надстрочного текста. Например, как в математических формулах. | ||
|
||
Роль `superscript` есть у [`<sup>`](/html/sup/) по умолчанию. | ||
|
||
## Как пишется | ||
|
||
Задайте тегу `role="superscript"`. Для этого больше всего подходит [`<span>`](/html/span/). В большинстве случаев лучше использовать тег `<sup>`. | ||
|
||
Элементам с ролью `superscript` можно задавать все [глобальные ARIA-атрибуты](/a11y/aria-attrs/#globalnye-atributy), кроме [`aria-label`](/a11y/aria-label/) и [`aria-labelledby`](/a11y/aria-labelledby/). |