Wednesday, May 2, 2012

How to create Html forms

Forms are a very used tool on all type of webpages.They are mostly employed to get
information of your users.
Forms are defined with the tags <form> and </form>.The first thing to know is what possible attributes this tag has.Here is a list:

name:will allow us to give the form a name.
method:Indicates the type of sending will be used.The 2 most common types are get and post.
With get the information being sent will be visible in the navigation bar, meanwhile with post
they remain invisible.And that's why 90% of the forms use the post method.
action:indicates an action to realize when the user has sent the form, like for example another webpage.


<form name="form" method="post" action="send.html" />

In the next post I will explain you the different elements we can include in a form.

No comments:

Post a Comment