Wednesday, 16 June 2021

website development crash course 2021

 code of the website video link https://www.youtube.com/watch?v=h7UoV1ACQ28&t=103s

<!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>Home page</title>
    <style>
        *{
            margin0;
            padding0;
            box-sizingborder-box;
        }
        header
        {
            width100%;
            displayflex;
            background-color:aqua ;
            min-height50px;
        }
        #logo_div{
            width30%;
            background-color#000;
            color#fff;
            /* text-align: center;  OR */
            displayflex;
            justify-contentcenter;
            align-itemscenter;

        }
        #navigation_bar{
            width:69%;
            displayflex;
            justify-contentspace-around;
            align-itemscenter;
        }
        #navigation_bar>a{
            color#fff;
            padding9px;
            background-color#000;
            text-decorationnone;
        }
        /* Now time for hover effect */
        #navigation_bar>a:hover{
            background-colorcoral;
            color#000;
            padding12px;
        }
        /* second section */

        #section_two{
            width100%;
            displayflex;
            justify-contentcenter;
            align-itemscenter;
        }
        #background_image_div{
            width100%;
            /* here we have to add an image */
            background-imageurl("earth.jpg"); 
            displayflex;
            justify-contentcenter;
            align-itemscenter;
            color#fff;
            min-height500px;
            font-size3vw;

        }
        /* third section */
        #third_section{
            width100%;
            displayflex;
            justify-contentspace-around;
            align-itemscenter;
            margin-top50px;
            margin-bottom50px;
        }
        #third_section>div{
            width30%;
            border5px double greenyellow;
            min-height200px;
            background-colorteal;
            text-aligncenter;
            color#fff;
            font-size1.7vw;
        }
        /* time for hover effect */
        #third_section>div:hover{
            border10px double lightgreen;
            background-colordarkorange;
        }
    </style>
</head>
<body>
    <!-- this will show header part of this website -->
    <header>
        <!-- logo div -->
        <div id="logo_div">
            <h1>logo part</h1>
        </div>
        <!-- navigation div -->
        <nav id="navigation_bar">
            <a href="#">Home</a>
            <a href="#">log in</a>
            <a href="#">register</a>
        </nav>
    </header>

    <!-- create section and div -->
    <section id="section_two">
        <div id="background_image_div">
                <h2>Welcome ! You are Welcome !</h2>
        </div>
    </section>
    <!-- third part which is div with heading and texts -->
    <section id="third_section">
        <div>
            <h4>heading 1</h4><br>
            <p>This is just a text . if you like this playlist please like and share this video. This is just a text . if you like this playlist please like and share this video. This is just a text . if you like this playlist please like and share this video This is just a text . if you like this playlist please like and share this video</p>
        </div>

        <div>
            <h4>heading 1</h4><br>
            <p>This is just a text . if you like this playlist please like and share this video. This is just a text . if you like this playlist please like and share this video. This is just a text . if you like this playlist please like and share this video This is just a text . if you like this playlist please like and share this video</p>
        </div>

        <div>
            <h4>heading 1</h4><br>
            <p>This is just a text . if you like this playlist please like and share this video. This is just a text . if you like this playlist please like and share this video. This is just a text . if you like this playlist please like and share this video This is just a text . if you like this playlist please like and share this video</p>
        </div>
    </section>
<style>
    footer{
        width100%;
        displayflex;
        justify-contentspace-around;
        background-color#000;
        min-height200px;
    }
    footer>div{
        width20%;
        displayflex;
        flex-directioncolumn;
        align-contentspace-around;
        justify-contentcenter;
    }
    footer>div>strong{
        coloryellow;
    }
    footer>div>a{
        color#fff;
        text-decorationnone;
    }
</style>
    <!-- footer part  -->
    <footer>
        <div>
            <strong>Important links</strong><br><br>
            <a href="#">link1</a><br>
            <a href="#">link1</a><br>
            <a href="#">link1</a><br>
            <a href="#">link1</a><br>
            <a href="#">link1</a><br>
        </div>
        <div>
            <strong>Our sources</strong><br><br>
            <a href="#">link1</a><br>
            <a href="#">link1</a><br>
            <a href="#">link1</a><br>
        </div>
        <div>
            <strong>Social media links</strong><br><br>
            <a href="#">link1</a><br>
            <a href="#">link1</a><br>
            <a href="#">link1</a><br>
            <a href="#">link1</a><br>
            <a href="#">link1</a><br>
        </div>
    </footer>
</body>
</html>
<!-- code will be in the description part -->

No comments:

By laptop