Set Full Background Image in HTML DOM

  • Program 01:


    <!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>
        <style>
            html {
                background-image: url("https://www.w3schools.com/w3css/img_lights.jpg");
                background-size: cover;
            }
        </style>
    </head>

    <body>
    </body>

    </html>

  • Output:

No comments:

Post a Comment

PHP & Laravel — Zero to Hero Episode 17: Controllers — Organizing Your Application Logic the Laravel Way

What Are We Doing in This Post? In Episode 16 we defined routes using closures — anonymous functions directly inside routes/web.php . That w...