Web Design / HTML

  1. Home
  2. Computing & Technology
  3. Web Design / HTML

Your First HTML Form

The HTML for the Form

By Jennifer Kyrnin, About.com

The following is the HTML for a simple HTML Form. It uses a mailto link to send the form data.

<form action="mailto:email address" method="get" enctype="text/plain">
Name:<input type="text" name="name" id="name" size="30" /><br>
Please rate my site from 1 to 10 (1 = bad and 10 = good):<br>
<select name="rating" id="rating"><br>
  <option>1</option>
  <option>2</option>
  <option>3</option>
  <option>4</option>
  <option>5</option>
  <option>6</option>
  <option>7</option>
  <option>8</option>
  <option>9</option>
  <option selected>10</option>
</select><br>
How would you suggest I improve it?<br>
<textarea name="improve" id="improve" rows="5" cols="30"></textarea><br>
<input type="submit" value="Send Feedback" /><input type="reset" />
</form>

Explore Web Design / HTML

About.com Special Features

Build Your Own Website

Step-by-step advice on how to do everything from choosing a Web host to promoting your content. More >

Connect Your Home Computers

Easy ways to connect two computers for networking purposes. More >

Web Design / HTML

  1. Home
  2. Computing & Technology
  3. Web Design / HTML
  4. HTML and XHTML
  5. XHTML
  6. Forms
  7. Your First HTML Form - The HTML for the Form

©2009 About.com, a part of The New York Times Company.

All rights reserved.