HTML总结
2020-07-08 17:26:32 0 举报
AI智能生成
大学生Web HTML5复习总纲
作者其他创作
大纲/内容
HTML总结
HTML的基本结构
网页的基本结构
标题标签 <h1-6>
段落标签 <p>
换行标签 </br>
水平线标签 </hr>
注释 <!-- -->
特殊符号
空格 & nbsp
版权标识 & copy
斜体标签 <em>
粗体标签 <strong>
图像标签
img
src:图片地址
../ 上一级目录
alt:图像代替的文字
title:鼠标悬停提示文字
超链接
锚链接
1、需要一个标记
2、跳转到标记
3、#为标记符号
功能性链接
邮箱
QQ推广
行内元素和块元素
列表
有序列表 <ol>
无序列表 <ul>
自定义列表 <dl>
<dt> 列表名称
<dd> 列表内容
表格
行 <tr>
列 <td>
跨行 <td rowspan=\"跨行数\">
跨列 <tr colspan=\"跨列数\">
媒体元素
音频 <audio src=\"\">
视频 <video src=\"\">
controls:控制条
controls autoplay:自动播放
网页的简单布局
头部 header
主体 section
脚部 footer
内联框架
<iframe src=\"\" name=\"\"></iframe>
name:框架标识符
表单
form action=\"\" method=\"[post/get]\"
文本框:input type=\"text\"
密码框:input type=\"password\"
单选框:input type=\"radio\"
多选框:input type=\"checkbox\"
按钮:input type=\"button\"
下拉框:select name=\"\"
option value=\"\"
滑块:input type=\"range\" max=\"\" min=\"\"
搜索框:input type=\"search\"
提交:input type=\"submit\"
重置:input type=\"reset\"
文本域:textarea
文件域:input type=\"file\"
URL验证:input type=\"url\"
增强鼠标可用性:label for=\"\"----input id=\"\"
。。。
表单应用
隐藏域 hidden
只读 readonly
禁用 disable
表单的初级验证
用户提示 placeholder
非空判断 required
正则表达式 pattern
0 条评论
回复 删除
下一页