当前位置:网站首页>C1小笔记【任务训练篇二】
C1小笔记【任务训练篇二】
2022-04-23 17:44:00 【懒回顾,半缘君】
表单标签
二、任务背景
HTML表单用于收集用户输入。表单元素指的是不同类型的 input 元素、复选框、单选按钮、提交按钮等。
三、任务内容
1、<form></form>标签
用于创建HTML表单,常用属性如下:
-
action:规定表单提时,表单数据提交的URL
-
method:规定用于发送form-data的HTTP方法,常用属性值为get、post
2、<input />元素
<input />元素是最重要的表单元素,根据input元素的不同type类型,表现形式也是不一样的
| 类型 | 描述 |
|---|---|
text |
普通文本框,一般默认20个字符宽度 |
textarea |
多行文本框 |
button |
普通按钮 |
radio |
单选框 |
checkbox |
多选框 |
reset |
表单重置按钮 |
submit |
表单提交按钮 |
password |
密码输入框,密码字段使用圆点或星号代替 |
3、<label></label>标签
用于为
input标签提供标注
点击
label文本,浏览器会自动将焦点转到和标签相关的表单控件上
label标签的for属性值应当与相关元素的id属性值相同
4、<select></select>标签
用于创建下拉列表
select元素中的<option></option>标签用于定义列表的可选项
<select>
<option value=" trainee">C1见习工程师能力认证</option>
<option value="web ">C4前端基础能力认证</option>
<option value=" java">C4Java基础能力认证</option>
<option value=" python">C4Python基础能力认证</option>
</select>

5、<button></button>元素
用于定义普通按钮
版权声明
本文为[懒回顾,半缘君]所创,转载请带上原文链接,感谢
https://blog.csdn.net/CSDN_YJX/article/details/124363883
边栏推荐
- On the problem of V-IF display and hiding
- 122. 买卖股票的最佳时机 II-一次遍历
- 土地覆盖/利用数据产品下载
- Manually implement simple promise and its basic functions
- 102. 二叉树的层序遍历
- 关于gcc输出typeid完整名的方法
- MySQL installation
- 440. The k-th small number of dictionary order (difficult) - dictionary tree - number node - byte skipping high-frequency question
- 2022年广东省安全员A证第三批(主要负责人)特种作业证考试题库及在线模拟考试
- How to change input into text
猜你喜欢

双闭环直流调速系统matlab/simulink仿真

Chrome浏览器的跨域设置----包含新老版本两种设置

Gets the time range of the current week

Element calculation distance and event object

为什么有些人说单片机简单,我学起来这么吃力?

92. 反转链表 II-字节跳动高频题

Halo open source project learning (II): entity classes and data tables

Use of todesk remote control software

Land cover / use data product download

Future 用法详解
随机推荐
Generating access keys using JSON webtoken
How to use the input table one-way service to send (occupy less) picture files (body transmission)? FileReader built-in object involved
Compilation principle first set follow set select set prediction analysis table to judge whether the symbol string conforms to the grammar definition (with source code!!!)
394. String decoding - auxiliary stack
Websocket (basic)
Applet learning notes (I)
Abnormal resolution of Xiaomi camera
2022制冷与空调设备运行操作判断题及答案
209. Minimum length subarray - sliding window
On the method of outputting the complete name of typeID from GCC
索引:手把手教你索引从零基础到精通使用
Where is the configuration file of tidb server?
2022年流动式起重机司机国家题库模拟考试平台操作
Compare the performance of query based on the number of paging data that meet the query conditions
vite配置proxy代理解决跨域
01-初识sketch-sketch优势
Qt error: /usr/bin/ld: cannot find -lGL: No such file or directory
EasymodbusTCP之clientexample解析
干货 | 快速抽取缩略图是怎么练成的?
flink 学习(十二)Allowed Lateness和 Side Output