A login form with submit button : form « Form « HTML / CSS






A login form with submit button

   

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

  <title>A login form with submit button</title>
  
</head>

<body>

  <form method="post" action="">

    <p><label for="username">Your Username:</label> <input type="text" id="username" name="username" /></p> 
    <p><label for="password">Your Password:</label> <input type="password" id="password" name="password" /></p> 
    <p><input type="submit" name="login" value="Log In" /></p>

  </form>


</body>
</html>

   
    
  








Related examples in the same category

1.Introducing Form Design
2.form starts the form, gives the method of sending information and the location of form scripts
3.Add form controls to paragraph
4.Use DL, DT to layout the form controls
5.simple form with label, text field and submit button
6.Set margin, padding and border for form
7.Use DIV to wrap form control
8.Wrap form controls in a DIV and set style to float left and padding
9.Use table to layout form controls
10.styleless order form
11.Use UL and LI to layout form controls
12.Define style based on form id
13.Styling text in form controls
14.Disable a form control
15.Align the form controls
16.Registration Form
17.Layout form controls with table
18.Form layout
19.Layout form with CSS
20.Wizard form
21.Form for registration
22.form width: 75%
23.form margin: 3em auto
24.Add BR to table cell to layout the form controls
25.Use table to align the form controls
26.Table and Form Example
27.form margin:10px;
28.form padding: 0 5px;
29.form background: #F5F5F5;
30.form background: #F8F8F8;
31.form padding-right: 15px;
32.form padding-left: 15px;
33.form margin: 15px;
34.form padding: 15px 5px;
35.form border: 1px solid #EFEFEF;
36.Adding border to form
37.Error Fields
38.Error Fields 3
39.Error Fields 2
40.CSS Forms: Focus and Required Fields
41.CSS styled form elements
42.Spreadsheet form
43.A simple search form
44.Register with us form
45.Form with border
46.Submit form
47.Reset and Submit Example