Атрибут for
Описание
Определяет ID для связывания с output.
Синтаксис
<output for='ID'>...</output>
Пример
<!DOCTYPE html>
<html lang='ru'>
<head>
<meta charset='UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<title>Document</title>
</head>
<body>
<form oninput = 'three.value = one.valueAsNumber / two.valueAsNumber'>
<input type = 'number' id = 'one'> / <input type = 'number' id = 'two'> = <output name = 'three' for = 'one two'> </output>
</form>
</body>
</html>
Читайте также
Тег <video>. Атрибут width
Задает ширину видеоролика.
Тег <link>. Атрибут charset
Кодировка документа.
Тег <body>. Атрибут topmargin
Определяет отступ от верхнего края окна браузера до контента веб-страницы.<br>По умолчанию ...
Тег <td>. Атрибут bordercolor
Указывает цвет рамки.
Тег <audio>. Атрибут src
Указывается путь на аудио - файл.