JSFiddle - React, Tailwind, and code Playground

by Abhishek27Sharma

HTML

<html>
  <head>
    <title>HTML</title>
    <link rel="stylesheet" href="style.css" />
    <link
      rel="stylesheet"
      href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css"
      integrity="sha512-SzlrxWUlpfuzQ+pcUCosxcglQRNAq/DZjVsC0lE40xsADsfeQoEypE+enwcOiGjk/bSuGGKHEyjSoQ1zVisanQ=="
      crossorigin="anonymous"
      referrerpolicy="no-referrer"
    />
  </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="useri">
          <a><i class="fa-solid fa-user"></i></a>
          <a><i class="fa-solid fa-phone-volume"></i></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>
        <div class="headermenubar">
            <i class="fa-solid fa-bars"></i>
        </div>
      </header>

      <section class="content">
        <div class="banner">
          <img
            src="https://c0.wallpaperflare.com/preview/804/266/417/italy-bologna-minimal-machine.jpg"
            alt=""
          />
          <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>
           ...

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;
}

.useri{
    display: none;
}

.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;
}

.headermenubar{
    display: none;
}

@media screen and (max-width:993px) {
    header{
        max-width: 100%;
        justify-content: center;
    }
}

@media screen and (max-width:600px) {

    header{
        justify-content: space-between;
    }

    header img{
        width: 100px;
        height: 100px;
    }

    header .navcontainer ul{
        display: none;
    }

    .navcontainer{
        display: none;
    }

    .useri{
        display: flex;
        align-items: center;
        padding-top: 30px;
        font-size: 20px;
    }

    .useri i , .headermenubar i{
        color: #475BF0;
    }

    .useri i:first-child{
        margin-right: 20px;
    }

    .headermenubar{
        display: flex;
        align-items: center;
        padding-top: 30px;
        padding-right: 30px;
        font-size: 20px;
    }

}


/*--Section--*/

.banner{
    position: relative;
}
.banner img{
    width: 100%;
    height: 80vh;
}

.banner h2{ 
    position: absolute;
    top: 0;
    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;
  ...