A responsive contact form with explicit labels, practical autocomplete attributes and clear focus treatment.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Contact Form</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<form class="ui-form" action="#" method="post"><label for="contact-name">Name</label><input id="contact-name" autocomplete="name"><label for="contact-email">Email</label><input id="contact-email" type="email" autocomplete="email"><label for="contact-message">Message</label><textarea id="contact-message" rows="4"></textarea><button type="submit">Send message</button></form>
</body>
</html>
Copy HTML + CSS Download ZIP
A responsive sign in form with explicit labels, practical autocomplete attributes and clear focus treatment.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Sign In Form</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<form class="ui-form" action="#" method="post"><label for="signin-email">Email</label><input id="signin-email" type="email" autocomplete="email"><label for="signin-password">Password</label><input id="signin-password" type="password" autocomplete="current-password"><button type="submit">Sign in</button></form>
</body>
</html>
Copy HTML + CSS Download ZIP
A responsive sign up form with explicit labels, practical autocomplete attributes and clear focus treatment.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Sign Up Form</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<form class="ui-form" action="#" method="post"><label for="signup-name">Name</label><input id="signup-name" autocomplete="name"><label for="signup-email">Email</label><input id="signup-email" type="email" autocomplete="email"><button type="submit">Create account</button></form>
</body>
</html>
Copy HTML + CSS Download ZIP
A responsive newsletter form with explicit labels, practical autocomplete attributes and clear focus treatment.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Newsletter Form</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<form class="ui-form" action="#" method="post"><label for="newsletter-email">Email address</label><div class="ui-form__row"><input id="newsletter-email" type="email" autocomplete="email"><button type="submit">Subscribe</button></div><p>Unsubscribe at any time.</p></form>
</body>
</html>
Copy HTML + CSS Download ZIP
A responsive search form with explicit labels, practical autocomplete attributes and clear focus treatment.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Search Form</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<form class="ui-form" action="#" method="post"><label for="site-search">Search resources</label><div class="ui-form__row"><input id="site-search" type="search"><button type="submit">Search</button></div></form>
</body>
</html>
Copy HTML + CSS Download ZIP
A responsive feedback form with explicit labels, practical autocomplete attributes and clear focus treatment.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Feedback Form</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<form class="ui-form" action="#" method="post"><fieldset><legend>Was this page useful?</legend><label><input type="radio" name="useful" value="yes"> Yes</label><label><input type="radio" name="useful" value="no"> No</label></fieldset><label for="feedback">Comments</label><textarea id="feedback" rows="3"></textarea><button type="submit">Send feedback</button></form>
</body>
</html>
Copy HTML + CSS Download ZIP
A responsive profile settings form with explicit labels, practical autocomplete attributes and clear focus treatment.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Profile Settings Form</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<form class="ui-form" action="#" method="post"><label for="display-name">Display name</label><input id="display-name" autocomplete="name" value="Alex Morgan"><label for="bio">Short bio</label><textarea id="bio" rows="3"></textarea><button type="submit">Save profile</button></form>
</body>
</html>
Copy HTML + CSS Download ZIP
A responsive address form with explicit labels, practical autocomplete attributes and clear focus treatment.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Address Form</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<form class="ui-form" action="#" method="post"><label for="street">Street address</label><input id="street" autocomplete="street-address"><div class="ui-form__row"><div><label for="city">City</label><input id="city" autocomplete="address-level2"></div><div><label for="postcode">Postcode</label><input id="postcode" autocomplete="postal-code"></div></div><button type="submit">Save address</button></form>
</body>
</html>
Copy HTML + CSS Download ZIP
A responsive password field with explicit labels, practical autocomplete attributes and clear focus treatment.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Password Field</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<form class="ui-form" action="#" method="post"><label for="new-password">Password</label><input id="new-password" type="password" autocomplete="new-password" aria-describedby="password-help"><p id="password-help">Use at least 12 characters.</p><button type="submit">Continue</button></form>
</body>
</html>
Copy HTML + CSS Download ZIP
A responsive form error summary with explicit labels, practical autocomplete attributes and clear focus treatment.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Form Error Summary</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<form class="ui-form" action="#" method="post"><div class="ui-form__error" role="alert"><h2>There is a problem</h2><a href="#summary-email">Enter a valid email address</a></div><label for="summary-email">Email</label><input id="summary-email" type="email" aria-invalid="true"><button type="submit">Submit</button></form>
</body>
</html>
Copy HTML + CSS Download ZIP