> For the complete documentation index, see [llms.txt](https://information9527.gitbook.io/html/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://information9527.gitbook.io/html/qian-duan-san-xiong-di/html-ji-ben-jie-gou/form-biao-chan.md).

# Form表單

## 常使用的元素

Form表單是一個特殊個體，為使用者所輸入文字傳送或儲存下個表單及資料庫，像是註冊、問卷都會使用到表單元素。

action 使選擇哪個頁嵌，提交內容時會傳送此表單所有內容。

```markup
<form action="form_action.asp" method="get"></Form>
```

{% hint style="info" %}
\<form action ="Values">

Values :　使用URL

* 相對 URL - 指向站點站点内的文件（比如 src="example.htm"）
* 絕對 URL - 指向其他站點（比如 src="[www.example.com/example.htm"）](http://www.example.com/example.htm"）)
  {% endhint %}

通常會放以下元素：

![](https://3336654295-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MDPdvZ3NzJOlXMhEq_2%2F-MJKXfXKaLklJJHVc3RG%2F-MJKXwaGa-hcwI75lIwJ%2Fimage.png?alt=media\&token=d5e77fb1-74c9-4934-adce-71765a76fdc3)

## Input 元素

input 使一個非常多樣化的一個元素，有checkbox、test、password相關的type，減少很多製作物件方格等時間。

### input類別參考：

![](https://3336654295-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MDPdvZ3NzJOlXMhEq_2%2F-MJKWIfiKN0NUBAhmfZr%2F-MJKWgsEUttmqnxKH51A%2Fimage.png?alt=media\&token=3b1eaf67-be1a-4e54-a507-a8a5b354852e)

### 使用方式

{% hint style="info" %}
\<input type ="類別">\</input>
{% endhint %}
