How To Create Responsive Landing Page In 2021
Tags: html, css, landingpage, responsive
Published: 2020-12-16 07:55:01

Hello guys in this tutorial we will create fully responsive landing page design using HTML CSS & jQuery
**Landing Page**
In online marketing, a landing page, sometimes known as a "lead capture page","single property page", "static page", or a "destination page", is a single web page that appears in response to clicking on a search engine optimized search result, marketing promotion, marketing email, or an online advertisement.

**Step:1**
Add below code inside index.html
```
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>Sales Landing Page</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <link rel="preconnect" href="https://fonts.gstatic.com">
    <link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;800&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="style.css" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>  
  </head>
  <body>
    <header id="main-header">
      <div class="container">
        <div class="grid-200-auto">
          <div class="logo">
            <a href="#" alt="logo">Logo</a>
          </div>
          <nav class="navbar desktop-nav">
            <ul class="menu-items">
              <li class="menu-item active" ><a href="#">Home</a></li>
              <li class="menu-item" ><a href="#">About</a></li>
              <li class="menu-item" ><a href="#">Services</a></li>
              <li class="menu-item" ><a href="#">Contact</a></li>
              <li class="menu-item search-icon" ><a href="#"><i class="fa fa-search"></i></a></li>
            </ul>
          </nav>
          <button class="toggle-nav"><i class="fa fa-bars"></i></button>
          <nav class="navbar mobile-nav">
            <ul class="menu-items">
              <li class="menu-close" ><i class="fa fa-times"></i></li>

              <li class="menu-item active" ><a href="#">Home</a></li>
              <li class="menu-item" ><a href="#">About</a></li>
              <li class="menu-item" ><a href="#">Services</a></li>
              <li class="menu-item" ><a href="#">Contact</a></li>
              <li class="menu-item search-icon" ><a href="#"><i class="fa fa-search"></i></a></li>
            </ul>
          </nav>
        </div>
      </div>
    </header>
    <div class="main-content">
      <div class="container">
        <div class="left-content">
          <h2>TODAY’S DEAL</h2>
          <h1>BIG SALE</h1>
          <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.</p>
          <button class="shop-now">Shop Now</button>
        <div class="social-icons">
          <ul class="inline-list">
            <li><a href="#"><i class="fa fa-facebook"></i></a></li>
            <li><a href="#"><i class="fa fa-youtube"></i></a></li>
            <li><a href="#"><i class="fa fa-instagram"></i></a></li>
            <li><a href="#"><i class="fa fa-twitter"></i></a></li>
          </ul>
        </div>
        </div>
        <div class="left-image"><img src="girl.png"></div>
      </div>
    </div>
    <div id="search-popup">
      <form>
        <input type="text" placeholder="Search...">
      </form>
      <span class="close-popup"><i class="fa fa-times"></i></span>
    </div>
    <script type="text/javascript">
      $(document).ready(function(){
        $(".search-icon").click(function(){
          $("div#search-popup").addClass("show")
        });
        $(".close-popup").click(function(){
          $("div#search-popup").removeClass("show")
        });
        $("button.toggle-nav").click(function(){
          $("nav.navbar.mobile-nav").addClass("show");  
          $("li.menu-close").addClass("show");
        });
        $(".menu-close").click(function(){
          $("nav.navbar.mobile-nav").removeClass("show");  
          $("li.menu-close").removeClass("show");
        });
      });
    </script>
  </body>
</html>
```
**Step:2**
Then we need to add code for style.css which code i provide in below screen.

Full Source Code :-  <a href="https://blog.stackfindover.com/how-to-create-responsive-landing-page-in-2021/" rel="dofollow">Responsive Landing Page In 2021</a>

##See also##

01. <a href="https://blog.stackfindover.com/creative-landing-page-design-using-html-css-javascript/" rel="dofollow">Blood Donation Landing Page Design</a>
02. <a href="https://blog.stackfindover.com/how-to-create-landing-page-using-html-css/" rel="dofollow">Creative Landing Page Design</a>