当前位置:网站首页>Block elements, inline elements ( elements, span elements)
Block elements, inline elements ( elements, span elements)
2022-08-02 06:19:00
【Colorful Great Iron Ape】
目录
HTML<div>元素
HTML区块元素:
eg:<h1><p><ul><table>
HTML内联元素:
eg:<b>加粗 <td><a><img>
Specifically click on the link below
(27条消息) HTML 区块元素_csdn123t的博客-CSDN博客_html 区域元素
HTML<div> 元素
- HTML <div> 元素是块级元素,它可用于组合其他 HTML 元素的容器.
- <div> 元素没有特定的含义.除此之外,由于它属于块级元素,the browser willDisplay line breaks before and after.
- 如果与 CSS 一同使用,<div> Elements can be used for large blocks of content设置样式属性.
- <div> Another common use of elements is文档布局.它取代了使用表格定义布局的老式方法.使用 <table> 元素进行文档布局不是表格的正确用法.<table> 元素的作用是显示表格化的数据.
具体代码实现:
<div style="border:1px dashed red;width:500px;margin-bottom:50px;position: relative;left: 400px;">

The same we will the table below、The list is also divided into a block.
完整代码如下 :
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>My first web page</title>
</head>
<body>
<div style="border:1px dashed red;width:500px;margin-bottom:50px;position: relative;left: 400px;">
<h2>LY python 练习</h2>
<h3>hahahaahhahhahahaha</h3>
<p>hello world ,练习web加油加油,<span style="color:red">LY</span></p>
<a href="https://blog.csdn.net/weixin_47314602?type=blog" target="_blank">小渣渣主页面</a>
<br/>
<img src="C:\Users\1\Pictures\Saved Pictures\aa.jpg" width="100">
</div>
<div style="border:1px dashed red;width:500px;margin-bottom:50px;position: relative;left: 400px;">
<table border="1" cellpadding="5">
<tr>
<th>data1</th>
<th>data2</th>
<th>data3</th>
</tr>
<tr>
<td>11</td>
<td>22</td>
<td>33</td>
</tr>
<tr>
<td>111</td>
<td>222</td>
<td>333</td>
</tr>
</table>
<ol>
<li>情深缘浅</li>
<li>情非得以</li>
<li>纸短情长</li>
</ol>
<ol start="10">
<li>说散就散</li>
<li>绿色</li>
<li>三生三世</li>
</ol>
<ul>
<li>我曾</li>
<li>鼓楼先生
<ul>
<li>汉斯</li>
<li>男</li>
<li>32</li>
</ul>
</li>
<li>寒鸦少年</li>
</ul>
</div>
</body>
</html>
展示图:

span元素
- HTML <span> 元素是内联元素,可用作文本的容器
- <span> 元素也没有特定的含义.
- 当与 CSS 一同使用时,<span> element can be used forPart of the text sets style properties.
Add to this piece of codespan
<p>hello world ,练习web加油加油,<span style="color:red">LY</span></p>
<div style="border:1px dashed red;width:500px;margin-bottom:50px;position: relative;left: 400px;">
<h2>LY python 练习</h2>
<h3>hahahaahhahhahahaha</h3>
<p>hello world ,练习web加油加油,<span style="color:red">LY</span></p>
<a href="https://blog.csdn.net/weixin_47314602?type=blog" target="_blank">小渣渣主页面</a>
<br/>
<img src="C:\Users\1\Pictures\Saved Pictures\aa.jpg" width="100">
</div>
We can see the display imageLYThis place turns red.


边栏推荐
- Google Chrome(谷歌浏览器)安装使用
- JUC(二)原子类:CAS、乐观锁、Unsafe和原子类
- MYSQL 唯一约束
- Navicat报错:1045-Access denied for user [email protected](using passwordYES)
- 51单片机外设篇:DS18B20
- 复盘:图像饱和度计算公式和图像信噪(PSNR)比计算公式
- MySQL如何创建用户
- el-input can only input integers (including positive numbers, negative numbers, 0) or only integers (including positive numbers, negative numbers, 0) and decimals
- [Digital IC hand-tear code] Verilog fixed priority arbiter | topic | principle | design | simulation
- Android studio connects to MySQL and completes simple login and registration functions
猜你喜欢

MYSQL 唯一约束

Mycat2.0搭建教程

Cyber Security Learning - Intranet Penetration 4

Redis-集群模式(主从复制模式,哨兵模式,集群化模式)

Say good woman programmers do testing have an advantage?More than a dozen interview, abuse of cry ~ ~ by the interviewer

测试环境要多少?从成本与效率说起

go项目的打包部署

Redis-cluster mode (master-slave replication mode, sentinel mode, clustering mode)

Android Studio 实现登录注册-源代码 (连接MySql数据库)

