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"
width="200px"
height="300px"
/></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://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ2al8C2pE33zPF_KSPGzou2p5tIyNh8NhVSAgnKvV1RZTnyggRAHlSjoczETQkZUCBHTI&usqp=CAU"
alt=""
width="800px"
height="500px"
/>
</div>
<div class="text">
<h2>Software Developer</h2>
<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">
<table>
<tr>
<th>Language</th>
<th>Founded by</th>
<th>Founded year</th>
</tr>
<tr>
<td>HTML</td>
<td>Tim Berners-Lee</td>
<td>1993</td>
</tr>
<tr>
<td>CSS</td>
<td>HÃ¥kon Wium Lie</td>
<td>1994</td>
</tr>
<tr>
<td>JavaScript</td>
<td>Brendan Eich</td>
<td>1995</td>
</tr>
<tr>
<td>NodeJS</td>
...
CSS
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
header{
width: 100%;
max-width: 1430px;
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{
background-color:#475BF0;
border-radius: 5px;
color: #fff ;
text-decoration: bold;
}
.navcontainer ul li{
padding-right: 10px;
list-style: none;
font-size: 25px;
}
@media screen and (max-width:993px) {
header{
width: 100%;
max-width: 100%;
justify-content: space-evenly;
}
.navcontainer ul li{
font-size: 25px;
}
}