freeCodeCamp/guide/chinese/css/forms/index.md

20 lines
438 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
title: Forms
localeTitle: 形式
---
## 形式
HTML表单元素定义用于收集用户输入的表单。 例子:
```html
<form>
contents
</form>
```
HTML表单包含表单元素。
表单元素是不同类型的输入元素,如文本字段,复选框,单选按钮,提交按钮等。
在表单标签内部还有一些重要的属性: -action数据将发送到的页面 -method请求类型'GET'和'POST'