..
'S HTML provides a number of interesting tags whose purpose is to create forms with lots of text boxes, options, submit buttons, and more.
The technical term that sums up all these elements and forms and their purpose is to create interaction and data exchange between users and the site.
HTML forms allow only the realization of the interface module, but by themselves do not offer the least control and minimal management on the data.
Let us now understand how to create complete forms, such as tags and elements in general are involved and what their specific characteristics.
To create a form using the form tags of the same name, as in the following:
<form method="" action=""> </ Form>The main attributes, as seen in the example are as follows:
<form method="post" action="esegui.asp"> Name <br> <input type="text" name="nome"> <br> Surname <br> <input type="text" name="cognome"> <br> Country <br> <select name="paese"> <option value="I"> Italy </ option> <option value="E"> International </ option> </ Select> <br> Sex <br> <input type="radio" name="sesso" value="M"> M <br> <input type="radio" name="sesso" value="F"> <br> F Hobbies <br> <input type="checkbox" name="hobby" value="S"> <br> Sports <input type="checkbox" name="hobby" value="L"> Reading <br> <input type="checkbox" name="hobby" value="C"> Cinema <br> <input type="checkbox" name="hobby" value="I"> Internet <br> Comment <br> <textarea name="commento" rows="5" cols="30"> </ textarea> <br> <input type="submit" name="invia" value="Invia the dati"> </ Form>The result is as follows:
So let's see what are the characteristics and attributes of the most important elements of the HTML form:
The value attribute sets the default value of the individual elements.
| |
CSS (Course)
Web Design and Accessibility according to W3C CSS and XHTML. Starting from 29 €. |
| |
HTML (Course)
The markup language for the Web from 29 €. |
| |
Web Design (Course)
Design Web Sites with HTML, CSS and Dynamic HTML. From 39 €. |