Hướng dẫn dùng w3schools iframe trong PHP


Example

An inline frame is marked up as follows:

Try it Yourself »

More "Try it Yourself" examples below.


Definition and Usage

The

Try it Yourself »


HTML tutorial: HTML Iframes

HTML DOM reference: IFrame Object


Default CSS Settings

Most browsers will display the

Tip: It is a good practice to always include a title attribute for the

Try it Yourself »

Or you can add the style attribute and use the CSS height and width properties:

Example

Try it Yourself »



Iframe - Remove the Border

By default, an iframe has a border around it.

To remove the border, add the style attribute and use the CSS border property:

Example

Try it Yourself »

With CSS, you can also change the size, style and color of the iframe's border:

Example

Try it Yourself »


An iframe can be used as the target frame for a link.

The target attribute of the link must refer to the name attribute of the iframe:

Example

W3Schools.com

Try it Yourself »


Chapter Summary