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

网站建设属于那个科目网站设计培训班

网站建设属于那个科目,网站设计培训班,说明网站建设岗位工作职责,用jquery做的网站1.表单标签 及 表单属性表单标签是 &#xff1a;<form> 表单属性有&#xff1a;action 和 method&#xff1b;action属性&#xff1a;规定向何处发送表单数据。method属性&#xff1a;规定用什么方法发送数据。&#xff08;get和post&#xff09;get:在发送的url后面拼接…

1.表单标签 及 表单属性

·表单标签是 :<form>
·表单属性有:action 和 method;
   ·action属性:规定向何处发送表单数据。
 ·method属性:规定用什么方法发送数据。(get和post)
 get:在发送的url后面拼接表单数据,明文显示表单数据的内容,url的长度有限制。
 post:在消息体/请求体中传递,参数大小无限制。

2.表单项 及 属性

表单标签中常包括三种表单项标签:input、select、textarea

        ·input:定义表单项,通过type属性控制输入

             type属性的值有:

                   ① text:默认值,定义单行的输入字段
② password:定义密码字段
③ radio:单选按钮,name属性相同表示在一个备选圈中,value属性不同,表示各自的选项;如果最外层嵌套label标签,这样不用精准点击方格,点击文字部分也可选中
④ checkbox:复选


⑤ file:文件上传
⑥ data/time/datatime-local:定义日期、时间、日期和时间
⑦ number:数字输入框
⑧ email:邮件输入框
⑨ hidden:隐藏域
⑩ submit/reset/button:提交、重置、可点击按钮,value属性的值会展示在按钮上

-------------------------------------------------------------------------------------------------------------------------

        ·select:下拉列表,标签 option 定义列表项

                形式写法:

-------------------------------------------------------------------------------------------------------------------------

        ·textarea:定义文本域

                常见属性的值有:cols和row

                        ① cols:一行最多有几个字符
② rows:默认可以写几行

3.表单效果展示:

<table action=""  methods="get"><h1 style="text-align: center;">基础信息表</h1>姓名:<input type="text" name="name">   <br>  密码:<input type="password" name="password">   <br>    性别:<input type="radio" name="sex" value="男">男 <input type="radio" name="sex" value="女">女   <br>爱好: <label><input type="checkbox" name="love" value="1"> 唱歌</label> <label><input type="checkbox" name="love" value="2"> 跳舞</label> <label><input type="checkbox" name="love" value="3"> 绘画</label> <br>上传简历pdf:<input type="file"> <br>选择日期 和 时间:<input type="datetime-local"><br>年龄:<input type="number"><br>邮件:<input type="email"><br>学历:<select name="degree"><option value="1">-----下拉选择学历-----</option><option value="2">高中</option><option value="3">本科</option><option value="4">研究生</option></select><br>其他留言:<textarea cols="30" rows="6"></textarea><br><br><input type="button" name="button" value="按钮">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<input type="reset" name="reset" value="重置">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<input type="submit" name="submit" value="提交"></table>

整个代码:

