Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

html form

<!-- Form which will send a GET request to the current URL -->
<form method="get">
  <label>Name:
    <input name="submitted-name" autocomplete="name">
  </label>
  <button>Save</button>
</form>

<!-- Form which will send a POST request to the current URL -->
<form method="post">
  <label>Name:
    <input name="submitted-name" autocomplete="name">
  </label>
  <button>Save</button>
</form>

<!-- Form with fieldset, legend, and label -->
<form method="post">
  <fieldset>
    <legend>Title</legend>
    <label><input type="radio" name="radio"> Select me</label>
  </fieldset>
</form>
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #html #form
ADD COMMENT
Topic
Name
7+3 =