目录
1,添加图标
2.有用的网站
3.基础标签
<h>:标题
p:段落
a: href 超链接
imag : src
link rel:也是src ---------->网页图标
title ---------------->网页标题
4 属性
任何一个标签都有的属性
class id style :行内样式 title:元素额外信息
5 a标签 的属性
href target : "_black“重新打开页面
_parent _self _top 不会有新的页面
锚点 a name="top” a target="#top"
framename
6 img
src : url:统一资源定位符
alt ;当图片 不存在的时候, 显示的文字
height width
7单位
px %
8 标签分类
块元素 前后有换行符,有宽高 p div h
行内元素 没有 ,不能 a
行内块元素 没有 ,可以 img
9 style ="width:20px;height:20px"
10元素转换:
行内---------》块 display:block
块------------》行内块 display: inline_block
块------------》行内 display: inline
11 span 行内元素
12 列表
ul li 无序
ol li 有序
ul 块元素 li 块元素
list-style:none 去掉 点(ul加)
把li从 竖线变成 横线 : 就是把 li 的块 变成 行内块 display:inline-block(li加)
13 a 去下划线 text-decoration :none
14元素隐藏
(1) display:none (不存在了)不占位隐藏
(2) visibility:hidden (位置存在) 占位隐藏
在 块元素 可以用 , 其他的不知道
15表格 table 块元素 th tr td
table th tr td
tr th
tr td
table border=1px 边框宽度 cellpadding=0px 内容和边框的距离 cellspace=0单元格之间距离
td align =center left right
16 div 块元素
17表单 form
form
input
input type= text ,button, radio ,checkbox input------>行内块 不能换行,嫩设置大小
text
button
radio name 单选 都得一样 checked :checked;
password
date
datetime
checkbox
hidden 用 隐藏域
下拉列表 select option
textarea cols="100" rows="100"