Атрибут size
Описание
Задает ширину поля.
Синтаксис
<input size='число'>
Пример
<!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='Введите Имя' size='5' name='info'>
</form>
<input type='submit' form='forma-h'>
</body>
</html>
Читайте также
Тег <tbody>. Атрибут char
Выравнивание контента ячеек относительно заданного символа. Работает только с <span class=...
Тег <area>. Атрибут href
Задает адрес, по которому он должен перейти.<br>По умолчанию новый документ будет загружать...
Тег <img>. Атрибут align
Определяет, как положение задать изображению относительно текста или всего контента.
Тег <tfoot>. Атрибут valign
Выравнивание содержимого ячеек по вертикали.
Тег <button>. Атрибут formenctype
Определяет способ кодирования файла.