ACCP8.0 HTML标签
第一章
1、HTML超文本标记语言
2、网页<html></html>
3、网页头部<head></head>
4、网页标题<title></title>
5、网页主体<body></body>
6、DOCTYPE声明3种级别:
(1)Strict
严格类型
(2)Transitional
过渡类型
(3)Frameset
框架类型
7、网页摘要标签
8、字符编码:
gb2312
简体中文
ISO-885901
纯英文
big5
繁体
UTF-8
国际通用编码
9、W3C 万维网联盟
10、标题标签
<h1>一级标题</h1>
<h2>二级标题</h2>
<h3>三级标题</h3>
<h4>四级标题</h4>
<h5>五级标题</h5>
<h6>六级标题</h6>
11、段落<p></p>
12、换行<br/>
13、水平线<hr/>
14、字体加粗<strong></strong>
15、斜体字<em></em>
16、注释<!--注释内容-->
17、特殊符号
空格: 大于号:> >
小于号:< 引号:" <
版权符号:© ©
18、图像标签
<img src=“图片地址”alt=“图像的替代文字”title=“鼠标悬停提示文字”width=“图片宽度”height=“图片高度”/>
19、链接标签
<a href=“链接地址”target=“目标窗口位置”>链接文本或图像</a>
Target
常用取值:_self
(自身窗口)和_blank
(新建窗口)
20、锚链接
<a name="market">`目标位置乙</a>`
<a href="#market">`当前位置甲</a>`
21、功能性链接
<a href="mailto:电子邮箱地址">联系我们</a>
第二章
22、无序列表 Type
属性取值:disc
实体圆心square
实体方心 circle空心圆
<ul type=“”>
<li>列表项</li>
</ul>
23、有序列表 Type
属性取值:1
数字 A/a
大/小写字母 I/i
大/小写罗马数字
<ol type=“”>
<li>列表项</li>
</ol>
24、定义列表
<dl>
<dt>标题</dt>
<dd>内容</dd>
</dl>
25、表格
<table border=“ ”>
<tr>
<th>标题</th>
</tr>
<tr>
<td>内容</td>
</tr>
</table>
26、 表格跨列属性colspan
表格跨行属性rowspan
27、视频元素:controls
手动控制播放 autoplay
自动播放 loop
循环播放
1、<video src=“视频路径” controls=“controls”></video>
2、<video controls><source src=“视频路径”></video>
28、音频元素:
1、<audio src=“视频路径” controls=“controls”></audio>
2、<audio controls><source src=“音频路径”></audio>
29、HTML5结构元素
<header></header>
标题头部区域的内容(用于页面或页面中的一块区域)
<footer></footer>
标记脚部区域的内容(用于整个页面或页面的一块区域)
<section></section>
Web页面中的一块独立区域
<article></article>
独立的文章内容
<aside></aside>
相关内容或应用(常用于侧边栏)
<nav></nav>
导航类辅助内容
30、iframe内联框架
<iframe src=“引用页面地址”name=”框架标识名”… ></iframe>
第三章
31、表单
<form method=“提交方式get/post” action=“提交页面”>
32、表单元素:
文本框:
<input type=“text” name= “元素名称”value=“初始值”size=“初始宽度”>
密码框:
<input type=“password” name= “元素名称”value= “初始值” maxlength= “最大字符数”>
单选按钮:<input type= “radio” name= “元素名称”value= “值” >
复选框:<input type= “checkbox” name= “元素名称” value= “值” checked= “checked”>
列表框:<select>
<option value= “值” selected= “selected”>显示文本</option>
<option value= “值”>显示文本</option>
</select>
提交按钮:<input type= “submit” name= “元素名称” value= “显示文字”>
重置按钮:<input type= “reset” name= “元素名称” value= “显示文字”>
普通按钮:<input type= “button” name= “元素名称” value= “显示文字”>
图片按钮:<input type= “image” name= “元素名称” src= “图片地址” >
多行文本域:
<textarea name= “元素名称” cols= “显示列宽” rows= “显示行数”>内容</textarea>
文件域:
<form action=“” method= “” enctype=”multipart/form-data”>
<input type= “file” name=“元素名称” >
</form>
邮箱:<input type= “email” name=“元素名称” >
网址:<input type= “url” name=“元素名称” >
数字:<input type= “number” name=“元素名称”min=“ ”max=“ ”step=“ ” >
滑块:<input type= “range” name=“元素名称”min=“ ”max=“ ”step=“ ” >
搜索框:<input type= “search” name=“元素名称” >
隐藏域:<input type=“hidden” name=“元素名称” value=“值”>
33、表单只读属性:readonly=“readonly
”
34、表单禁用属性:disabled=“disabled
”
35、域:<fieldset></fieldset>
域标题:<legend></legend>
36、表单元素标注:<label for= “元素id名称">文本</label>
37、表单初级验证方法:placeholder
(文本框提示)required
(文本框填写内容不为空)
Pattern
(文本框输入的内容是否与自定义的正则表达式相匹配)
第四章
38、定义样式信息
<style type=”text/css”></style>
39、链接外部样式表
<link href=“样式文件路径” rel=“stylesheet” type=“text/css”>
40、导入外部样式表
<style type=”text/css”>
@import url(“样式文件路径”)
</style>
41、样式优先级
行内样式
>内部样式表
>外部样式表
ID选择器
>类选择器
>标签选择器
42、高级选择器
(1)层次选择器
(2)结构伪类选择器
(3)属性选择器
第五章
43、<span>
标签
44、字体样式
font-family
:字体类型
font-size:
字体大小
font-style:
字体风格
font-weight:
字体粗细
font:
设置所有字体属性
45、文本属性
color:
文本颜色
text-align:
水平对齐方式left
左边right
右边 center
居中 justify
两端对齐
text-indent
:首行缩进
line-height:
文本行高
text-decoration:
文本装饰 none
无 underline
下划线 overline
上划线 line-through
删除线
blink
文本闪烁
vertical-align:
垂直对齐方式
文本阴影:text-shadow:color
x
轴位移 y
轴位移 模糊半径;
46、超链接伪类
a:link
单击访问前
a:visited
单击访问后
a:hover
鼠标悬浮上
a:active
鼠标单击未释放
47、网页布局<div></div>
标签
48、背景属性
background-color:
背景颜色
background-image:
背景图像
background-repeat: repeat
水平,垂直两方向平铺
background-repeat: no-repea
t不平铺
background-repeat: repeat-x
水平方向平铺
background-repeat: repeat-y
垂直方向平铺
background-position
背景定位
background-size
背景尺寸
49、列表样式
列表项符号list-style-type:none
无 disc
实心圆 circle
空心圆 square
实心正方形 decimal
数字
列表项图片list-style-image:url
(图片路径);
放置列表项list-style-position:inside
放置文本以内 outside
文本左侧,文本以外
50、CSS3渐变
linear-gradient
(渐变方向,颜色1,颜色2, …)
第六章
51、border边框
border-top-color:
上边框颜色
border-right-color:
右边框颜色
border-bottom-color:
下边框颜色
border-left-color:
左边框颜色
border-color:
边框颜色
border-top-width:
上边框粗细
border-right-width:
右边框粗细
border-bottom-width:
下边框粗细
border-left-width:
左边框粗细
border-width:
边框粗细
border-top-style:
上边框样式
border-right-style:
右边框样式
border-bottom-style:
下边框样式
border-left-style
:左边框样式
border-style:
边框样式
border:
边框粗细 边框颜色 样式
52、margin外边距
margin-top
上外边距
margin-right
右外边距
margin-bottom
下外边距
margin-left
左外边距
margin
边距
53、padding内边距
padding-top
上内边距
padding-right
右内边距
padding-bottom
下内边距
padding-left
左内边距
padding
内边距
54、盒子模型总尺寸=边框宽度+内边距+外边距+内容宽度
55、box-sizing盒子模型布局
content-box:
默认值
border-box:
盒子的宽度或高度等于元素内容的宽度与高度
inherit:
此值使元素继承父元素的盒子模型模式
56、圆角边框:border-radius
57、圆形:border-radius:50%
(可制作半圆形、扇形)
58、盒子阴影:box-shadow:inset
x
轴位移 y
轴位移 模糊半径 颜色;
第七章
59、display属性
display:block
块级元素默认值
display:inline
内联元素默认值
display:none
元素不显示
60、float浮动
float:left
元素向左浮动
float:right
元素向右浮动
float:none
元素不浮动,默认值
61、clear清除浮动
clear:left
在左侧不允许浮动元素
clear:right
在右侧不允许浮动元素
clear:both
在左、右两侧不允许浮动元素
clear:none
默认值,允许浮动元素出现在两侧
62、overflow溢出处理
overflow:visible
默认值,多的内容出现在盒子之外
overflow:hidden
多的内容不可见
overflow:scroll
内容会被修剪,浏览器会出现滚动条
overflow:auto
如果内容被修剪,出现滚动条
第八章
63、position定位
position:static
默认值,没有定位
position:relative
相对定位,以标准流的排版方式为基础,然后使盒子在他原位置进行偏移,相对定位的盒子仍在标准流中
position:absolute
绝对定位,以父元素为基准进行定位,绝对定位会脱离标准流
position:fixed
固定定位,是以浏览器窗口为基准进行定位,当浏览器拖动时他位置依然保持不变
64、z-index 层叠
z-index
属性用于调整元素定位时重叠上下的位置
65、透明设置
opacity:x
(x值为0-1,值越小越透明) 如:opacity:0.4;
filter:alpha(opacity=x)
(x值为0-100,值越小越透明) 如:filter:alpha(opacity=40);
第九章
66、变形函数
transform:[transform-function]*;
常用的transform-function:
translate():
平移函数 scale():
缩放函数 rotate()
:旋转函数 skew():
倾斜函数
CSS3 3D变形函数:translate3d():
平移函数 scale3d():
缩放函数 rotate3d():
旋转函数
2D变形
2D位移:translate
(x轴,y轴) 2D缩放:scale
(x轴,y轴)
2D倾斜:skew
(x轴,y轴) 2D旋转:rotate
(x轴,y轴)
67、过渡属性
transition:[transition-property transition-duration transition-timing-function
transition-delay]*
**transition
**主要包括以下四个属性值:
transition-property:
指定过渡或动态模拟的CSS属性
transition-duration:
指定完成过渡所需要的时间
transition-timing-function:
指定过渡函数
transition-delay:
指定过渡开始出现的延迟时间