Html超文本标记语言
基本格式
根语言<html>
<head>
</head>
<body>
</body>\\body与head平级
</html>
标签
\\新建文件夹
\\src代表资源的路径
\\双标签
标题<title> </title> h1~h6
段落: <p> </p>
视频:<video> </video>
导航:<a> </a>//常用:超链接:<a href=" ">百度一下</a>
容器:<div> </div>
样式:<style> </style>
表单:<form> </form>
表单元素:<input/> \\单标
按钮 <button> </button>
\\单标签
图片:<img/>
功能:<hr/>\\水平线
<br/> \\换行
表单:<form>\\问卷调查
\\标签套标签
如何让视频自动播放
<video> 标签内,设置为自动播放的 video 元素autoplay 属性
\\很多这个浏览器它是不支持什么有声播放的,必须静音掉以后,它才能够自动播放
<h><div><p>都可做容器,区别?
<h>标签字体会变大,<div><p>标签不会
修饰页面
字体:大小:font-size \\浏览器默认字体大小14px
颜色:color
粗细:font-weight \\bold加粗
背景:颜色:backgroud-color
宽度:width \\50%代表屏幕宽度的百分之50
高度:height
图片:backgroud-image
重复:backgroud-repeat
位置:margin
居中:text-align: center;
单独修饰某一行
id属性一定要唯一 \\一定要加#表示id