文章目录
- 一、`<button>` 标签概述
- 1. 标签介绍
- 2. 基本语法
- 二、`<button>` 标签的类型
- 三、`<button>` 标签的常用属性
- 1. `autofocus`
- 2. `disabled`
- 3. `form`
- 4. `formaction`
- 5. `formenctype`
- 6. `formmethod`
- 7. `formnovalidate`
- 8. `formtarget`
- 四、`<button>` 与 `<input>` 的区别
- 五、注意事项
- 1. 明确指定 `type` 属性
- 2. 表单中的按钮类型
- 3. 无障碍性