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.