当前位置: 首页 > news >正文

可视化网站开发平台花生壳域名做网站

可视化网站开发平台,花生壳域名做网站,做网站的图片用什么格式,企业网站建设方案范文目录 一.表单标签 1.表单域 2.表单控件 2.1input标签 2.2label/select/textarea标签 2.3无语义标签 三.特殊字符 一.表单标签 用来完成与用户的交互,例如登录系统 1.表单域 <form>通过action属性,将用户填写的数据转交给服务器 2.表单控件 2.1input标签 type…

目录

一.表单标签

1.表单域

2.表单控件

2.1input标签

2.2label/select/textarea标签

2.3无语义标签

三.特殊字符


一.表单标签

用来完成与用户的交互,例如登录系统

1.表单域

<form>通过action属性,将用户填写的数据转交给服务器

2.表单控件

2.1input标签

type属性:text文本输入框

<!DOCTYPE html>
<html lang="en">
<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>这是标题</title>
</head>
<body><!-- 这里是注释 --><form action = "">姓名<input type = "text"></form>
</body>
</html>

type = password

这种情况下对用户输入的数据具有加密效果

type = radio单选框

<body><!-- 这里是注释 --><form action = "">姓名<input type = "text"><br>密码<input type = "password"><br>性别<input type = "radio" name = "gender">男<input type = "radio" name = "gender">女</form>
</body>

附加相同的name属性,只能选择一个,当加入checked = "checked"则可以默认一个选项

type = checkbox复选框可以选择多个选项

 <form action = "">姓名<input type = "text"><br>密码<input type = "password"><br>性别<input type = "radio" name = "gender" checked = "checked">男<input type = "radio" name = "gender">女<br>爱好<input type = "checkbox">吃饭<input type = "checkbox">睡觉<input type = "checkbox">打豆豆</form>

type = button普通按钮(配合JS监听用户操作)

<form action = "">姓名<input type = "text"><br>密码<input type = "password"><br>性别<input type = "radio" name = "gender" checked = "checked">男<input type = "radio" name = "gender">女<br>爱好<input type = "checkbox">吃饭<input type = "checkbox">睡觉<input type = "checkbox">打豆豆<br><input type = "button" value="                     登录                     " onclick="alert('登录成功')"></form>

type = submit/reset提交/重置

<form action = "https://www.baidu.com/">姓名<input type = "text"><br>密码<input type = "password"><br><input type = "submit"><input type = "reset"></form>

2.2label/select/textarea标签

label标签通常搭配单选框使用,与单选框对应的文本内容进行绑定

select标签是下拉菜单框

textarea标签是可变化的文本框,超出默认行数就会出现滚动条

<form action = "https://www.baidu.com/">姓名<input type = "text"><br>密码<input type = "password"><br>性别<input type = "radio" name = "gender" id = "male"><label for="male">男</label><input type = "radio" name = "gender" id = "female"><label for="female">女</label><br>出生年份<select><option>--请选择出生年份--</option><option>2001</option><option>2002</option><option>2003</option><option>2004</option><option>2005</option></select><br>个人经历<br><textarea rows="2" cols="30"></textarea><br><input type = "submit"><input type = "reset"></form>

2.3无语义标签

有两种

div独占一行(可以替代<br>)

span不独占一行

<body><!-- 这里是注释 --><form action = "https://www.baidu.com/"><div>姓名<input type = "text"></div><div>密码<input type = "password"></div><div>性别<input type = "radio" name = "gender" id = "male"><label for="male">男</label><input type = "radio" name = "gender" id = "female"><label for="female">女</label></div><div>出生年份<select><option>--请选择出生年份--</option><option>2001</option><option>2002</option><option>2003</option><option>2004</option><option>2005</option></select></div><div>个人经历</div><div><textarea rows="2" cols="30"></textarea></div><div><input type = "submit"><input type = "reset"></div></form>
</body>

三.特殊字符

在html中如何表示空格,<>,&呢,肯定不能直接表示,因为html会将多余的空格字符叠加为一个,<>又会和标签符号混淆,那么我们需要用额外的方法来表示

空格&nbsp

<&lt <&gt & &amp

看一下效果

http://www.yayakq.cn/news/172648/

相关文章:

  • 门窗营销型网站微信app制作公司
  • 设计类的网站和简介不同类型网站栏目设置区别
  • 网站的优化从几个方面网站建设的创新之处
  • 网站建设创业wordpress会员可自行发布新闻系统
  • 西安广告网站制作装饰工程公司经营范围包括哪些?
  • 怎样创建网站app用wordpress做微站
  • 建设婚纱摄影网站的费用石大网页设计与网站建设客观题
  • 如果做二手车网站工作室主题网站
  • 青海公司网站建设哪家快深圳网站建设方案书
  • 怎样建网站平台wordpress安装时数据库错误
  • 深圳外贸网站推广公司合肥网约车收入怎么样
  • 北京网站建设石榴汇syntaxhighlighter wordpress
  • 济南网站开发灵山县建设局网站
  • 百石网怎么做网站网站备案要营业执照吗
  • 可以做女的游戏视频网站如何建个人网站教程
  • 怎么做自己的网站弄商城佣金折扣券网站怎么做
  • 手机可播放的网站招聘网页设计师
  • 无锡华士镇网站建设个体户怎么做购物网站
  • 网站换空间不换域名对seo有影响吗建设网站成都
  • 值得买网站模板试分析网站推广和优化的原因
  • 网站邮箱设置网站优化建设苏州
  • 网站建设公司做前端浏览器网页版进入
  • 大兴网站建设制作宝安区网站建设培训
  • 网站建设优化安徽宜兴建设局官方网站
  • 自己做网站导航页专业定制网红柴火灶
  • 这几年做哪个网站能致富有没有专业收费做网站优化的
  • 人网站建站wordpress 繁简
  • 网站做问卷调查的问题网页建设
  • 西安做网站公司魔盒下列哪些属于网络营销的特点
  • 用discuz做的大网站免费移动网站模板