HTML Code for Table

HTML Code for Table

HTML table,table structure,table design,web development,front-end development,HTML,table headers,table rows,table columns,web design.,

 a basic example of an HTML table. This table includes headers, rows, and columns. You can customize the content and structure of the table according to your needs.


<!DOCTYPE html>

<html lang="en">


    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>HTML Table</title>


        table {

            width: 100%;

            border-collapse: collapse;

            margin-top: 20px;


        th, td {

            border: 1px solid #ddd;

            padding: 10px;

            text-align: left;


        th {

            background-color: #f2f2f2;















                <td>John Doe</td>


                <td>New York</td>



                <td>Jane Smith</td>


                <td>San Francisco</td>



                <td>Bob Johnson</td>


                <td>Los Angeles</td>






You can modify the content inside the `<thead>` and `<tbody>` sections to match your data. Additionally, you can adjust the styling properties in the `<style>` section to customize the appearance of the table.

Post a Comment

Previous Post Next Post