Jump to content

what is the basic HTML code?


Rifat Al Rajo

Recommended Posts

  • 3 weeks later...

Hello, @Rifat Al Rajo

Try this code to generate Table in HTML

<html>
    <head>
        <title>table-layout</title>
    </head>
    <body>
        <table border="1" width="50%" height="50%" style="text-align: center;">
            <tr>
                <td colspan="5">1</td>
            </tr>
            <tr>
                <td colspan="3">2</td>
                <td colspan="2" rowspan="3">3</td>
            </tr>
            <tr>
                <td rowspan="3">4</td>
                <td colspan="2">5</td>
            </tr>
            <tr>
                <td rowspan="2">8</td>
                <td rowspan="2">9</td>
            </tr>
            <tr>
                <td>6</td>
                <td>7</td>
            </tr>
        </table>
    </body>
</html>

 

I hope above information will be useful for you.


Thank you.

Link to comment
Share on other sites


        <table border="1" width="50%" height="50%">
            <tr>
                <td colspan="5">1</td>
            </tr>
            <tr>
                <td colspan="3">2</td>
                <td colspan="2" rowspan="3">3</td>
            </tr>
            <tr>
                <td rowspan="3">4</td>
                <td colspan="2">5</td>
            </tr>
            <tr>
                <td rowspan="2">8</td>
                <td rowspan="2">9</td>
            </tr>
            <tr>
                <td>6</td>
                <td>7</td>
            </tr>
        </table>
   
Edited by shaili_shah
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...