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(一看就懂)的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程