HTML:HyperText Markup Language
一种标记语言(一套标记标签) (标记,标签,元素)
<!---注释内容---->注释写法
<!DOCTYPE html>:
h5声明文档,不区分大小写
<html>:
根标签,一个页面只能出现一次,页面所有内容都要包含在这个标签中
<head>:
头部标签,该标签的内容不会显示在浏览器上,帮助浏览器解析网页
<meta charset="utf-8">
设置页面编码格式
<meta name="keywords" content="Java,h5,css3/>
搜索关键字,对浏览器搜索引擎比较友好
<meta name="description" content=“学习网”> 网站描述
<title></title>:网页标题
<link real="stylesheet" type="text/css" href="../css/index.css"/>
css连接样式表
<style>
定义网页内部样式表
h1{
color:red;
background-color:blue;
text-align:center; 文本水平居中
}
</style>
<script type="text/javascript" src="../js/login.js">
只要放在html标签内就可以
1. script写脚本
2. 加载外部js文件(type="text/javascript" src="../js/login.js")
3.
alert("hh");提示框弹出
</script>
</head>
<body background="" style="background-repeat:设置平铺">
<p></p>段落
body中的特殊符号:
1.  ;空格
2. > ;大于
3. < ;小于
4. ©;版权号
<h1-h6></h1-h6>:6个字号的标题
<hgroup></hgroup>:h1只能用一次,如果一定用2个h1那么必须用hgroup包含起来,连着用标题标签也需要包含起来
<br/>换行标签
<hr/>水平线
<pre>保留原格式</pre>
文本行内标签:
1. <strong>这是一个粗体标签</strong>(<b>已经弃用)
2. <i>斜体</i>
3. <small>字体缩小</small>
4. <big>字体放大</big>
5. <sub>下标记 <sup>上标记
6. <ins>文字下划线 <del>删除标签(字上一条横线)
7. <a href="超链接" target=“_self”>图片</a>\
_self 默认在同一窗口中打开连接页面 _blank新建窗口
锚链接(页内跳转):给其他标签设置id或name属性,id用href="#id"
<img src="路径" alt="路径加载失败提示" title="鼠标放上的提示" height="高度" width="宽度" />
ul标识无序列, li标识行
<ul type="square/disc/circle">方体/实心圆/空心圆
<li></li>
</ul>
ol 标识有序列表 type="写什么就是什么开头"
dl 自定义列表
dt用来标识词条
dd用来对词条的解释
</body>:给用户看的内容主体
</html>