Атрибут required
Описание
Устанавливает поле обязательным к заполнению.
Синтаксис
<input required>
Пример
<!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 id='forma-h' action='/html/result-send' method='get'>
<input type='text' placeholder='Введите Имя' required name='info'>
</form>
<input type='submit' form='forma-h'>
</body>
</html>
Читайте также
Тег <blockquote>. Атрибут cite
Указывает адрес источника цитаты. Предназначен для поисковых роботов и на сайте не отображается.
Тег <output>. Атрибут for
Определяет ID для связывания с output.
Тег <img>. Атрибут usemap
Указывает путь на элемент <span class='samp'>map</span>, который долже...
Тег <td>. Атрибут abbr
Краткое описание содержимого ячейки.
Тег <form>. Атрибут accept-charset
Определяет кодировку, в которой сервер принимает и обрабатывает данные формы.