HTML Source code of a simple clone website
![]() |
Complete clone website sourse code with html and css only |
<!DOCTYPE html>
<html>
<head>
<title>www.merabharat.com</title>
<link href="https://fonts.googleapis.com/css2?family=Josefin+Slab:ital,wght@0,700;1,600&display=swap" rel="stylesheet ">
<link rel="stylesheet" type="text/css" href="css/style.css">
<link href="https://fonts.googleapis.com/css?family=Josefin+Sans&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"/>
</head>
<body>
<header>
<nav>
<div class="Logo"><h1 class="animate__animated animate__bounce">mera bharat</h1></div>
<div class="Menu">
<a href="#">Home</a>
<a href="#">Gallery</a>
<a href="https://vikashcse.blogspot.com/p/about-us_3.html">About</a>
<a href="#">Contact us</a>
</div>
</nav>
<main>
<section>
<h3>Welcome To India</h3>
<h1>Do Come & Visit <span class="change_content"></span> </h1>
<p>"India once is not enough"</p>
<a href="https://hindi-essay.com/hindi-essay-mera-bharat-mahaan/" class="btnone ">Learn more </a>
<a href="#" class="btntwo">Signup here</a>
</section>
</main>
</header>
</body>
</html>
CSS Source code of a simple clone website
*{
margin: 0; padding: 0; box-sizing: border-box;
font-family: 'Josefin Slab', serif;
}
header {
width: 100%; height: 100vh;
background-image: linear-gradient(rgba(0,0,0,0.3),rgba(0,0,0,0.1)), url('tajmahal.jpg');
background-repeat: no-repeat;
background-size: cover;
}
nav{
width: 100%; height: 15vh;
background: rgba(0,0,0,0.2);
color: white; display: flex;justify-content: space-between;
align-items: center; text-transform: uppercase;
}
nav .Logo{
width: 25%; text-align: center;
color: white;
}
nav .Menu{
width: 40%;
display: flex; justify-content: space-around;
}
nav .Menu a{
width: 25%;
text-decoration: none; color: white;
font-weight: bold;
}
nav .Menu a:first-child{
color: #00b894;
}
main{
width: 100%;
height: 85vh;
display: flex;
justify-content: center;
align-items: center;
text-align: center; color: white;
}
section{
}
section h3{
font-size: 35px; font-weight: 200; letter-spacing: 3px;
text-shadow: 1px 1px 2px black;
}
section h1{
margin: 30px 0 20px 0;
font-size: 55px;
font-weight: 700;
text-shadow: 2px 1px 5px black;
text-transform: uppercase;
}
section p{
font-size: 25px;
/*color: #eee;*/
word-spacing: 2px;
margin-bottom: 25px;
text-shadow: 1px 1px 1px black;
}
section a{
padding: 12px 30px;
border-radius: 4px;
outline: none;
text-transform: uppercase;
font-size: 13px;
font-weight: 500;
text-decoration: none;
letter-spacing: 1px;
transition: all .5s ease;
}
section .btnone{
/*background: #00b894;*/
background: white;
color: black;
}
.btnone:hover{
background: #00b894;
color: white;
}
section .btntwo{
/*background: #00b894;*/
background: #00b894;
color: white;
}
.btntwo:hover{
background: white;
color: black;
}
.change_content:after{
content: ' ';
animation: changetext 10s infinite linear;
color: #00b894;
}
@keyframes changetext{
0%{content: "Darjeeling "}
20%{content: "Agra "}
30%{content: "Sasaram "}
40%{content: "Patna "}
50%{content: "Gaya "}
60%{content: "Delhi "}
70%{content: "Mumbai "}
80%{content: "Chennai "}
90%{content: "Kolkata "}
100%{content: "Jaipur "}
}