adc

clicks

How To Build A Landing Page With HTML And CSS | HTML & CSS Landing Page

 

 HTML 

Before we start writing code first, we need to create a primary structure of the HTML document, so that the browser can understand and start working. The basic HTML structure looks like the following.After writing the primary structure of the HTML document, you will also write the tags and content you need. After that, you can see the output in your browser. We know that HTML Sudu Mae is used for exposing content in a basic format. To complete our content we need to use CSS, which is an HTML insert and it creates an engaging user interface. 


<!DOCTYPE html>
<html>
<head>
            <title>landing Page</title>
            <link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>

            <div class="wrepper">
                        <dir class="nav">
                                    <ul>
                                                <li>EAQ</li>
                                                <li>SHOP</li>
                                                <li>LOG IN</li>
                                                <li class="active">SING IN</li>
                                    </ul>
                        </dir>
                        <div class="header">
                                    <h1><span>Easy</span>   Design</h1>
                        </div>
                        <div class="tagline">
                                    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmo !</p>
                        </div>
                        <div class="dwon">
                                    <img src="downbtn.png">
                        </div>
            </div>

</body>
</html>

CSS 

Now, we have time to improve the HTML content, for that, we need to add CSS to the HTML file. CSS can be added to HTML documents in a total of three ways, here we are using outside CSS design using CSS will arrive here after typing and see the output in your browser. 


@import url('https://fonts.googleapis.com/css2?family=Pinyon+Script&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Pinyon+Script&display=swap');
html{
            margin: 0;
            padding: 0;
            width: 100%;
}
body{
            margin: 0;
            padding: 0;
            width: 100%;
            height: 100%;
            display: block;
            background-image: url(bg.jpg);
            background-repeat: no-repeat;
            background-size: cover;
}
.nav{
            position: absolute;
            left: 50%;
            top: 2%;
}         
.nav ul{
            list-style: none;
}         
.nav ul li{
            list-style: none;
            display: inline-block;
            color: white;
            font-size: 20px;
            font-family: sans-serif;
            padding: 10px 50px;
            font-weight: bold;
}
.active{
            color: white;
            background-color: #e02626;
            border-radius: 5px;
}
.header{
            text-align: center;
            position: absolute;
            top: 35%;
            left: 50%;
            transform: translate(-50%, -50%);
}
.header h1{
            color: white;
            font-family: 'Pinyon Script', cursive;
            font-size: 135px;
}
span{
            color: #e02626;
}
.tagline{
            text-align: center;
            position: absolute;
            top: 55%;
            left: 50%;
            transform: translate(-50%, -50%);
}
.tagline p{
            color: white;
            font-size: 40px;
  font-family: 'Pinyon Script', cursive;
}
.dwon{
            position: absolute;
            top: 75%;
            left: 50%;
            transform: translate(-50%, -50%);
}
.dwon img{
            width: 80px;
}

 

Source Code


Watch Video

 

Youtube

 

 

How To Build A Landing Page With HTML And CSS | HTML & CSS Landing Page How To Build A Landing Page With HTML And CSS | HTML & CSS Landing Page Reviewed by easycoding on September 05, 2020 Rating: 5

No comments:

Powered by Blogger.