Tutorials

How to Design Google Search Engine Landing Page UI Clone in HTML5 & CSS3

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>Document</title>
</head>
<style>
    * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif
}

/* NAVIGATION */nav ul {
  display: flex;
  justify-content: flex-start;
  align-items: baseline;
  margin: 20px 15px 0;
  font-size: 13px;
}

nav li {
  list-style-type: none;
  margin: 0 20px 0 0;
  text-transform: capitalize;
}

nav li a {
  text-decoration: none;
  color: #000000;
}

nav li a:hover {
  text-decoration: underline;
}

/* --- pushes the elements on the right */.nav-right {
  margin-left: auto;
}

.sign-in-button {
  background: #5555cf;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 5px;
  color: #ffffff;
  letter-spacing: 1px;
}

.box-grid {
  display: grid;
  grid-template-columns: 5px 5px 5px;
  grid-template-rows: 5px 5px 5px;
  grid-column-gap: 3px;
  grid-row-gap: 3px;
}

.box-item {
  background: #000000;
}

/* GOOGLE LOGO AND SEARCH */.google-function {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 80px;
}

.google-name {
  font-size: 80px;
  font-weight: bold;
}

.google-name:nth-child(1) {
  text-transform: capitalize;
  color:#4285F4;
}

.google-name:nth-child(2n+2) {
  color:#DB4437;
}

.google-name:nth-child(3) {
  color:#F4B400;
}

.google-name:nth-child(4) {
  color:#4285F4;
}

.google-name:nth-child(5) {
  color:#0F9D58;
}

.google-name:nth-child(6) {
  color:#DB4437;
}

input[type="text"] {
  padding: 12px 40px;
  margin: 20px 0 25px 0;
  border-radius: 25px;
  width: 450px;
  outline: none;
  border: 1px solid #888888;
}

input[type="text"]:hover {
  box-shadow: 2px 2px 8px #888888;
}

.fa-search {
  position: relative;
  left: 35px;
  bottom: 2px;
  top: 2px;
  color: #888888;
}

.button-group {
  display: flex;
  justify-content: center;
}

.google-button {
  padding: 10px 15px;
  margin-right: 10px;
  border-radius: 5px;
  border: none;
}

.google-button:hover {
  cursor: pointer;
  background: #e8e2e2;
  border: 1px solid #838383;
  box-shadow: 2px 2px 10px #888888;
}

/* FOOTERS */footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  font-size: 14px;
  background: #f2f2f2;
  border: 1px solid #dadce0;
  color: rgba(0, 0, 0, 0.54);
}

.footer-country {
  border-bottom: 1px solid #dadce0;
  padding: 10px 0 10px 20px;
}

.footer-details {
  display: flex;
  justify-content: flex-start;
  padding: 10px 0 10px 20px;
}

footer li {
  list-style-type: none;
  margin: 0 20px 0 0;
}

.footer-details li a {
  color: rgba(0, 0, 0, 0.54);
  text-decoration: none;
}

.footer-details li a:hover {
  text-decoration: underline;
}

@media only screen and (max-width: 650px) {
  .footer-details {
    display: grid;
    grid-template-columns: auto auto auto;
    grid-template-rows: auto auto;
    grid-column-gap: 15px;
    grid-row-gap: 15px;
    justify-content: center;
  }
}

@media only screen and (max-width: 520px) {
  input[type="text"] {
  width: 350px;
  }
}
</style>
<body>
    <script src="https://kit.fontawesome.com/976382ac44.js" crossorigin="anonymous"></script>
  
<body>
  <nav>
    <ul>
      <li><a href="#">about</a></li>
      <li><a href="#">store</a></li>
      <li class="nav-right"><a href="#">gmail</a></li>
      <li><a href="#">images</a></li>
      <li>
        <div class="box-grid">
          <div class="box-item">.</div>
          <div class="box-item"></div>
          <div class="box-item"></div>
          <div class="box-item"></div>
          <div class="box-item"></div>
          <div class="box-item"></div>
          <div class="box-item"></div>
          <div class="box-item"></div>
          <div class="box-item"></div>
        </div>
      </li>
      <li class="sign-in-button">sign in</li>
    </ul>
  </nav>

  <div class="google-function">
    <p>
      <span class="google-name">g</span>
      <span class="google-name">o</span>
      <span class="google-name">o</span>
      <span class="google-name">g</span>
      <span class="google-name">l</span>
      <span class="google-name">e</span>
    </p>
    
    <form>
      <div>
        <i class="fas fa-search"> </i> 
          <input 
          type="text"
          id="gsearch"
          name="gsearch">
      </div>

      <div class="button-group">
        <button class="google-button" type="submit">Google Search</button>
        <button class="google-button" type="submit">I'm Feeling Lucky</button>
      </div>
    </form>
  </div>
  
  <footer>
    <div class="footer-country">
      <p>United Kingdom</p>
    </div>

    <ul class="footer-details">
      <li><a href="#">Advertising</a></li>
      <li><a href="#">Business</a></li>
      <li><a href="#">How Search works</a></li>
      <li class="nav-right"><a href="#">Privacy</a></li>
      <li><a href="#">Terms</a></li>
      <li><a href="#">Settings</a></li>
    </ul>
  </footer>
</body>
</body>
</html>

Screenshot

Google Search Engine Landing Page UI Clone in HTML5 & CSS3
Furqan

Well. I've been working for the past three years as a web designer and developer. I have successfully created websites for small to medium sized companies as part of my freelance career. During that time I've also completed my bachelor's in Information Technology.

Recent Posts

MiniMax-M1 vs GPT-4o vs Claude 3 Opus vs LLaMA 3 Benchmarks

MiniMax-M1 is a new open-weight large language model (456 B parameters, ~46 B active) built with hybrid…

June 22, 2025

How to Use Husky with npm to Manage Git Hooks

Managing Git hooks manually can quickly become tedious and error-prone—especially in fast-moving JavaScript or Node.js…

June 22, 2025

How to Use Lefthook with npm to Manage Git Hooks

Git hooks help teams enforce code quality by automating checks at key stages like commits…

June 22, 2025

Lefthook vs Husky: Which Git Hooks Tool is Better? [2025]

Choosing the right Git hooks manager directly impacts code quality, developer experience, and CI/CD performance.…

June 22, 2025

Llama 3.1 vs GPT-4 Benchmarks

We evaluated the performance of Llama 3.1 vs GPT-4 models on over 150 benchmark datasets…

July 24, 2024

Transforming Manufacturing with Industrial IoT Solutions and Machine Learning

The manufacturing industry is undergoing a significant transformation with the advent of Industrial IoT Solutions.…

July 6, 2024