HTML <div> 标签测试程序案例123(一看就懂)
2021/7/3 12:21:49
本文主要是介绍HTML <div> 标签测试程序案例123(一看就懂),对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
效果
代码
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<!-- div布局学习,与程序案例 123 -->
<h3>this is a header</h3>
<p>this is a paragraph</p>
<div style="color: rgb(231, 39, 39);">
<p>一个div样式的设置,写入测试。输出颜色 为红色</p>
<H4>重回26年前</H4>
<h3>this is a header</h3>
<h2>this is a H2 标题</h2>
<p>程序员高频English</p>
</div>
</div>
</body>
</html>
参考文档
https://www.w3school.com.cn/html/html_blocks.asp
这篇关于HTML <div> 标签测试程序案例123(一看就懂)的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-05-30毕设私活神器
- 2024-05-30html
- 2024-05-09一定要避坑:关于微信H5分享,温馨提示你不要再踩坑了!!!
- 2024-05-09本地项目放到公网访问!炒鸡煎蛋!
- 2024-04-07金融企业区域集中库的设计构想和测试验证
- 2024-03-11前端CSS的工程化——掌握Sass这四大特性就够了
- 2024-02-21h5关联css样式(html怎么和css关联)-icode9专业技术文章分享
- 2024-02-07Firefox禁止远程字体加速网页加载及图标字体补充安装
- 2024-02-07一个菜鸡前端的3年总结-「2023」
- 2024-01-18最火前端Web组态软件(可视化)