Skip to main content

How To Create A Form in HTML

There are so many Website which consists of some submission forms. Here we are giving one example how a submission form can be coded. Now Follow the Steps given below:

Step 1:
HTML Coding
<h3>Fill up the Submission Form Carefully</h3>
<form action="/">
<fieldset>
<label for="name">Name</label>
<input type="text"  id="name" class="form-text"/>
<p class="form-help">In Capital Letter</p>
</fieldset>

<fieldset>
<label for="email">Email Id</label>
<input type="email" id="email" class="form-text"/>
</fieldset>
<fieldset>
<label for="number">Mobile no.</label>
<input type="text"  id="name" class="form-text"/>
<p class="form-help">Please Specify Your Country Code</p>
</fieldset>
<fieldset>
<label for="gender">Gender</label>
<select id="gender">
<option>Male</option>
<option>Female</option>
</select>
</fieldset>
<fieldset>
<label for="language">Language Known</label>
<input type="text"  id="name" class="form-text"/>
<p class="form-help"></p>
</fieldset>
<fieldset class="radio">
<label for="skill">Physically Disorder</label>
<ul>
<li><label><input type="radio" name="notifications"/>Yes
</label></li>
<li><label><input type="radio" name="notifications"/>No
</label></li>

</ul>
</fieldset>
<fieldset>
<label for="address">Permanent Address</label>
<textarea id="address"></textarea>
</fieldset>

<fieldset>
<label for="bio">Bio</label>
<textarea id="bio"></textarea>
</fieldset>
<fieldset class="check">
<label><input type="checkbox"/>I accept the terms and of
services and lorem ipsum.</label>
</fieldset>
<fieldset class="form-action">
<input type="submit" value="submit"/>
</fieldset>
</form>




Step2:

CSS Coding

Now spice up your form with style sheets. Here is the sample of a style sheet  with CSS Coding.

label {font-size:14px;text-transform:uppercase;}
form fieldset{
margin:0 0 10px 0;
padding:10px 5px 5px 10px;
font-size:14px;
border-bottom:1px solid #292628;
}
form fieldset.form-actions{
margin:0 0 0 20%;
padding:0;
font-size:14px;
border:none;
}
form fieldset.check{
padding-left:20%;
}
form fieldset label{
float:left;
width:20%;
margin:4px 0 5px 0;
padding:0 0 10px 0;
font-weight:bold;
}
form fieldset.check label{
display:inline;
float:none;
width:auto;
font-weight:normal;
}
form fieldset.radio ul li label{
display:inline;
float:none;
width:auto;
font-weight:normal;
}
form fieldset input.form-text,
form fieldset textarea{
display:block;
width:50%;
padding:5px;
font-size:14px;
border:1px solid #030006;
background:#887681;
-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.05);
-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,.05);
-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.05);
-webkit-border-radius:4px;
-moz-border-radius:4px;
border-radius:4px;
}
form fieldset input.form-text:focus{
border:1px solid #ccc;
background:#fff;
}
form fieldset textarea{
height:120px;
}
form fieldset select{
min-width:25%;
margin:0;
}
form fieldset.radio ul{
margin:5px 0 0 20%;
}
form fieldset.radio ul li{
margin:0 0 5px 0;
}
form fieldset.radio ul li:last-child{
margin:0;
}
form fieldset p.form-help{
margin:5px 0 0 20%;
font-size:12px;
color:#999;
}
form input[type="submit"]{
margin:0;
padding:5px 10px;
font-size:12px;
font-weight:bold;
border:1px solid #ccc;
background:#eee;
-webkit-border-radius:4px;
-moz-border-radius:4px;
border-radius:4px;
}
form input[type="submit"]:hover,
form input[type="submit"]:focus{
border:1px solid #bbb;
background:#DBD6D9;
}
form input[type="submit"]:active{
border:1px solid #ccc;
background:#eee;
}
@media screen and (max-width:600px){
form fieldset label{
display:block;
float:none;
width:auto;
margin:0 0 5px 0;
}
form fieldset.form-action,
form fieldset.check,
form fieldset.radio ul,
form fieldset p.form-help{
margin-left:0;
padding-left:0;
}
form fieldset input.form-text,
form fieldset textarea{
width:100%;
-webkit-box-sizing:border-box;
-moz-sizing:border-box;
}
The screenshot of the above form will look as below

Now we can see a complete submission form

Comments

Popular posts from this blog

The Mysterious Satanic Leaf Tailed Gecko

The Satanic Leaf Tailed Gecko is a mysterious creature. These kinds of creatures are generally found in Madagascar Island. The generic name of this creature is Uroplatus which is taken from two Latin words “oura” meaning “tail” and “platys” meaning “flat”. This species was first discovered by George Albert Boulenger in 1888. It is very small in size. Its full size with tail is about 2.6 to 6 inches. The leaf like structure is generally seen in ebenaui complex. It has spines on head, body and trunk. This species can change their color according to the circumstances. Even they can change their color during the sexual time. Their color helps them to remain in disguise. This kind of creature has no eyelid but a transparent cover over their eyes. So they use long, mobile tongues to remove the dust from their eyes. The Satanic Leaf Tailed Gecko normally remains in the rainy forest. This kind of creature comes out at night to feed insects. Their scales and long curved claws help them to tra...

AYE AYE :THE BAD LUCK OMEN

Aye Aye is one of the rarest animals of the world. It belongs to the mammals groups. This rare creature dwells in globular nest which has a small hole to enter and exit. When this creature rides on the tree, it uses its middle finger to tap the tree. It uses its slender finger to find out the taste insects. Aye Aye also uses the same middle finger to lift out insects. Its eyes and ears are unusually large. Due to its big eyes some consider this creature as the demon. These types of creatures are very sensitive. These rare creatures are generally found in the Madagascar Island.  The native islanders of Madagascar often killed this creature in first sight because they believe this creature as evil omen. Aye Aye are the only primates of the mammal world to depend on echolocation for pursue.But the most astonishing fact is that this species is in great danger. These animals are particularly fond of ceramicist beetle. They even eat insects, nectar, seeds etc. Aye Aye are dark/brown or ...

The joys of urban gardening

Having recently been baptized as an urban gardener I wanted to share a little behind-the-scenes action and a few of the benefits I’ve discovered on my green-fingered adventure so far. .CPlase_panel display:none; ( function() if (window.CHITIKA === undefined) window.CHITIKA = 'units' : [] ; ; var unit = 'publisher' : 'imzas', 'width' : 728, 'height' : 90, 'sid' : "wordpress-plugin below", 'color_site_link' : '0000CC', 'color_title' : '0000CC', 'color_text' : '000000', 'color_bg' : 'ffffff', 'font_title' : 'Tahoma', 'font_text' : 'Tahoma', 'impsrc' : 'wordpress', 'calltype' : 'async[2]' ; var placement_id = window.CHITIKA.units.length; window.CHITIKA.units.push(unit); var x = ""; document.write(x); ()); The joys of urban gardening