Skip to content

Instantly share code, notes, and snippets.

@flutesa
Created April 28, 2014 17:25
Show Gist options
  • Save flutesa/11378533 to your computer and use it in GitHub Desktop.
Save flutesa/11378533 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<title>Испытание: формы — вспомнить всё</title>
<meta charset="utf-8">
</head>
<body>
<form action="/echo" method="post">
<label for="name-field">Имя</label>
<input type="text" id="name-field" name="name">
<div class="half-width">
<label for="date-field">Дата рождения</label>
<input type="text" id="date-field" name="date" class="date">
</div>
<div class="half-width">
<label>Цвет</label>
<select name="color">
<option>Рыжий</option>
</select>
</div>
<input type="checkbox" id="glad-field">
<label for="glad-field" style="display: inline-block;">Разрешать гладить</label>
<label for="secret-field" style="margin-top:1px">Секретное блюдо</label>
<input type="password" id="secret-field" name="secret" >
<div class="buttons">
<input type="submit" value="Сохранить">
</div>
</form>
</body>
</html>
@defance
Copy link

defance commented May 15, 2014

Попробуйте так:

<label for="glad-field">
    <input type="checkbox" id="glad-field"> Разрешать гладить
</label>

В описании задания сказано про то, что подписи обычно отдельно от полей ввода, но конкретно в данном случае полн ввода будет в подписи.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment