Computer Science, asked by rudran, 1 year ago

Write an HTML code in computer note book for displaying

Attachments:

rudran: no, just the html code to be written to get the above output.

Answers

Answered by Anonymous
0

Hi,


below is the code of above output all you have to do is copy this code and paste it in a file and save it as .html and open in a web browser.


<!DOCTYPE html>

    <html lang="en">

    <head>

        <meta charset="UTF-8">

        <title>Table Example</title>

        <style>

            table,td,th,tr {

                border: 1px solid black;

                border-collapse: collapse;

            }

        th,td {

            padding: 15px;

        }

    </style>

    </head>

<body>

    <table>

        <thead>

            <tr>

                <th>tag</th>

                <th>attribute</th>

                <th>valid option</th>

                <th>function</th>

            </tr>

        </thead>

        <tbody>

            <tr>

            <th>&lt;TABLE&gt;</th>

            <td>WIDTH</td>

            <td>value in pixels percentage</td>

            <td>Specifies fixed width of table<br/>Specifies width of table as a percentage of browser window width</td>

        </tr>

        <tr>

            <th></th>

            <td>Height</td>

            <td>value in pixels percentage</td>

            <td>Specifies fixed height of table<br/>Specifies height of table as a percentage of browser window height</td>

        </tr>

        <tr>

            <th></th>

            <td>CELLPADDING</td>

            <td>value in pixels</td>

            <td>Specifies thickness of empty zone surrounding contents of each cell</td>

        </tr>

        <tr>

            <th>&lt;TD&gt;</th>

            <td>WIDHT</td>

            <td>value in pixels percentage</td>

            <td>Specifies fixed width of cell, and applies to entire column<br>Specifies width of cell as a percentage of table width</td>

        </tr>

        <tr>

            <th>&lt;TD&gt;</th>

            <td>HEIGHT</td>

            <td>value in pixels percentage</td>

            <td>Specifies fixed height of cell, and applies to entire column<br>Specifies height of cell as a percentage of table height</td>

        </tr>

    </tbody>

    </table>

</body>

</html>



hope it helps you.



rudran: can you give it for class8
rudran: no this is for 8 grade
rudran: i know that is necessary but my child is in 8th grade
Similar questions