How to create a website in hindi in one video - codeandman (sourcecode)

Hey guys how are you all today in this post I am going to give you the source code of my video called "how to create a website using html || creating a website || html and css projects || codeandman". So now let's begin with the post :


Source code of Index.html:
<!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></title>
   
    <link rel="stylesheet" href="style.css">
</head>
<body>
         <header>
                <nav>
                    <ul>
                        <li><a href="#">Home</a></li>
                        <li><a href="#">Contact Us</a></li>
                        <li><a href="#">Services</a></li>
                        <li><a href="#">Blog</a></li>
                    </ul>
                </nav>
                <section class="headersec">
                    <div class="left">
                        <h1>We Empower you to make the future of your Child</h1>
                        <p>Start with 20$ per month fees. If you liked the service then we can think about another things.</p>
                    </div>
                    <div class="right">
                        <img src="https://blogger.googleusercontent.com/img/a/AVvXsEi1gUqWHjY2BdR_gCRJzUGsVs2UeGB1BVo6IUBjejcfbqrQuC8ECZg4AlwCTeJ9cmj5ULsHzchM4jGHwFkgAxZz05rkBo-8txEO_PbkhbbEGMIXktZInZrNYedGmisOqs9CP7-ZfzIJNklg7yuZg0iA1nUoxsDnvNj9dHjb3BmFMjVqqZU-kFNcOiwW=s320" />
                    </div>
                </section>
            </header>
</body>
</html>

Source code of Style.css file : 

/* Google fonts */
@import url('https://fonts.googleapis.com/css2?family=Baloo+Bhai+2:wght@500&display=swap');
* {
    /* propertyname: propertyvalue ; */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Baloo Bhai 2', cursive;
}

li {
    list-style-type: none;
}

a {
    text-decoration: none;
}

/* basic SElectors : Class selector , id selector */

/* Flex box : used for changing the order of the html elements or say creating layouts. */

nav ul {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: darkblue;
    height: 10vh;
    /*10% of height of x*/
    width: 100vw;
    /* 100% of width of x*/
}

nav a {
    color: white;
}

/* VH and VW
        VH : Viewport Height.
        VW : Viewport Width.
        */

nav ul :first-child a {
    color: black;
}

/* Styling of the header section */

.headersec {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100vw;
    height: 90vh;
    background: brown;
}

.headersec .right img {
    width: 100%;
    border: 2px solid black;
    border-radius: 10px;
}

.left, .right {
    width: 50%;
}

.left h1, .left p {
    font-family: 'PT-Sans', sans-serif;
}

.left p {
    text-align: center;
    width: 80%;
}

I hope that you liked the source code. 
Share this to all your friends.
Thank You.

Comments

Popular posts from this blog

The Professional HTML Cheatsheet For beginners in 2024 for free

Top 3 Websites to get copyright free images in 2024 for free

Top 10 cmd commands everyone should know