当前位置:网站首页>A simple form example
A simple form example
2022-07-16 08:27:00 【Inexhaustible hand of God】
A simple form example :
<form action="xxx.py" method="get">
<!--
Chinese colon , To prevent code generation errors ;
input + tab Key to generate code ;
type="text" Normal input box
placeholder=" Please enter a user name " Text reminder
-->
user name :<input type="text" placeholder=" Please enter a user name " />
<br />
<!--
type="password" Password box
-->
Password box :<input type="password" />
<br />
Gender :
<!--
type="radio" Radio buttons
checked="checked" This attribute can express the default selected state
Test details :
1、 Click to see if it is a radio effect
2、 Whether there is a default selected state when refreshing
3、 Can I switch by clicking the text
-->
<input type="radio" name="xb" checked="checked" id="nan" />
<label for="nan"> male </label>
<input type="radio" name="xb" id="nv" />
<label for="nv"> Woman </label>
<br />
Your hobby :
<!--
type="checkbox" Checkbox 、 Check box
checked="checked" Selected by default
Test details :
1、 Whether there is a default selected state when refreshing
2、 Can I switch by clicking the text
All tests should be traced back to the needs of users
-->
<input type="checkbox" id="cs" checked="checked" />
<label for="cs"> test </label>
<input type="checkbox" id="cf" />
<label for="cf"> having dinner </label>
<input type="checkbox" id="sj" />
<label for="sj"> sleep </label>
<input type="checkbox" id="ddd" checked="checked" />
<label for="ddd"> Doudou </label>
<br />
come from :
<!--
select Labels are nested several option label , Each group option It is an option in the drop-down menu
selected="selected" The drop-down menu is selected by default
Test details :
1、 The order of content
2、 Default selected state
3、 Number of content
-->
<select>
<option> Beijing </option>
<option> Shanghai </option>
<option> Guangzhou </option>
<option selected="selected"> Shenzhen </option>
</select>
<br />
<!--
textarea Text domain
Test details :
1、 Test whether the appearance and size of the three mainstream browsers are consistent
2、 Remind programmers to disable the function of dragging size
-->
<style type="text/css">
textarea{resize: none;}
</style>
opinion :<textarea name="" id="" cols="30" rows="10"></textarea>
<br />
<!--
type="button" General button , need js Cooperation can achieve other effects
value Property settings set the text on the button
-->
General button :<input type="button" value=" Button " />
<br />
<!--
type="reset" Click to restore the form data to the default value
value Property settings set the text on the button
-->
Reset button :<input type="reset" value=" I am reset " />
<br />
<!--
type="submit" Click to submit the form to the designated background processing
value Property settings set the text on the button
After clicking, no matter whether an error is reported , It has nothing to do with us , At the end of the test , Just pay attention to whether the content in the database is added normally
-->
Submit button :<input type="submit" value=" I'm submitting " />
</form>

边栏推荐
- 【每日一题】二叉搜索树与双向链表
- 测试基础2
- Leetcode 735 planetary collision [stack simulation] the leetcode road of heroding
- "Everyday Mathematics" serial 59: February 28
- 【每日一题】判断是不是完全二叉树
- Mongodb plummeted!!!
- Wechat classroom appointment of applet completion works (1) summary of development
- Fluent: environment construction and project creation
- Wechat classroom appointment for applet completion works (6) opening defense ppt
- "Telecom grade" has been running for many years, and CICA technology has launched the core transaction database antdb7.0
猜你喜欢

小程序毕设作品之微信企业公司小程序毕业设计(4)开题报告

函数式模型

Wechat classroom appointment for applet completion works (6) opening defense ppt

(手工)【sqli-labs27、27a】报错回显、布尔盲注、过滤后注入

C primer plus learning notes - 4. File IO (input / output)

"Everyday Mathematics" serial 59: February 28

Configuration and vant component of jump and navigation of wechat applet page

What is fastmixer cash virtual currency encryption mixer?

Wechat classroom appointment of applet completion works applet graduation project (4) opening report

常见数据集格式+数据集标注
随机推荐
Fluent: environment construction and project creation
VRRP基础配置
ora-01153
typeof关键字
【Renesas RA6M4开发板之按键和LED的GPIO】
Manually switch scan
送你的代码上太空,一起开发“最伟大的作品”
Last CSDN blog
HJ9 提取不重复的整数 HJ09
Cat and dog classification - simple CNN
Design simulation of smart home monitoring system based on 51 single chip microcomputer (proteus simulation + source code + Report)
Quick sorting · example 2
Use of backup cache API
Deeply uncover Alibaba cloud's asynchronous task capability of function computing
小程序毕设作品之微信教室预约小程序毕业设计(6)开题答辩PPT
猫狗分类-VGG16-Finetune
猫狗分类-简单CNN
小程序毕设作品之微信教室预约小程序毕业设计(4)开题报告
Explain ebpf in simple terms | 7 core issues you need to understand
函数式模型