HTML标签

<html></html>                            超文本文件
<head></head>                            起始
<title></title>                         网页标题
<body></body>                            身体部分
<p align="center"></p>                    段落居中
<center></center>                        居中标签
<b></b>                                    加粗标签
<i></i>                                    倾斜标签
<u></u>                                    下划线标签
<s></s>                                    删除线标签
<big></big>                                放大标签
<small></small>                            缩小标签
<size></size>                            字体从1到7
<pro></pro>                             空一行
<font color="字体颜色"></font>            字体颜色
<hr color="red" size=粗细"10" width宽="100可以写%"></hr>            水平线
<sup></sup>                                上标
<sub></sub>                                下标
&nbsp;                                    空格
<img src="图片路径" width=“宽”height=“高” alt="无法正常显示的时候的提示" >
                        相对路径 :同级目录加图片名字
                            :上级目录../加图片名字
                            :下级文件夹名字加图片名字
                        绝对名字:图片属性加图片名字
<ul></ul>                                无序列表
square                                    正方形
circle                                    空心圆
disc                                    小圆点
<li></li>                                无序列表内容
<ol type="1" reversed 倒叙 start="3例如从3 开始往下"></ol>                有序列表
<dl></dl>                                定义列表
<dt></dt>                                被定义内容
<dd><dd>                                定义内容
<table border="1"边框大小 width="500"边框的长
 height="500"边框的高  bgcolor="red"背景颜色
cellspacing="单元格间距" background="背景图片"
 bordercolor="颜色" 表格框颜色
cellpadding="内容到边框的距离"
clospan="" 横向合并 rowspan=“”纵向合并>
<caption>表格标题</caption><tr><td>
</td></tr>
</table>                                表格
<a href="地址">可以加入图片</a>                超链接
<form></form>                            表单
<input type="text" placeholder="提示内容" maxlength>            文本框
<input type="password" size="最大长度">                    密码框
<input type="radio" checked默认>            单选框
<input type="checkbox" checked默认>        复选框
<input type="file">                            文件域
<input type="button" value="名字">        普通按钮
<input type="submit" value="名字">                提交按钮
<input type="reset" value="名字">                    重置按钮
按钮style可以改大小background是颜色
<textarea cols="长" rows="高" maxlength="最大限度">
</textarea>                            文本框
<select><option selected默认></option>
</select>                        下拉框
<align="left左 center居中 rtght右">水平对齐
<valign="top上" middle居中 bottom下>
<style="属性:属性值;">                    行内式
<style>标签{属性:属性值;要再加就加入-}</style>                    内嵌式
<link href="引入的文件" rel="stylesheet"></link>
<span>辅助使用css</span>
{color:red;}                    颜色
{font-size:50px;}                字号
{font-family:楷体;}(字体)
{font-weight:bold;}(加粗)
{font-style:italic;}(倾斜)
{text-decoration:underline;}(下划线)
{text-decoration:overline;}(上划线)
{text-decoration:line-through;}(删除线)
{text-decoration:none;}(去掉下划线)
{border-radius:100px;border:0;}圆角属性
{margin-left左 right右:50px}内容到边框的距离
body选择器  设置背景
全局选择器*
加class="a"是类选择器.a{属性}
id=“b”选择器 唯一属性 #b{属性}
<style>a:link{color:black;}</style>超链接的颜色
<style>a:hover{color:blue;}</style>鼠标放上去以后的颜色
<style>a:active{color:red;}</style>被选中了以后的颜色
<style>a:visited{color:yellow;}被访问以后的颜色
<style>a:link{text-decoration:none}</style>去除下划线
<style>a:hover{text-decoration:underline;}</style>
鼠标放上去的时候有下划线
<marquee direction 滚动方向="up上 down下 left左 right右 "
 behavior滚动方式="alternate 上下的滚动 scroll 连续滚动默认选项
 slide 滚动一次" scrollamount="100">
</marquee>scrollamount是滚动速度
文字滚动
选择器的高低
行内>ID选择器>类选择器>标签选择器>全局选择器
原文地址:https://www.cnblogs.com/lishanglin/p/13357262.html