<!DOCTYPE html>
<html lang="en">
<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>表单</title><style>span{margin-left: 60px;color: darkblue;}.div1{width: 380px;height: 600px;background-color:lightgoldenrodyellow;margin-left: 100px;padding: 30px ;line-height: 40px;}div{margin-left: 70px;}</style></head><body><h2>1.表单标签 及 表单属性</h2><p>·表单标签是 :<b>form</b><br>·表单属性有:action 和 method;<br>&nbsp;&nbsp;&nbsp;<b>·action属性:</b>规定向何处发送表单数据。<br>&nbsp;&nbsp;&nbsp;<b>·method属性:</b>规定用什么方法发送数据。(get和post)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;get:在发送的url后面拼接表单数据,明文显示表单数据的内容,url的长度有限制。<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;post:在消息体/请求体中传递,参数大小无限制。</p><h2>2.表单项 及 属性</h2><p>表单标签中常包括三种表单项标签:<b>input、select、textarea </b> </p><p style="text-indent: 30px;"><b style="color: blue;">·input:</b>定义表单项,通过type属性控制输入</p><span>type属性的值有:</span><div> ① text:默认值,定义单行的输入字段<br>② password:定义密码字段<br>③ radio:单选按钮,name属性相同表示在一个备选圈中,value属性不同,表示各自的选项;如果最外层嵌套label标签,这样不用精准点击方格,点击文字部分也可选中<br>④ checkbox:复选<br>⑤ file:文件上传<br>⑥ data/time/datatime-local:定义日期、时间、日期和时间<br>⑦ number:数字输入框<br>⑧ email:邮件输入框<br>⑨ hidden:隐藏域<br>⑩ submit/reset/button:提交、重置、可点击按钮,value属性的值会展示在按钮上</div><p style="text-indent: 30px;"><b style="color: blue;">·select:</b>下拉列表,标签 <b>option</b> 定义列表项</p><span>形式写法:</span><br><div> <img src="select.png" width="400px"> </div><p style="text-indent: 30px;"><b style="color: blue;">·textarea:</b>定义文本域</p><span>常见属性的值有:<b>cols和row</b></span><div>① cols:一行最多有几个字符<br>② rows:默认可以写几行</div><h2>3.效果展示:</h2><div class="div1"><table action=""  methods="get"><h1 style="text-align: center;">基础信息表</h1>姓名:<input type="text" name="name">   <br>  密码:<input type="password" name="password">   <br>    性别:<input type="radio" name="sex" value="男">男 <input type="radio" name="sex" value="女">女   <br>爱好: <label><input type="checkbox" name="love" value="1"> 唱歌</label> <label><input type="checkbox" name="love" value="2"> 跳舞</label> <label><input type="checkbox" name="love" value="3"> 绘画</label> <br>上传简历pdf:<input type="file"> <br>选择日期 和 时间:<input type="datetime-local"><br>年龄:<input type="number"><br>邮件:<input type="email"><br>学历:<select name="degree"><option value="1">-----下拉选择学历-----</option><option value="2">高中</option><option value="3">本科</option><option value="4">研究生</option></select><br>其他留言:<textarea cols="30" rows="6"></textarea><br><br><input type="button" name="button" value="按钮">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<input type="reset" name="reset" value="重置">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<input type="submit" name="submit" value="提交"></table></div></body>
</html>

http://www.dtcms.com/a/523205.html

相关文章:

  • 网站论坛 备案淘宝电商运营
  • 网站建设推广新业务wordpress模板查询
  • 石家庄市工程建设造价管理站网站网站生成移动版
  • 衡水网站建设知识交换链接是什么
  • 中国著名摄影网站广告设计与制作可以自学吗
  • 贵阳网站建设制作价格做美食视频的网站有哪些
  • 沧州网站建设沧州北京制作网站的基本流程
  • 自学网站建设推荐百度官方网站网址是多少
  • 如何做网站源码2022注册公司取名推荐
  • 搭建企业网站具体过程wordpress付费汉化主题
  • 果洛营销网站建设公司wordpress怎么重新配置
  • 网站如何运作垂直汽车网站做电商的优势
  • 公司高端网站建设wordpress导入演示卡主
  • 如何不备案建网站网站专题制作教程
  • 微信电影网站建设教程网页制作基本方法
  • 广州市律师网站建设价格网站成品超市
  • 建立wordpress网站吗wordpress缩略图错乱
  • 肇庆建设银行招聘网站wordpress主题cms博客
  • 建筑师网站5个搜索引擎作弊的网站
  • 自主建站是什么意思郑州网站建设 app开发
  • 顺德网站建设包括哪些网站开发语言为
  • 网站建设怎么赚钱晋中路桥建设集团网站
  • 旅游主题网站模板网页首页设计教程
  • 网站建设方案书模板下载网站开发需要什么费用
  • 东莞网站策划做ppt图片网站 知乎
  • 网站改版 英文网站建设费属于广告费用吗
  • 陕煤建设集团铜川分公司网站表白网站怎么做
  • 博物馆设计网站推荐百度应用中心
  • 网站推广是网站建设完成之后的长期工作乐清上班族网论坛
  • 购物网站建设比较好的海外aso优化