Table of Contents

HTML & CSS Snippet 3 Source code w3pupil.com

Share Now :

Title : HTML & CSS Table Ui Using HTML & CSS

Description

Hello W3PUPIL!!

W3pupil provides a dynamic and visually appealing table snippet that showcases your data in a single glance. This table snippet is created with precision using HTML and CSS.

Creating an innovative table snippet using HTML and CSS is a fundamental web development skill. HTML provides the structure, while CSS enhances its style and layout. A typical table consists of rows and columns, each filled with data or content. CSS can be used to customize the table’s appearance. By combining HTML and CSS, you can create visually appealing and organized tables that effectively present information on your website. Properly styled tables not only improve readability but also contribute to a more engaging user experience, making them a valuable tool in web design. Additionally, CSS allows you to add hover effects and responsive design, making your tables interactive and accessible on various devices. This table is fully responsive, ensuring a seamless viewing experience on various devices. Whether on a desktop, laptop, tablet, or smartphone, your data is always presented in an organized manner.

By using this HTML and CSS table snippet, you’re not just sharing information – you’re demonstrating your dedication to professionalism and contemporary web design. Show off and interact with the world with this innovative and informative table snippet.

Let's know how to create a file..

Creating and managing files and folders efficiently is crucial for a seamless development experience.A step-by-step tutorial is provided below:

W3pupil’s suggestion is to download and install Visual Studio Code.

  • After the successful completion of downloading and installing, open Visual Studio Code.
  • Create a new folder in your desktop.
  • Go to file and then open the folder created.
  • Then add a file for html with “.html” or “.htm” extension.
  • Also add another file for css with “.css” extension.
  • Now, you have a blank HTML file and CSS file ready for your code.

Let's know how to open a downloaded file..

  • After downloading the snippet file from W3pupil, you will receive a zip file.
  • Extract the file and open it in Visual Studio Code.
  • Now you have the HTML file and CSS file to work with.
  • Take time to fully understand the code’s functionality before making any desired changes.

Let's take a look at a code snippet created by W3pupil team using HTML and CSS.

HTML SOURCE CODE LOGO

HTML Source Code

HTML (Hypertext Markup Language) is a standard markup language for creating web pages, defining their structure and content using a system of tags and elements. (index.html)

  
<!--Hello Future Developer Thanks for Using w3pupil.com, Share & Support us-->
<div class="container">
<div class="sub-container">
    <table>
        <tr>
            <th>TLD</th>
            <th>DURATION</th>
            <th>PRICE</th>
            <th>RENEWAL</th>
            <th>TRANSFER</th>
            <th>REGISTER</th>
        </tr>
        <tr>
            <td>.com</td>
            <td>2 years</td>
            <td>$70.00</td>
            <td>$5.00</td>
            <td>$10.00</td>
            <td><button>Sign In</button></td>
        </tr>
        <tr>
            <td>.in</td>
            <td>2 years</td>
            <td>$75.00</td>
            <td>$5.00</td>
            <td>$10.00</td>
            <td><button>Sign In</button></td>
        </tr>
        <tr>
            <td>.org</td>
            <td>2 years</td>
            <td>$65.00</td>
            <td>$5.00</td>
            <td>$10.00</td>
            <td><button>Sign In</button></td>
        </tr>
        <tr>
            <td>.me</td>
            <td>2 years</td>
            <td>$60.00</td>
            <td>$5.00</td>
            <td>$10.00</td>
            <td><button>Sign In</button></td>
        </tr>
        <tr>
            <td>.edu</td>
            <td>2 years</td>
            <td>$80.00</td>
            <td>$5.00</td>
            <td>$10.00</td>
            <td><button>Sign In</button></td>
        </tr>
        <tr>
            <td>.net</td>
            <td>2 years</td>
            <td>$55.00</td>
            <td>$5.00</td>
            <td>$10.00</td>
            <td><button>Sign In</button></td>
        </tr>
        <tr>
            <td>.blog</td>
            <td>2 years</td>
            <td>$50.00</td>
            <td>$5.00</td>
            <td>$10.00</td>
            <td><button>Sign In</button></td>
        </tr>
        <tr>
            <td>.net</td>
            <td>2 years</td>
            <td>$45.00</td>
            <td>$5.00</td>
            <td>$10.00</td>
            <td><button>Sign In</button></td>
        </tr>
    </table>
    <div class="credit">Made with <span>❤ </span>by <a href="https://www.w3pupil.com/">W3pupil</a></div>
