How to Create a Landing Page in HTML and CSS in Hindi

How to Create a Landing Page in HTML and CSS in Hindi.

Html and Css mein landing page bana bhaut easy hai but agar app starting a shik rha ho to apko samajne mein mushikal hogi kyuki apko pta he nahi lagega ki kya cheez kesa work karti hai, So app ke liya acha hoga ki app html and css basic samj lo phela.

Landing Page Kya Hai :

Jab bhi apko broswer mein kisi website par jate ho yha koi bhi website jissa app broswer mein open karte ho apne notice kiya hoga vha ek front page phela open hota hai jissa uss website ka logo , header section , navs etc lika hota, or fir uske necha jab app scroll karte ho to necha ussa website ka content lika hua atta hai , but jo upper portion hota hai jha apko logo menu etc show hota hai jo open krte wakq dikta hai apko usko landing page bolte hai.

Landing page examples :

Chalo mein apko kuch landing pages ka design dikata ho phela jissa app acha sa samj jaoge ki landinging page kisi bolte hai.

Examples:




How to Create a Landing Page in HTML and CSS in Hindi
How to Create a Landing Page in HTML and CSS in Hindi





How to Create a Landing Page in HTML and CSS in Hindi
How to Create a Landing Page in HTML and CSS in Hindi





Chalo apko pta lag gaya hoga landing page ke bare mein acha sa ki kisa landing page bolte hai.

Mein apko app source code deta hai html or css ka app usko usse karna :

Html Source Code:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="header.css">
</head>
<body>
    <header>
        <nav class="header">
            <div class="logo">
                <h4>Rakshak</h4>
            </div>

            <div class="headermenu">
                <ul>
                    <li><a href="#">Home</a></li>
                    <li><a href="#">Course</a></li>
                    <li><a href="#">About</a></li>
                    <li><a href="#">Contact</a></li>
                </ul>
            </div>
            <div class="headerright">
                <button>Sign in</button>
                <button>Sign up</button>
            </div>
        </nav>

        <div class="content">
            <div>
                <h1>Web Developer</h1>
                <h2>Programmer</h2>
                <h3>Blogger</h3>
            </div>
            <div>
                <button>Get Course</button>
                <button>Get a Demo</button>
            </div>

        </div>
    </header>
    
</body>
</html>


Note : Ek baat ka dyan rkna jo app css file ka naam rkoge usko html mein add style baad yaad sa karna jesa mena kiya hai fir jake apka code sahi sa run hoga.

CSS Source Code:

*{
    margin0;
    padding0;
    box-sizingborder-box;
}

header{
    background-colorblack;
    width100%;
    height100vh;
    background-sizecover;
}

.header{
    displayflex;
    justify-contentspace-between;
    align-itemscenter;
    padding30px 30px;
    background-colorrgba(211771460.356);
    height30px;
    
}

.logo{
    padding0px 40px;
}
.logo h4{
    border-bottom2px solid white;
    colorwhite;
    font-weightbold;
    text-transformuppercase;
    font-size20px;
    cursorpointer;
}
.logo h4:hover{
    border-bottom2px solid purple;
}

.headermenu ul{
    list-stylenone;
}
.headermenu ul li{
    displayinline-block;
    padding10px 40px;
}
.headermenu ul li a{
    text-decorationnone;
    font-weightlighter;
    colorwhite;
    border-bottom2px solid white;
}
.headermenu ul li a:hover{
    border2px solid white;
    background-color:black;
    colorwhite;
}

.headerright{
    padding10px 20px;
    word-spacing20px;
}
.headerright button{
    cursorpointer;
    font-weightbold;
    padding:2px 10px;
}
.headerright button:hover{
    border2px solid white;
    background-colorblack;
    colorwhite;
}

.content{
    position:absolute;
    top20%;
    width100%;
    text-aligncenter;
    colorwhite;
}
.content h1{
    font-size120px;
    colorrgba(62482480.822);
}
.content h2{
    font-size100px;
    colorwhite;
}
.content h3{
    font-size100px;
    colorrgb(2042502);
    padding-bottom40px;
}
.content div{
    word-spacing30px;
}

.content button{
    cursorpointer;
    font-weightbold;
    font-size20px;
    text-transformuppercase;
    padding10px 20px;
}

.content button:hover{
    border2px solid white;
    background-colorblack;
    colorwhite;
}

Output :

How to Create a Landing Page in HTML and CSS in Hindi
How to Create a Landing Page in HTML and CSS in Hindi

Please do not enter any spam link in the comment box.

إرسال تعليق (0)
أحدث أقدم