Loading AI tools
来自维基百科,自由的百科全书
網頁表單(英語:WebForms)可以将用户输入的数据,发送到服务器进行处理。因为互联网的使用者會操作复选框、单选按钮或文本框來填写網頁上的表格,所以網頁表單的形式类似文件或数据库的表單(form)。例如,網頁表單可應用在線上的電子商務:以信用卡订购产品、要求貨運,或可用于检索数据(例如,搜索引擎上搜索)。
表單被HTML的<form>
元素所包含。并指出提交数据所用的HTTP request方法:GET
或POST
。
表單可以使用的html 用户界面元素:
<form action="url">...</form>
<form>
元素定义出form区域的范围。要求action
属性。<button>...</button>
<datalist>...</datalist>
option
清单<fieldset>...</fieldset>
<fieldset>
, which can then have a <legend>
added in order to identify their function.<input/>
<button>
is preferred if possible (i.e., if the client supports it) as it provides richer possibilities.src
属性中必须给出图片URLtext
变种,产生搜索条text
变种,输入的字符用星号显示,但仍然是明文上传服务器,因而可能不安全,需要用HTTPS协议。text
变种,输入电话号码text
变种,输入email地址text
变种,输入URLstext
变种,输入数hidden
输入是不绘制因而不可见的。但仍会提交给服务器。<label for="id">...</label>
<legend>...</legend>
<fieldset>
.<meter>...</meter>
value
attribute. Can also have: min
, low
, high
, and max
.<option value="x">...</option>
<select>
list.<optgroup>...</optgroup>
<option>
elements in a <select>
list.<output>...</output>
<progress>...</progress>
<select name="xyz">...</select>
<textarea rows="8">...</textarea>
cols
(where a column is a one-character width of text) and rows
HTML attributes. The content of this element is restricted to plain text, which appears in the text area as default text when the page is loaded.Seamless Wikipedia browsing. On steroids.
Every time you click a link to Wikipedia, Wiktionary or Wikiquote in your browser's search results, it will show the modern Wikiwand interface.
Wikiwand extension is a five stars, simple, with minimum permission required to keep your browsing private, safe and transparent.