Google logo using html and css with source code

Google logo using html and css
Google logo using html and css


In this Article, we will learn about how to create Google logo using html and css with source code. Creating Google logo using html and css becomes simple with the given tutorial, which provides a simple step-by-step process to design Google logo using html and css. So, let's go and follow the steps carefully.


Steps to create Google logo using html and css

Here are the Steps to create Google logo using html and css as given below :-


1) Creating File on VS CODE :

Open VS Code, Create a new folder and add html and css file.

2) Adding HTML :

Add the .html file in the project folder and give it the name as - index.html.


3) Copy and Paste HTML code :

copy the following code and paste it in index.html file.

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

4) Adding CSS :

Add the .css file in the project folder and give it the name as - style.css.


5) Copy and Paste CSS code :

copy the following code and paste it in style.css file.

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 10px;
}
body {
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #061c2d;
}
.logo {
  position: relative;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  border-left: 40px solid #fbbc05;
  border-right: 40px solid #4385f6;
  border-top: 40px solid #ec4336;
  border-bottom: 40px solid #34a856;
}
.logo::before {
  content: "";
  position: absolute;
  top: -150px;
  right: -150px;
  border-top: 110px solid transparent;
  border-right: 110px solid #061c2d;
  border-bottom: 110px solid transparent;
  border-left: 110px solid transparent;
  transform: rotate(90deg);
}
.logo::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -45px;
  width: 110px;
  height: 40px;
  background: #4385f6;
  transform: translate(-5px, -20px);
  border-bottom-right-radius: 15px;
}


6) Check the Output :

After adding source code to the files, check the output of the project.

Here is the output of Google logo :

Google logo using html and css with source code


About the code - 

In this code, we used html to create a structure of the Google logo using html and css to design its structure. we created a clone of the Google logo with giving a css styling to the element.

About the project - 

In this project, we've created the Google logo using html and cssGoogle logo design is very useful to add on website, so use the given source code to add Google logo.

Hope this tutorial will help you to create Google logo using html and css easily with source code. if you have any confusion then you can contact with us on our coding community.

Also, checkout our website for more information and join our coding community on telegram to get more knowledge about coding.
code.lifeline

Previous Post Next Post