Web Notes 英文



The <form> tag is used to create an HTML form for ==user input.==

The<form> element can contain one or more of the following form elements:

  • <input>
  • <textarea
  • <button>
  • <select>
  • <option>
  • <fieldset>
  • <label>
  • <output>


Attributes Value Desciption
action URL Specifies where to send the form-data when a form is submitted
autocomplete on/off Specifies whether a form should have autocomplete on or off
method get/pose Specifies the HTTP method to use when sending form-data
name text Specifies the name of a form
target _blank_ _self_ _parent_ __top Specifies where to display the response that is received after submitting the form
accept-charset character-set Specifies the character encodings that are to be used for the form submission


[^!]: New In H5


The <input>tag specifies an input field where the user can enter data.

<input>elements are used within a <form> element to declare input controls that allow users to input data.

An input field can vary in many ways, depending on the type attribute



<a name="tips">基本的注意事项 - 有用的提示</a>
<a href="#tips">有用的提示</a>

Notes: vh vw calc

Codes   Learning Web HTML
版权声明:本博客所有文章除特别声明外,均采用 CC BY-SA 3.0协议 。转载请注明出处!