The company does not pay attention to software testing, and the new Ali P8 has written a test case writing specification for us
随机推荐
自动化运维工具——ansible、概述、安装、模块介绍
Go语学习笔记 - grpc serverclient protobuf 从零开始Go语言
说好的女程序员做测试有优势?面试十几家,被面试官虐哭~~
LeetCode刷题系列 -- 787. K 站中转内最便宜的航班
Redis-----非关系数据库
ELK日志分析系统
PSQL function, predicate, CASE expression and set operations
MySQL大批量造数据
[C language] LeetCode26. Delete duplicates in an ordered array && LeetCode88. Merge two ordered arrays
Mysql常用命令大全
CPU使用率和负载区别及分析
Redis数据库
Mysql 回表
MySql copies data from one table to another table
12 reasons for MySQL slow query
在腾讯做外包测试的那些日子.....
51单片机外设篇:DS18B20
navicat新建数据库
classSR论文阅读笔记
Navicat报错:1045-Access denied for user [email protected](using passwordYES)
Block elements, inline elements ( elements, span elements)
2022-08-02 06:19:00
【Colorful Great Iron Ape】
目录
HTML<div>元素
HTML区块元素:
eg:<h1><p><ul><table>
HTML内联元素:
eg:<b>加粗 <td><a><img>
Specifically click on the link below
(27条消息) HTML 区块元素_csdn123t的博客-CSDN博客_html 区域元素
HTML<div> 元素
- HTML <div> 元素是块级元素,它可用于组合其他 HTML 元素的容器.
- <div> 元素没有特定的含义.除此之外,由于它属于块级元素,the browser willDisplay line breaks before and after.
- 如果与 CSS 一同使用,<div> Elements can be used for large blocks of content设置样式属性.
- <div> Another common use of elements is文档布局.它取代了使用表格定义布局的老式方法.使用 <table> 元素进行文档布局不是表格的正确用法.<table> 元素的作用是显示表格化的数据.
具体代码实现:
<div style="border:1px dashed red;width:500px;margin-bottom:50px;position: relative;left: 400px;">

The same we will the table below、The list is also divided into a block.
完整代码如下 :
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>My first web page</title>
</head>
<body>
<div style="border:1px dashed red;width:500px;margin-bottom:50px;position: relative;left: 400px;">
<h2>LY python 练习</h2>
<h3>hahahaahhahhahahaha</h3>
<p>hello world ,练习web加油加油,<span style="color:red">LY</span></p>
<a href="https://blog.csdn.net/weixin_47314602?type=blog" target="_blank">小渣渣主页面</a>
<br/>
<img src="C:\Users\1\Pictures\Saved Pictures\aa.jpg" width="100">
</div>
<div style="border:1px dashed red;width:500px;margin-bottom:50px;position: relative;left: 400px;">
<table border="1" cellpadding="5">
<tr>
<th>data1</th>
<th>data2</th>
<th>data3</th>
</tr>
<tr>
<td>11</td>
<td>22</td>
<td>33</td>
</tr>
<tr>
<td>111</td>
<td>222</td>
<td>333</td>
</tr>
</table>
<ol>
<li>情深缘浅</li>
<li>情非得以</li>
<li>纸短情长</li>
</ol>
<ol start="10">
<li>说散就散</li>
<li>绿色</li>
<li>三生三世</li>
</ol>
<ul>
<li>我曾</li>
<li>鼓楼先生
<ul>
<li>汉斯</li>
<li>男</li>
<li>32</li>
</ul>
</li>
<li>寒鸦少年</li>
</ul>
</div>
</body>
</html>
展示图:

span元素
- HTML <span> 元素是内联元素,可用作文本的容器
- <span> 元素也没有特定的含义.
- 当与 CSS 一同使用时,<span> element can be used forPart of the text sets style properties.
Add to this piece of codespan
<p>hello world ,练习web加油加油,<span style="color:red">LY</span></p>
<div style="border:1px dashed red;width:500px;margin-bottom:50px;position: relative;left: 400px;">
<h2>LY python 练习</h2>
<h3>hahahaahhahhahahaha</h3>
<p>hello world ,练习web加油加油,<span style="color:red">LY</span></p>
<a href="https://blog.csdn.net/weixin_47314602?type=blog" target="_blank">小渣渣主页面</a>
<br/>
<img src="C:\Users\1\Pictures\Saved Pictures\aa.jpg" width="100">
</div>
We can see the display imageLYThis place turns red.