</div>
</div>
<!--Check our website Regularly For New Snippets Post-->
  
CSS SOURCE CODE IMAGE

CSS Source Code

CSS (Cascading Style Sheet) enhances website aesthetics and layout, applying styles and design elements to create a visually appealing and responsive user interface. (style.css)

  /** 
Hello Future Developer Thanks for Using w3pupil.com, 
Check our website Regularly For New Snippets Post.

Share & Support us
**/
@import url('https://fonts.googleapis.com/css2?family=Mukta:wght@300&family=Nunito+Sans:opsz,wght@6..12,300&display=swap');
:root{
    --bg:#ffffff;
}
body{
    background-color: rgb(19, 19, 19);
    font-family: 'Mukta', sans-serif;
}
.container{
    min-height:100vh;
    max-width:auto;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
}
.sub-container{
    text-align: center;
    border-radius:5px;
    width:80vw;
}
.sub-container table{
    border-collapse: separate;
    border-spacing: 0px 15px;
    width:100%;
}
.sub-container  th{
    color: var(--bg);
    background-color:#383838;
    padding: 20px;
}
.sub-container  td{
    padding: 10px;
    background-color:#232323;
    color: #ffffff;  

}
.sub-container  td:first-child,th:first-child{
    border-top-left-radius:11px;
    border-bottom-left-radius:11px;
}
.sub-container  td:last-child,th:last-child{
    border-bottom-right-radius:11px;
    border-top-right-radius:11px;
}
.sub-container button{
    width:100px;
    height:30px;
    border: none;
    border-radius: 5px;
    background-color: #383838;
    color:var(--bg);
}
.sub-container button:hover{
    cursor: pointer;
    color:black;
    background-color:#aecbd4;
    transition:0.5s;
}
span{
    color:#ffffff
}
@media only screen and (max-width: 1024px){
    .sub-container{
        width:95vw;
    }
}
@media only screen and (max-width: 630px){
    .sub-container  th{
        display: none;
    }
    .sub-container  td{
        display:grid;
        grid-template-columns: 15ch auto;
        text-align: left;
        margin:5px;
        padding:5px;
        border-radius:11px;
    }
    .sub-container  td:nth-of-type(1)::before{
        content: "TLD" " :";
    }
    .sub-container  td:nth-of-type(2)::before{
        content: "DURATION" " :";
    }
    .sub-container  td:nth-of-type(3)::before{
        content: "PRICE" " :";
    }
    .sub-container  td:nth-of-type(4)::before{
        content: "RENEWAL" " :";
    }
    .sub-container  td:nth-of-type(5)::before{
        content: "TRANSFER" " :";
    }
    .sub-container  td:nth-of-type(6)::before{
        content: "REGISTER" " :";
    }
}
.credit a{
    text-decoration: none;
    color: #ddd;
    font-weight: 800;
}
.credit{
    color: #ddd;
    text-align: center;
    margin-top: 10px;
    font-family: Verdana,Geneva,Tahoma,sans-serif;
}  

Note :

  • The CSS is coded in a separate file and linked to the HTML file.
  • We have changed UI for mobile view for that if you add extra header in the table you must add nth-of-child in CSS.

Download :

Share and Support W3pupil.com

Conclusion :

To modify the code, you can download the snippet’s source code files. To enhance your skills in HTML and CSS, you can try to recreate other creative HTML and CSS snippets available on W3pupil. In case you experience any technical related doubts, you are welcome to contact W3pupil. We’ll try to solve your request at the earliest.

Like Reaction
Like Reaction
Like Reaction
Like Reaction
Like Reaction

LivePreview :