Атрибут placeholder

Описание

Подсказывающий текст. Похож на value, отличается тем, что это не значение, а всего лишь подсказка, которая отображается в input'e светлосерым текстом, а при вводе текста в input, исчезает.

Синтаксис

<input placeholder='текст'>

Пример

<!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='Введите Имя' name='info'>
</form>
<input type='submit' form='forma-h'>
</body>
</html>