<legend>
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
HTML-элемент <legend>
представляет собой заголовок содержания родительского элемента <fieldset>
.
Интерактивный пример
Категории контента | Нет |
---|---|
Допустимый контент | Фразовый контент. |
Пропуск тегов | Нет, открывающий и закрывающий теги обязательны. |
Допустимые родители | Является дочерним элементом тега <fieldset> |
Допустимые ARIA-роли | Нет |
DOM-интерфейс | HTMLLegendElement |
Атрибуты
Этот элемент включает только универсальные атрибуты.
Примеры
Смотрите <form>
для примеров использования элемента <legend>
.
Спецификации
Specification |
---|
HTML # the-legend-element |
Совместимость с браузерами
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
legend | ||||||||||||
align |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- Deprecated. Not for use in new websites.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Смотрите также
- Другие связанные элементы:
<form>
,<option>
,<label>
,<button>
,<select>
,<datalist>
,<optgroup>
,<fieldset>
,<textarea>
,<input>
,<output>
,<progress>
и<meter>
. - ARIA: Form role