Атрибут name
Описание
Указывается имя формы.
Синтаксис
<form name='текст'>...</form>
Пример
<!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>
<script>
function f(){
alert('Привет, ' + document.forms['data-test'].inputik.value + '!')
}
</script>
<form name='data-test'>
<input type='text' name='inputik' placeholder='Имя'/>
<button type='button' onclick='f()'>Отправить</button>
</form>
</body>
</html>
Читайте также
Тег <table>. Атрибут cellspacing
Указывает расстояние между ячейками.
Тег <object>. Атрибут archive
Указыается путь к файлам, необходимым для работы объекта.
Тег <a>. Атрибут href
Задает адрес, по которому он должен перейти.<br>По умолчанию новый документ будет загружать...
Тег <time>. Атрибут datetime
Указывает дату и время редактирования.
Тег <tbody>. Атрибут align
Указывает, как выравнивать текст в строке.