<form>
Description:
This element creates a form and submits to send information to a server for further processing.
Syntax:
<form attributes events> . . . </form>
Example:
<html>
<head>
<title>form element example</title>
</head>
<body>
<form name="form2" method="post" action="yourhtmlpage.htm">
<input type="text" name="textfield2" value="This is a text field" size="30">
<br>
<input type="checkbox" name="checkbox2"
value="checkbox">A checkbox.
<br>
<input type="radio" name="radiobutton" value="radiobutton">A radio button.<br>
<select name="select2">
<option>List item 1</option>
<option>List item 2</option>
<option>List item 3</option>
<option>List item 4</option>
<option>List item 5</option>
</select>A select list.
<br>
<input type="button" name="myButton2" value="Submit">A submit button.
</form>
</body>
</html>
Home
HTML CSS Book
HTML reference
HTML CSS Book
HTML reference
Tag:
- <a>
- <acronym>
- <address>
- <area>
- <article>
- <aside> for SideBar
- <audio>
- <b>
- <base>
- <bdi>
- <bdo>
- <blockquote>
- <body>
- <br>
- <button>
- <canvas>
- <caption>
- <cite>
- <code>
- <col>
- <colgroup>
- <dd>
- <del>
- <details> for expandable section
- <dfn>
- <div>
- <dl>
- <!DOCTYPE>
- <dt>
- <em>
- <embed>
- <fieldset>
- <figure> for content with caption
- <footer> for footers
- <form>
- <frame>
- <frameset>
- <head>
- <header> for headers
- <hgroup> for header grouping
- <hN>
- <hr>
- <html>
- <i>
- <iframe>
- <img>
- <input>
- <ins>
- <kbd>
- <keygen>
- <label>
- <legend>
- <li>
- <link>
- <mark> to highlight
- <map>
- <meta>
- <meter>
- <nav> for navigation
- <noscript>
- <object>
- <ol>
- <output>
- <optgroup>
- <option>
- <p>
- <param>
- <pre>
- <progress>
- <q>
- <ruby>, <rt>, and <rp> Elements
- <rt>
- <ruby>
- <samp>
- <script>
- <section> marks sections
- <select>
- <span>
- <strong>
- <style>
- <sub>
- <sup>
- <table>
- <tbody>
- <td>
- <textarea>
- <tfoot>
- <thead>
- <th>
- <time> for date and time
- <title>
- <tr>
- <ul>
- <var>
- <video>
Related: