How do you create a table in HTML give an example?

इस लेख में हम How do you create a table in HTML give an example? के बारे में पढ़ेंगे।

How do you create a table in HTML give an example?

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>HTML Table Example</title>
</head>
<body>

<h2>Sample Table</h2>

<table border="1">
    <tr>
        <th>Name</th>
        <th>Age</th>
        <th>Country</th>
    </tr>
    <tr>
        <td>John</td>
        <td>25</td>
        <td>USA</td>
    </tr>
    <tr>
        <td>Maria</td>
        <td>30</td>
        <td>Spain</td>
    </tr>
    <tr>
        <td>Li</td>
        <td>28</td>
        <td>China</td>
    </tr>
</table>

</body>
</html>

How to define a table caption in html with example

By- Education 4u

इसे भी पढ़े🚀

Leave a comment