2022-08-02 06:19:00 【Colorful Great Iron Ape】
目录
HTML<div>元素
HTML区块元素:
eg:<h1><p><ul><table>
HTML内联元素:
eg:<b>加粗 <td><a><img>
Specifically click on the link below
(27条消息) HTML 区块元素_csdn123t的博客-CSDN博客_html 区域元素
HTML<div> 元素
- HTML <div> 元素是块级元素,它可用于组合其他 HTML 元素的容器.
- <div> 元素没有特定的含义.除此之外,由于它属于块级元素,the browser willDisplay line breaks before and after.
- 如果与 CSS 一同使用,<div> Elements can be used for large blocks of content设置样式属性.
- <div> Another common use of elements is文档布局.它取代了使用表格定义布局的老式方法.使用 <table> 元素进行文档布局不是表格的正确用法.<table> 元素的作用是显示表格化的数据.
具体代码实现:
<div style="border:1px dashed red;width:500px;margin-bottom:50px;position: relative;left: 400px;">
The same we will the table below、The list is also divided into a block.
完整代码如下 :
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>My first web page</title>
</head>
<body>
<div style="border:1px dashed red;width:500px;margin-bottom:50px;position: relative;left: 400px;">
<h2>LY python 练习</h2>
<h3>hahahaahhahhahahaha</h3>
<p>hello world ,练习web加油加油,<span style="color:red">LY</span></p>
<a href="https://blog.csdn.net/weixin_47314602?type=blog" target="_blank">小渣渣主页面</a>
<br/>
<img src="C:\Users\1\Pictures\Saved Pictures\aa.jpg" width="100">
</div>
<div style="border:1px dashed red;width:500px;margin-bottom:50px;position: relative;left: 400px;">
<table border="1" cellpadding="5">
<tr>
<th>data1</th>
<th>data2</th>
<th>data3</th>
</tr>
<tr>
<td>11</td>
<td>22</td>
<td>33</td>
</tr>
<tr>
<td>111</td>
<td>222</td>
<td>333</td>
</tr>
</table>
<ol>
<li>情深缘浅</li>
<li>情非得以</li>
<li>纸短情长</li>
</ol>
<ol start="10">
<li>说散就散</li>
<li>绿色</li>
<li>三生三世</li>
</ol>
<ul>
<li>我曾</li>
<li>鼓楼先生
<ul>
<li>汉斯</li>
<li>男</li>
<li>32</li>
</ul>
</li>
<li>寒鸦少年</li>
</ul>
</div>
</body>
</html>
展示图:
span元素
- HTML <span> 元素是内联元素,可用作文本的容器
- <span> 元素也没有特定的含义.
- 当与 CSS 一同使用时,<span> element can be used forPart of the text sets style properties.
Add to this piece of codespan
<p>hello world ,练习web加油加油,<span style="color:red">LY</span></p>
<div style="border:1px dashed red;width:500px;margin-bottom:50px;position: relative;left: 400px;">
<h2>LY python 练习</h2>
<h3>hahahaahhahhahahaha</h3>
<p>hello world ,练习web加油加油,<span style="color:red">LY</span></p>
<a href="https://blog.csdn.net/weixin_47314602?type=blog" target="_blank">小渣渣主页面</a>
<br/>
<img src="C:\Users\1\Pictures\Saved Pictures\aa.jpg" width="100">
</div>
We can see the display imageLYThis place turns red.
边栏推荐
- Google Chrome(谷歌浏览器)安装使用
- JUC(二)原子类:CAS、乐观锁、Unsafe和原子类
- MYSQL 唯一约束
- Navicat报错:1045-Access denied for user [email protected](using passwordYES)
- 51单片机外设篇:DS18B20
- 复盘:图像饱和度计算公式和图像信噪(PSNR)比计算公式
- MySQL如何创建用户
- el-input can only input integers (including positive numbers, negative numbers, 0) or only integers (including positive numbers, negative numbers, 0) and decimals
- [Digital IC hand-tear code] Verilog fixed priority arbiter | topic | principle | design | simulation
- Android studio connects to MySQL and completes simple login and registration functions
猜你喜欢
MYSQL 唯一约束
Mycat2.0搭建教程
Cyber Security Learning - Intranet Penetration 4
Redis-集群模式(主从复制模式,哨兵模式,集群化模式)
Say good woman programmers do testing have an advantage?More than a dozen interview, abuse of cry ~ ~ by the interviewer
测试环境要多少?从成本与效率说起
go项目的打包部署
Redis-cluster mode (master-slave replication mode, sentinel mode, clustering mode)
Android Studio 实现登录注册-源代码 (连接MySql数据库)
The company does not pay attention to software testing, and the new Ali P8 has written a test case writing specification for us
随机推荐
自动化运维工具——ansible、概述、安装、模块介绍
Go语学习笔记 - grpc serverclient protobuf 从零开始Go语言
说好的女程序员做测试有优势?面试十几家,被面试官虐哭~~
LeetCode刷题系列 -- 787. K 站中转内最便宜的航班
Redis-----非关系数据库
ELK日志分析系统
PSQL function, predicate, CASE expression and set operations
MySQL大批量造数据
[C language] LeetCode26. Delete duplicates in an ordered array && LeetCode88. Merge two ordered arrays
Mysql常用命令大全
CPU使用率和负载区别及分析
Redis数据库
Mysql 回表
MySql copies data from one table to another table
12 reasons for MySQL slow query
在腾讯做外包测试的那些日子.....
51单片机外设篇:DS18B20
navicat新建数据库
classSR论文阅读笔记
Navicat报错:1045-Access denied for user [email protected](using passwordYES)