Hướng dẫn dùng read frame trong PHP

Example

An inline frame is marked up as follows:

Nội dung chính

  • Definition and Usage
  • Browser Support
  • Global Attributes
  • Event Attributes
  • More Examples
  • Related Pages
  • Default CSS Settings
  • HTML Iframe Syntax
  • Iframe - Set Height and Width
  • Iframe - Remove the Border
  • Iframe - Target for a Link
  • Chapter Summary
  • HTML Exercises
  • Test Yourself With Exercises
  • HTML iframe Tag

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