meta标签
属性:charset 可以设置 字符集的解码
name = 'keywords' content = '网站的关键字,让搜索引擎进行解锁的'
name = 'description' content =';网站的简介
http-equiv = 'refresh' content = '要等待的时间数;时间到后跳转的网站
iframe标签(引用外部的文件)内联框架:
属性:
src='要引用文件的路径'‘
超链接:
属性:
href = ’一个完整的网址,或者一个路径'
target = '_self' 在当前窗口打开(默认值)
target = '_blank' 在新的窗口打开
块元素和内联元素:
块元素:div p h1-h6 ul li
内联元素:(行内元素) a img span iframe
超链接可以包含任意元素,但是不能包含它本身
p不可以包含快元素
css:
注释方法 /**/
link 引入css样式的标签
属性:
rel = 'stylesheet' type='test/css' href = 'css/文件全名
常用的选择器:
注:在
使用选择器
元素选择器:
p {color:red;}
类选择器:
.p{color:red;}
id选择器:
#p{color:red}
选择器分组(并集选择器)
p,.p,#p{color:red}
交集选择器:(只有满足了里面所有的条件
span .p3{
color:red
}
子元素和后代元素选择器:
后代元素选择器:
祖先标签,后代标签{color:yellow}
子元素标签:
父元素 > 子元素 { color:red}
伪类选择器:
a:link 正常连接
a:visited (访问过的链接)
a:hover ((鼠标划过的链接)
a:active (正在点价的链接)
-:focus (获取焦点)
-before(指定元素前)
-after (指定元素后)
-;:selection 选中的元素
伪元素:
first-letter :第一个字
first-line :第一行文字
before:
属性:
content: '你要输入的内容'