<fieldset>

<legend>Personal information:</legend>

First name:<br>

<input type="text" id="firstname" name="firstname"

value="Mickey"><br>

Last name:<br>

<input type="text" name="lastname" value="Mouse"><br><br>

<input type="submit" value="Submit">

</fieldset>

Putting it all together

We have now seen the individual aspects of the web form. Let’s now put it all back together and see an example form in action. We will use a simple example of a form with two text input fields, a submit button and a reset button. Note that all the inputs have the name attribute completed. Without these attributes completed, the values wouldn’t be passed through to the email body.