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


边栏推荐
- APP Bluetooth connection test of test technology
- [PSQL] window function, GROUPING operator
- Go语学习笔记 - 处理超时问题 - Context使用 从零开始Go语言
- Brush LeetCode topic series - 10. Regular expression match
- [Digital IC hand-tear code] Verilog fixed priority arbiter | topic | principle | design | simulation
- Go language study notes - grpc serverclient protobuf Go language from scratch
- C language: Check for omissions and fill in vacancies (3)
- "Digital reconstruction of the system, getting the CEO is the first step"
- [PSQL] 窗口函数、GROUPING运算符
- golang generics
猜你喜欢

coredns介绍

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

go项目的打包部署
[email protected](using passwordYES)"/>Navicat报错:1045-Access denied for user [email protected](using passwordYES)

区块元素、内联元素(<div>元素、span元素)

说好的女程序员做测试有优势?面试十几家,被面试官虐哭~~

ATM系统

Detailed explanation of interface in Go language

Detailed explanation of mysql stored procedure

25K测试老鸟6年经验的面试心得,四种公司、四种问题…
随机推荐
Navicat如何连接MySQL
c语言:查漏补缺(三)
Install and use Google Chrome
Introduction and use of apifox (1).
51单片机外设篇:红外通信
The Go language learning notes - dealing with timeout - use the language from scratch from Context
Go语学习笔记 - grpc serverclient protobuf 从零开始Go语言
Redis数据库
【C语言】LeetCode26.删除有序数组中的重复项&&LeetCode88.合并两个有序数组
[Digital IC hand-tear code] Verilog fixed priority arbiter | topic | principle | design | simulation
MySql copies data from one table to another table
25K测试老鸟6年经验的面试心得,四种公司、四种问题…
2022年100道最新软件测试面试题,常见面试题及答案汇总
Say good woman programmers do testing have an advantage?More than a dozen interview, abuse of cry ~ ~ by the interviewer
MySQL 多表关联一对多查询实现取最新一条数据
MySQL String Concatenation - Various String Concatenation Practical Cases
说好的女程序员做测试有优势?面试十几家,被面试官虐哭~~
MySQL 5.7详细下载安装配置教程
Detailed explanation of interface in Go language
21天学习挑战赛安排
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.
边栏推荐
- APP Bluetooth connection test of test technology
- [PSQL] window function, GROUPING operator
- Go语学习笔记 - 处理超时问题 - Context使用 从零开始Go语言
- Brush LeetCode topic series - 10. Regular expression match
- [Digital IC hand-tear code] Verilog fixed priority arbiter | topic | principle | design | simulation
- Go language study notes - grpc serverclient protobuf Go language from scratch
- C language: Check for omissions and fill in vacancies (3)
- "Digital reconstruction of the system, getting the CEO is the first step"
- [PSQL] 窗口函数、GROUPING运算符
- golang generics
猜你喜欢
coredns介绍
Redis-集群模式(主从复制模式,哨兵模式,集群化模式)
go项目的打包部署
[email protected](using passwordYES)"/>
Navicat报错:1045-Access denied for user [email protected](using passwordYES)
区块元素、内联元素(<div>元素、span元素)
说好的女程序员做测试有优势?面试十几家,被面试官虐哭~~
ATM系统
Detailed explanation of interface in Go language
Detailed explanation of mysql stored procedure
25K测试老鸟6年经验的面试心得,四种公司、四种问题…
随机推荐
Navicat如何连接MySQL
c语言:查漏补缺(三)
Install and use Google Chrome
Introduction and use of apifox (1).
51单片机外设篇:红外通信
The Go language learning notes - dealing with timeout - use the language from scratch from Context
Go语学习笔记 - grpc serverclient protobuf 从零开始Go语言
Redis数据库
【C语言】LeetCode26.删除有序数组中的重复项&&LeetCode88.合并两个有序数组
[Digital IC hand-tear code] Verilog fixed priority arbiter | topic | principle | design | simulation
MySql copies data from one table to another table
25K测试老鸟6年经验的面试心得,四种公司、四种问题…
2022年100道最新软件测试面试题,常见面试题及答案汇总
Say good woman programmers do testing have an advantage?More than a dozen interview, abuse of cry ~ ~ by the interviewer
MySQL 多表关联一对多查询实现取最新一条数据
MySQL String Concatenation - Various String Concatenation Practical Cases
说好的女程序员做测试有优势?面试十几家,被面试官虐哭~~
MySQL 5.7详细下载安装配置教程
Detailed explanation of interface in Go language
21天学习挑战赛安排