行吟阁 2019-10-22
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>多媒体元素</title>
</head>
<body>
<img src="images/accept.png" alt="确认">
<br>
<img src="images/apple.png" alt="苹果">
<a href="http://edu.51cto.com" target="_blank">打开页面</a>
<hr>
<!-- 图片链接 -->
<a href="http://edu.51cto.com" target="_blank">
<img src="images/accept.png" alt="确认打开">
</a>
<hr>
<!-- 加载视频 -->
<video src="images/timessquare.webm" width="360" height="240" controls autoplay muted></video>
<h2>preload预加载并指定画面</h2>
<video src="images/1-6.mp4" width="360" height="240" controls preload="metadata" poster="images/2019.png"></video>
<!-- 兼容性问题 -->
<video width="360" height="240" controls preload="metadata" poster="images/2019.png">
<source src="images/timessquare.webm" type="video/webm">
<source src="images/timessquare.ogv" type="video/ogv">
<source src="images/timessquare.mp4" type="video/mp4">
</video>
</body>
</html>
表格的现在还是较为常用的一种标签,但不是用来布局,常见处理、显示表格式数据。在HTML网页中,要想创建表格,就需要使用表格相关的标签。<table> <tr> <td>单元格内的文字</td> ...
一个客户要求给网站添加一个背景音乐,我用的是html5添加网页背景音乐的代码,在此记录一下以后有用。html5方法二:<videocontrols=""autoplay=""name="media&q