67.【HTML 5】(二)

简介: 67.【HTML 5】

8.表格标签

1.为什么要使用表格?
(1).简单通用
(2).结构稳定
2.基本结构
(1).单元格,行,列,跨行,跨列
<table> 表格
<caption>标题</caption>
<tr> 行
<td>表头</td>  列
跨行
<td  rowspan="2"></td>
跨列
<td colspan="3"></td>
</tr>
</table>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>表格</title>
</head>
<body>
<!--表格(Table)
行 :row <tr>
列 :description(table ) (td)
-->
<table border="1px">
  <tr>
<!--    colspan 跨列-->
   <td colspan="3">学生成绩</td>
  </tr>
<!--  rowspan-->
  <tr>
    <td rowspan="2">吉士先生</td>
    <td>2-3</td>
    <td>2-4</td>
  </tr><tr>
  <td>3-1</td>
  <td>3-2</td>
</tr>
  <tr>
    <td rowspan="2">李明</td>
    <td>3-2</td>
    <td>3-3</td>
  </tr>
  <tr>
    <td>3-1</td>
    <td>3-2</td>
  </tr>
</table>
</body>
</html>

<table border="1"align="center" bgcolor="#deb887">
      <caption>我是标题</caption>
      <tr>
        <th>表头1</th> <th>表头1=2</th> <th>表头1=3</th>
      </tr>
      <tr>
        <td>内容1</td><td>内容2</td><td>内容3</td>
      </tr>
      <tr>
        <td>内容4</td><td>内容5</td><td>内容6</td>
      </tr>
    </table>

9.媒体元素

1.video 音频(视频)
音频和视频
src: 视频地路径
control: 进度条
autoplay: 自动播放
<video src="../resources/Video/1..mp4" controls autoplay></video>
2.audio 音乐
src: 视频地路径
control: 进度条
autoplay: 自动播放
muted: 静音
loop: 循环
<audio src="../resources/Video/2.m4a" controls autoplay></audio>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>视频学习</title>
</head>
<body>
<!--音频和视频
src: 视频地路径
control: 进度条
autoplay: 自动播放
-->
<!--<video src="../resources/Video/1..mp4" controls autoplay></video>-->
<audio src="../resources/Video/2.m4a" controls autoplay></audio>
</body>
</html>

10.页面结构分析

1.页面结构分析操作:
<head><h1>网页头部</h1></head>
<section>
  <h1>网页主题部分</h1>
</section>
<footer><h1>网页脚部</h1></footer>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>页面结构</title>
</head>
<body>
<head><h1>网页头部</h1></head>
<section>
  <h1>网页主题部分</h1>
</section>
<footer><h1>网页脚部</h1></footer>
</body>
</html>

11.iframe内联框架

ifname必写项目:
<iframe src=""  name="hello" frameborder="0" ></iframe>
1.网页里面再内嵌一个网页
src: 地址
w-h 宽度和高度
name: 相当于一个标签,与target搭配超链接跳转
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>内联框架</title>
</head>
<!--
src: 地址
w-h 宽度和高度
-->
<body>
<iframe src=""  name="hello" frameborder="0" width="1000px" height="800px"></iframe>
<a href="https://blog.csdn.net/qq_69683957?spm=1000.2115.3001.5343" target="hello">点击我跳转</a>
</body>
</html>

12.表单语法

必写:
<form action="" method=""></form>
name:抓包用的。。。。。。。。
text中的value代表: 文本框的内容
action :表单提交地位置,可以是网站,也可以是一个请求处理地位
method : post|get 提交方式
get方式提交: 我们可以再url中,看到我们提交地信息,不安全,能够看到账号和密码
pos方式提交: 我们看不到密码和账号,比较安全。
`
1.form_data
<form action="" method="">  表单
<p>名字: <input type="text" name="Username"></p>
<p>密码: <input type="password" name="Passworld"></p>
<p>
  <input type="submit" name="提交">
  <input type="reset" name="重置">
</form>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>表单</title>
</head>
<body>
<!--
action :表单提交地位置,可以是网站,也可以是一个请求处理地位
method : post|get 提交方式
get方式提交: 我们可以再url中,看到我们提交地信息,不安全,能够看到账号和密码
pos方式提交: 我们看不到密码和账号,比较安全。
`
-->
<h1>注册窗口</h1>
<form action="1.我的第一个网页.html" method="post">
<!--文本输入框-->
<p>名字: <input type="text" name="Username"></p>
<p>密码: <input type="password" name="Passworld"></p>
<p>
  <input type="submit" name="提交">
  <input type="reset" name="重置">
</p>
</form>
</body>
</html>

相关文章
|
10月前
|
移动开发 前端开发 JavaScript
HTML
HTML
56 0
|
9月前
|
移动开发 API HTML5
什么是html
什么是html
64 4
|
前端开发
HTML详解连载(7)
HTML详解连载(7)
|
移动开发 前端开发 UED
HTML详解连载(2)
HTML详解连载(2)
|
10月前
|
弹性计算 前端开发 容器
HTML详解连载(8)
HTML详解连载(8)
|
移动开发 UED HTML5
HTML实用小技巧🚀🚀
HTML实用小技巧🚀🚀
|
移动开发 搜索推荐 HTML5
什么是HTML?
互联网上的应用程序被称为Web应用程序,Web应用程序使用Web文档(网页)来表现用户界面,而Web文档都遵循标准HTML格式。HTML5是最新的HTML标准。之前的版本HTML4.01于1999年发布。20多年过去了,互联网已经发生了翻天覆地的变化,原有的标准已经不能满足各种Web应用程序的需求。本篇带大家一起了解HTML的基础,介绍HTML的定义及历史概貌。
117 0
什么是HTML?
|
数据安全/隐私保护
HTML汇总
HTML汇总 1列表 2单词含义 3图片标签 4视频标签
89 0
|
存储 移动开发 前端开发
HTML总结(一)
详细介绍一些HTML基础知识,帮助大家打好基础
506 2
HTML总结(一)
|
人工智能 前端开发 算法
html的简单应用(一)
html的简单应用
397 0

热门文章

最新文章

相关实验场景

更多
AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等