HTML and CSS Reference
In-Depth Information
Remember me on this computer</label></p>
<p><input name="stayloggedin" type="checkbox"
id="stayloggedin" value="remember" /></p>
<p class="submit">
<input type="submit" name="submit"
id="submit" value="Login" />
</p>
</form>
Of course, you can do both—include the input field directly inside the label element and use a for attribute:
<form action="login.php" method="post">
<p><label for="log">Username:
<input type="text" name="log" id="log" size="18" />
</label></p>
<p><label for="pwd">Password:
<input type="password" name="pwd" id="pwd" size="18" />
</label></p>
<p><label for="stayloggedin ">
<input name="stayloggedin" type="checkbox"
id="stayloggedin" value="remember" />
Remember me on this computer</label>
</p>
<p class="submit">
<input type="submit" name="submit" id="submit" value="Login" />
</p>
</form>
I'm not sure this is really necessary, but it doesn't hurt, and it might help some tool somewhere.
Search WWH ::




Custom Search