Explanation of the XHTML Code Behind the Form
We then see text boxes for the visitor's first and last name, email address, and subject. Notice that I've used labels for this form to allow for text to be associated with the control. In other words, the visitor doesn't have to click directly in the input box in order to "control" cursor access in the box. You don't have to use labels, but if you do, remember to use the for attribute and to uniquely identify the element by assigning an id to it. You must also name your elements because the name is part of the name=value pair that comes into play when sending the data to the web server to be handled to produce an email message. A good practice is to use the same "title" for the for attribute and the id, and use a unique name to name the element. This will make more sense if you learn to write scripts to handle email forms.
We then come to the text area where the visitor can type in his message. Control of how large the "box" appears is achieved by setting columns (cols) and rows (rows). Finally, we create a couple of "buttons," one to allow the visitor to clear out everything he has typed into the form and another to allow him to send the message. Of course, you can change the text used to indicate these buttons to have them read how you want. For example, you could say, "Erase form" instead of "Clear form" or "Send email" instead of "Send message." This control is accomplished by modifying the value. These are the basics of manually creating HTML email.