Web.QHMIT
.com
Toggle navigation
☰
Home
HTML
CSS
Scripting
Database
Run
<!DOCTYPE html> <title>My Example</title> <style> .myForm { font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif; font-size: 0.8em; padding: 1em; border: 1px solid #ccc; border-radius: 3px; } .myForm * { box-sizing: border-box; } .myForm label { padding: 0; font-weight: bold; } .myForm input { border: 1px solid #ccc; border-radius: 3px; font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif; font-size: 0.9em; padding: 0.5em; } .myForm input[type="email"], .myForm input[type="password"] { width: 12em; } .myForm button { padding: 0.7em; border-radius: 0.5em; background: #eee; border: none; font-weight: bold; } .myForm button:hover { background: #ccc; cursor: pointer; } </style> <form class="myForm" method="get" action="/html/codes/html_form_handler.cfm"> <p> <label>Email <input type="email" name="user_email" required> </label> <label>Password <input type="password" name="user_pwd" required> </label> <button>Log In</button> </p> <p> <label> <input type="checkbox"> Remember me </label> </p> </form> <hr> <p>More info: <a href="/html/tags/html_form_tag.cfm"><code>form</code></a>, <a href="/html/tutorial/html_forms.cfm">HTML Form Tutorial</a>, <a href="/html/codes/html_form_code.cfm">HTML Form Code</a>.</p>
Preview