HTML basic tutorial <body> tag

<body>Tag

Usage: <body>Content</body>

Commonly used attributes of <body>

  • bgColor: Web page background color. For example: <body bgColor = “red”>

  • background: The address of the background image of the web page. For example: <body background = “images/01.jpg”>

<!DOCTYPE HTML>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>这是我们的第一个页面</title>
    </head>
    <body bgColor="#88cc66" background="/upload/course/000/000/009/5858c32b29eab172.jpg"> 
        <h1>欢迎加入php.cn</h1>
        <h2>希望你能够在这里学的开心</h2>
    </body>
</html>


Continuing Learning
||
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>这是我们的第一个页面</title> </head> <body bgColor="#88cc66" background="https://img.php.cn/upload/course/000/000/009/5858c32b29eab172.jpg"> <h1>欢迎加入php.cn</h1> <h2>希望你能够在这里学的开心</h2> </body> </html>
submitReset Code