Message Input form : input « Form « HTML / CSS






Message Input form

   
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style rel="stylesheet" type="text/css">
.button {
  background: url(img/menubg.gif) repeat-x bottom left #f4f4f4;
  border-bottom: 1px solid #d8d8d8;
  border-left: 4px solid #ccc;
  border-right: 1px solid #d8d8d8;
  border-top: 1px solid #d8d8d8;
  color: #505050;
  font-weight: 700;
  margin: 0 0 15px;
  padding: 7px 7px 7px 11px;
  width: 120px;
}
input,textarea {
  border: 1px solid #ccc;
  font-family: Verdana, Tahoma, Arial, Sans-Serif;
  font-size: 1em;
  margin: 0;
  padding: 4px;
}

label {
  margin: 2px;
}

input {
  width: 200px;
}

textarea {
  width: 400px;
}

</style>

</head>
<body>
 <form action="#" method="post" id="sampleform">
      <p>
        <label for="author">Name:</label>
        <br />
        <input type="text" name="author" id="author" class="textarea" value="" tabindex="1" />
      </p>
      <p>
        <label for="email">E-mail:</label>
        <br />
        <input type="text" name="email" id="email" value="" tabindex="2" />
      </p>
      <p>
        <label for="comment">Message:</label>
        <br />
        <textarea name="comment" id="comment" rows="7" cols="50" tabindex="4"></textarea>
      </p>
      <p>
        <input class="button" name="submit" id="submit" type="submit" tabindex="5" value="Submit" />
      </p>
    </form>
</body>
</html>

   
    
    
  








Related examples in the same category

1.'input' Example
2.input with class name
3.Set margin for input control
4.Set width of input control
5.Set input background color and color
6.Set width and display style for input
7.Set all input control for margin, left float, width and display style
8.Set input control with focus to have yellow background
9.Set required label field to have bold font and highlight color
10.Set border width, border style and border color for all input controls
11.Set width and margin for all input controls
12.Set background color, font and border for form control
13.Tabbing Order with tabindex
14.Access Keys
15.input display: block;
16.input margin-bottom: 1.25em;
17.input width: 150px;
18.input border: 1px solid black;
19.input border-right: 2px solid black;
20.input border-bottom: 2px solid black;
21.Required field
22.Register for our e-mail
23.Login form
24.input class id selector and property selector
25.input width: 12em
26.input margin: 0 0 .5em 0;
27.Attribute Value Selectors for input controls
28.input padding:2px;
29.input border:1px solid #eee;
30.input font: normal 1em Verdana, sans-serif;
31.input color:#777;
32.input padding: 2px;
33.input border: 1px solid #EFEFEF;
34.input font: normal 1em Verdana, 'Trebuchet MS', Tahoma, sans-serif;
35.input color: #666666;
36.input:focus background-color:#ffffcc;
37.input:focus border-width:3px;
38.input:focus border-color:#ff0000;
39.input background: blue;
40.input color: white;
41.input border: 3px solid royalblue;
42.Input border: 2px inset #CECECE;
43.Input height: 17px;
44.Input float: left;
45.Input margin: 8px 0 0 7px;
46.Input padding: 0 0 0 5px;
47.Input font-size: 12px;
48.Input color: #454545
49.Input height: 20px;
50.Input width: 329px;
51.Input border-top: 1px solid #700303;
52.Input border-left: 1px solid #700303;
53.Input border-bottom: 0px;
54.Input border-right: 0px;
55.Input margin: 0 5px 0 11px;
56.Input padding: 2px 0 0 2;
57.Input background-color: red
58.input border: 1pt solid #6A849D;
59.input font: normal 10px tahoma;
60.input color: #707070;
61.input margin: 0px 0px 5px 0px;
62.input color: lightblue;
63.input border: 3px solid lightblue;
64.A simple form with input elements
65.An input form that calls a form-to-email Cgi script
66.input color: #fcc; background-color: #900; font-size: 1.5em; border: 1px solid #660; padding: 4px;
67.input margin-bottom: 1.5em; width: 50%; color: #666; background-color: #ccc;
68.Using border to highlight input
69.input color: #00008B;background-color: #ADD8E6;border: 1px outset #00008B;
70.input color: #00008B;background-color: #E3F2F7;border: 1px inset #00008B;width: 200px;
71.input:focus border: 2px solid #000000;
72.input:focus background-color:#ffffcc; border-width:3px;border-color:#ff0000;
73.Single line text input control
74.Multi line text input control
75.input:focus background-color:#c4c4c4;
76.input background-color:#cccccc;
77.input for email
78.File input
79.Image input
80.Hidden Input Example
81.File Upload Test
82.A prepopulated text field with a maximum length
83.Change textbox border when focus in
84.'alt': an alternate description
85.'disabled' sets the enabled state of an element
86.'vcard_name' sets the element vCard value to use with the autocomplete list provided by the browser