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="/privacypolicy" width="600px"></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:

Col1 Col2
1 2