Ifrems are used to show website inside a HTML page.

<iframe src="URL"></iframe>

Iframe and the Attribute:

Align: You can use left, right, top, middle or bottom to align the Iframe.

<iframe src="URL" align="left"></iframe>

Frameborder: You can use 0/1 to hide or display frame border. You can also use no/ yes.

<iframe src="URL" align="left" frameborder="0"></iframe>

Height: You can set iframe height either in pixel (px) or percentage(%).

<iframe src="URL" align="left" height="250px"></iframe>

Marginheight: You can set iframe top and bottom margin in pixel for contents inside an iframe with the help of marginheight.

<iframe src="URL" align="left" marginheight="20px"></iframe>

Marginwidth: You can set iframe left and right margin in pixel for contents inside an iframe with the help of marginheight.

<iframe src="URL" align="left" marginwidth="50px"></iframe>

Name: Name attribute is used to assign a name to the iframe.

<iframe src="URL" align="left" name="myFrame"></iframe>

Scrolling: You can show/ hide the scrollbar of the iframe. The value are yes, no or auto.

<iframe src="URL" align="left" scrolling="no"></iframe>

Width: You can set iframe width either in pixel (px) or percentage(%).

<iframe src="URL" align="left" width="100%"></iframe>
Top