JSFiddle - React, Tailwind, and code Playground
by Abhishek27Sharma
HTML
<html>
<head>
<title>HTML</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="bodycontainer">
<header>
<div class="logocontainer">
<a href="#"
><img
src="https://www.logodesign.net/assets/images/new-ui/logo-category-abstract-logo.png"
alt="Logo"
/></a>
</div>
<div class="navcontainer">
<ul>
<a href="#"><li>Home</li></a>
<a href="#"><li>About us</li></a>
<a href="#"><li>Contact us</li></a>
</ul>
</div>
</header>
<section class="content">
<div class="banner">
<img
src="https://c0.wallpaperflare.com/preview/804/266/417/italy-bologna-minimal-machine.jpg"
alt=""
width="800px"
height="500px"
/>
<h2>Software Developer</h2>
</div>
<div class="text">
<p>
The difference between Front-End and Back-End is that Front-End
refers to how a web page looks, while back-end refers to how it
works. You can think of Front-End as client-side and Back-End as
server-side.
</p>
</div>
<div class="holder">
<h2>Languages in Forntend and Backend</h2>
<table>
<tr>
<th>Language</th>
<th>Founded by</th>
<th>Founded year</th>
</tr>
<tr>
<td><a href="#">HTML</a></td>
<td><a href="#">Tim Berners-Lee</a></td>
<td>1993</td>
</tr>
<tr>
<td><a href="#">CSS</a></td>
<td><a href="#">HÃ¥kon Wium Lie</a></td>
<td>1994</td>
</tr>
<tr>
<td><a href="#">JavaScript</a></td>
<td><a href="#">Brendan Eich</a></td>
<td>1995</td>
</tr>
...
CSS
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
/*--Header--*/
header{
width: 100%;
max-width: 1130px;
margin: auto;
display: flex;
justify-content: space-between;
padding-top: 20px;
margin-bottom: 50px;
}
header img{
width: 150px;
height: 150px;
padding-top: 30px;
margin-left: 20px;
}
.navcontainer{
display: flex;
align-items: center;
}
.navcontainer ul{
display: flex;
padding-right: 30px;
}
.navcontainer ul a{
text-decoration: none;
transition: 0.5s;
margin-right: 10px;
padding: 10px;
color: #475BF0;
}
.navcontainer ul a:hover{
transform: scale(1.2);
}
.navcontainer ul li{
padding-right: 10px;
list-style: none;
font-size: 25px;
}
@media screen and (max-width:993px) {
header{
max-width: 100%;
justify-content: center;
}
}
@media screen and (max-width:600px) {
header img{
width: 100px;
height: 100px;
}
header .navcontainer ul{
display: block;
padding-left: 20px;
}
header .navcontainer ul a{
font-size: 15px;
}
}
/*--Section--*/
.banner{
position: relative;
}
.banner img{
width: 100%;
height: 80vh;
}
.banner h2{
position: absolute;
top: 100;
text-align: center;
width: 100%;
color: #F158F8;
font-size: 90px;
cursor: pointer;
}
.text{
width: 100%;
max-width: 1130px;
margin: auto;
font-size: 24px;
padding: 20px;
line-height: 50px;
font-weight: 500;
border: 1px solid #475BF0;
margin-top: 20px;
border-radius: 20px;
margin-bottom: 30px;
}
.text:hover{
transform: scale(1.1);
color: #fff;
background-color: #475BF0;
}
.holder{
width: 100%;
max-width: 1130px;
margin: auto;
}
.holder h2{
color: #475BF0;
text-align: center;
margin-bottom: 20px;
font-size:35px;
}
.holder h2:hover{
color: #F158F8;
transform: scale(1.1);
...