批改状态:合格
老师批语:
*HTML是一个超文本标签语言(英语:HyperText Markup Language,简称:HTML)是一种用于创建网页的标准标记语言
HTML运行在浏览器中,并且由浏览器中解析,使得我们是不会看到代码的源码标签
HTML的标列表签由无序和有序组成
无序列表,由<ul>标签定义,实例如下:
<!DOCTYPE html><html><head><mate charest="utf-8" /><meta name="keywords" content="" /><title>HTML标签</title></head><body><ul><li>列表一</li><li>列表二</li><li>列表三</li></ul></body></html>
有序列表,由<ol>标签定义,实例如下:
<!DOCTYPE html><html><head><mate charest="utf-8" /><meta name="keywords" content="" /><title>HTML标签</title></head><body><ol><li>列表一</li><li>列表二</li><li>列表三</li></ol></body></html>
自定义标签由<dl>和<dt>组成,实例如下:
<!DOCTYPE html><html><head><mate charest="utf-8" /><meta name="keywords" content="" /><title>HTML标签</title></head><body><dl><dt>列表的标题</dt><dd>列表的描述</dd></dl></body></html>
表单在实际开发中是非常常用的,是收集用户填写的信息并将其提交给服务器
form表单有两个属性,action是表单提交地址,而method则是表单提交的方式
method提交方式有两种,get和post,两者的区别在于
提交的内容的长度:
(1)get不能超过2KB
(2)post无限制;
安全性:
(1)get将内容拼接到字符串后面,不够安全
(2)post是隐形的,所以我们基本比较重要的数据都是用post提交的
<!DOCTYPE html><html><head><mate charest="utf-8" /><meta name="keywords" content="" /><title>表单作业</title></head><body><h3>用户注册</h3><form action="" method="get"><label for="username">用户名</label><input type="text" id="username" name="username" value="admin"><label for="email">邮箱</label><input type="text" id="email" name="email" value="923617189@qq.com"><label for="password">密码</label><input type="password" id="password" name="password" value="123456"><label for="">性别:</label><input type="radio" name="gender" value="male" id="male" /><label for="male">男</label><input type="radio" name="gender" value="female" id="female" /><label for="female">女</label><input type="radio" name="gender" value="secret" id="secret" checked="" /><label for="secret">保密</label><label for="">兴趣:</label><input type="checkbox" name="hobby" value="game" id="game" /><label for="male">游戏</label><input type="checkbox" name="hobby" value="shoot" id="shoot" /><label for="shoot">摄影</label><button type="sumbit">提交</button></form></body></html>
今天的课程知识点就在这,后续复习用iframe写一个简单的小后台; 理解css优先级,并实例图示演示元素样式的四个来源会在后面作业中深入探究
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号