How do you create table with 2 rows and 3 cells?

Experience Level: Junior
Tags: HTML

Answer

For creating rows and cells you can use tag <table>.

Example

<html>
<head>
    ...
</head>
<body>
    <table>
        <tr>
            <th>first name</th>
            <th>last name</th>
        </tr>
        <tr>
            <td>Jim</td>
            <td>Smith</td>
        </tr>
    </table>
</body>
</html>

Comments

No Comments Yet.
Be the first to tell us what you think.
HTML for beginners
HTML for beginners

Are you learning HTML ? Try our test we designed to help you progress faster.

Test yourself