当前位置:网站首页>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.


边栏推荐
猜你喜欢

MySQL导入sql文件的三种方法

MySQL 8.0.29 decompressed version installation tutorial (valid for personal testing)

navicat连接MySQL报错:1045 - Access denied for user ‘root‘@‘localhost‘ (using password YES)

5年在职经验之谈:2年功能测试、3年自动化测试,从入门到不可自拔...

Redis-----非关系数据库

The Go language learning notes - dealing with timeout - use the language from scratch from Context
![[C language] LeetCode26. Delete duplicates in an ordered array && LeetCode88. Merge two ordered arrays](/img/eb/9b05508e88b7f17d80de2afa8c08ce.png)
[C language] LeetCode26. Delete duplicates in an ordered array && LeetCode88. Merge two ordered arrays

18年程序员生涯,读了200多本编程书,挑出一些精华分享给大家

JUC(一)- JUC学习概览 - 对JUC有一个整体的认识

Navicat如何连接MySQL
随机推荐
Android studio connects to MySQL and completes simple login and registration functions
leetcode 665. Non-decreasing Array 非递减数列(中等)
mysql 存储过程详解
Mycat2.0搭建教程
go项目的打包部署
nacos注册中心
12 reasons for MySQL slow query
Navicat报错:1045-Access denied for user [email protected](using passwordYES)
el-input can only input integers (including positive numbers, negative numbers, 0) or only integers (including positive numbers, negative numbers, 0) and decimals
构造方法、成员变量、局部变量
H5接入支付流程-微信支付&支付宝支付
LeetCode brush topic series - 787 K station transfer within the cheapest flight
一线大厂软件测试流程(思维导图)详解
18 years of programmer career, read more than 200 programming books, pick out some essence to share with you
公司不重视软件测试,新来的阿里P8给我们撰写了测试用例编写规范
51 MCU Peripherals: Infrared Communication
Go language study notes - grpc serverclient protobuf Go language from scratch
本周大新闻|苹果MR已进行Pre-EVT测试,Quest 2涨价100美元
Introduction and use of apifox (1).
golang's time package: methods for time interval formatting and output of timestamp formats such as seconds, milliseconds, and nanoseconds
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.


边栏推荐
猜你喜欢

MySQL导入sql文件的三种方法

MySQL 8.0.29 decompressed version installation tutorial (valid for personal testing)

navicat连接MySQL报错:1045 - Access denied for user ‘root‘@‘localhost‘ (using password YES)

5年在职经验之谈:2年功能测试、3年自动化测试,从入门到不可自拔...

Redis-----非关系数据库

The Go language learning notes - dealing with timeout - use the language from scratch from Context
![[C language] LeetCode26. Delete duplicates in an ordered array && LeetCode88. Merge two ordered arrays](/img/eb/9b05508e88b7f17d80de2afa8c08ce.png)
[C language] LeetCode26. Delete duplicates in an ordered array && LeetCode88. Merge two ordered arrays

18年程序员生涯,读了200多本编程书,挑出一些精华分享给大家

JUC(一)- JUC学习概览 - 对JUC有一个整体的认识

Navicat如何连接MySQL
随机推荐
Android studio connects to MySQL and completes simple login and registration functions
leetcode 665. Non-decreasing Array 非递减数列(中等)
mysql 存储过程详解
Mycat2.0搭建教程
go项目的打包部署
nacos注册中心
12 reasons for MySQL slow query
Navicat报错:1045-Access denied for user [email protected](using passwordYES)
el-input can only input integers (including positive numbers, negative numbers, 0) or only integers (including positive numbers, negative numbers, 0) and decimals
构造方法、成员变量、局部变量
H5接入支付流程-微信支付&支付宝支付
LeetCode brush topic series - 787 K station transfer within the cheapest flight
一线大厂软件测试流程(思维导图)详解
18 years of programmer career, read more than 200 programming books, pick out some essence to share with you
公司不重视软件测试,新来的阿里P8给我们撰写了测试用例编写规范
51 MCU Peripherals: Infrared Communication
Go language study notes - grpc serverclient protobuf Go language from scratch
本周大新闻|苹果MR已进行Pre-EVT测试,Quest 2涨价100美元
Introduction and use of apifox (1).
golang's time package: methods for time interval formatting and output of timestamp formats such as seconds, milliseconds, and nanoseconds