- 5
- 0
- 约1.39万字
- 约 8页
- 2016-10-09 发布于广东
- 举报
html表单布及CSS样式
HTML(二)
一、HTML中的特殊符号
? ? ?1.常用的特殊符号:
? ? ? ? ?特殊符号 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?字符实体 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 示例
? ? ? ? ? 空格 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?nbsp; ? ? ? ? ? ? ? ? ? ? ? ?Anbsp;nbsp;nbsp;nbsp;B??????????
? ? ? ? ? 大于号 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?gt; ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?a lt;bbr/
? ? ? ? ?小于号 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? lt; ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? lt;htmlgt;br/
? ? ? ? ?引号 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?quot; ? ? ? ? ? ? ? ? ? ? ? ? ?quot姓名quotbr/???
? ? ? ? ?版权符号 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? copy; ? ? ? ? ? ? ? ? ? ? ? ? ?Copyrightcopy; All Reserved
? ?
?2.表单(?标签form)
? ??2.1、表单的基本语法:
? ? ? ? ? ? ? ? form 属性action=表单提交地址 ?method=提交的方法 ?
? ? ? ? ? ? ? ? action:规定到表单提交之后,由谁处理,默认为当前页面
? ? ? ? ? ? ? ? method:有两种取值get和post(更安全,数据量更大)
? ? ? ? ? ? ? ? 表单内部由大量表单元素构成
? ? ?2.2、表单元素的基本格式
? ? ? ? ? ? ? ?input name=表单元素的名称 type=类型 value=值 size=显示的宽度 ? ? ? ? ?maxlength=最大输入字符长度 checked=checked(是否被选中) /
? ? ??
? ? ?2.3、表单元素的逐一介绍
? ? ? ? ? ? 1、文本框(type:txt)
? ? ? ? ? ? ? ? ? ?input name=username type=txt value=张三 size=20 /
? ? ? ? ? ? 2、密码框
? ? ? ? ? ? ? ? ? ??input name=psswd type=password size=20
? ? ? ? ? ? 3、重置、提交和普通按钮
? ? ? ? ? ? ? ? ? ? ? ??input name=reset ? type=reset ? ?value=重置 /
input name=submit type=reset ? value=提交 /
input name=button type=reset ? value=普通 /
? ? ? ? ? ? ?4、单选按钮(radio)
? ? ? ? ? ? ? ? ? ? ? ?input type=radio name=gen value=男 checked=checked /
? ? ? ? ? ? ? ? ? ? ? ?img src=images/Male.gif alt=男/男
? ? ? ? ? ? ? ? ? ? ? ?input type=radio name=gen value=女 ?/
img src=images/Female.gif alt=女/女
? ? ? ? ? ? ? 5、复选框(check和post)
? ? ? ? ? ? ? ? ? ? ? ? ? ??input type=checkbox name=hobby value=sports /运动nbsp;nbsp;nbsp;
? ?input type=checkbox name=hobby value=swimming /游泳nbsp;nbsp;nbsp;
? ?input type=checkbox name=hobby value=play ?checked=checked/玩游戏??????????????????
? ? ? ? ? ? ? ?6、文件域(上传文件)
? ? ? ? ? ? ? ? ? ? ? ?input type=file name=files /br/
您可能关注的文档
- Excel 203工作表操作与图表制作.doc
- Excel 9应用技巧53例.doc
- Excel--WORD单选与多选练习题(无答案).doc
- Excel 有些可能需要熟练掌握而很多人不会的技能.docx
- Excel200在医学统计中的应用.doc
- Excel200部分判断题.doc
- Excel203应用技巧大全.doc
- Excel207制作圆形图.doc
- Excel_9应用技巧53例.doc
- Excel中的格通常有很多项目.docx
- 2026年预防为主,生命至上安全培训课件.pptx
- 2026年三级安全教育.pptx
- 2026年检测业务安全培训.pptx
- 2026年消防动火培训.pptx
- 2026年重大事故隐患专项排查整治行动清单.pdf
- 2026年健康义普急救.pptx
- 2025—2026学年度四川省广元市苍溪县九年级上学期期末考试历史试题(含答案).docx
- 2025—2026学年度四川省泸州市合江县马街中学校九年级上学期期末历史试题(含答案)(九上_九下第二单元).docx
- 2025—2026学年度云南省曲靖市宣威市民族中学等校联考九年级上学期期末模拟历史试题(含答案).docx
- 2025-2026学年科普版七年级下册英语Unit7 Being a Smart Shopper素养测评卷(含答案).docx
最近下载
- 银行客户经理财富管理业务操作手册.docx VIP
- 广美附中2024年数学试卷.pdf
- 非处方药目录(全集).doc
- 注册会计师-税法-基础练习题-第六章城市维护建设税法和烟叶税法-第三节教育费附加和地方教育附加.docx VIP
- 俄语视听说基础教程3全套课件.pptx
- 2025年《可爱的中国》新疆地方教材(小学版)教案范文.docx VIP
- 常州大学《数据结构与算法分析》2022-2023学年期末试卷.doc VIP
- 常州大学《数据结构》2021-2022学年期末试卷.doc VIP
- 常州大学《数据结构与算法分析》2021-2022学年期末试卷.doc VIP
- 注册会计师-税法-基础练习题-第六章城市维护建设税法和烟叶税法-第二节烟叶税法.pdf VIP
原创力文档

文档评论(0)