Menu ▼

Previous Next

width :

width attribute we will use to set the width of the control.

Syntax :

<iframe width="width"></iframe>


Example :

<html>

<head>

    <title>HTML Tutorial</title>

</head>

<body>

    <iframe src="formexample.html" width="400px"></iframe>

    <table width="200px" border="1">

        <tr>

            <th>

                Col1

            </th>

            <th>

                Col2

            </th>

        </tr>

        <tr>

            <td>

                1

            </td>

            <td>

                2

            </td>

        </tr>

    </table>

</body>

</html>


Output :
HTML Tutorial
Col1 Col2
1 2
Previous Next




Search dotnetlearners.com