HTML <iframe> ਟੈਗ

  • ਪਿਛਲਾ ਪੰਨਾ <i>
  • ਅਗਲਾ ਪੰਨਾ <img>

Definition and Usage

<iframe> The tag defines an inline frame (inline frame).

Inline frames are used to embed another document within the current HTML document.

Tip:Use CSS to set <iframe> styles (see the example below).

Tip:It is best to always use <iframe> Contains the title attribute. Screen readers can use this attribute to read about <iframe> Description of content.

See also:

HTML Tutorial:HTML Iframe

HTML DOM Reference Manual:IFrame Object

Example

Example 1

Inline frame tag as follows:

<iframe src="https://www.codew3c.com" title="CodeW3C.com Online Tutorial"></iframe>

亲自试一试

例子 2

添加并删除 iframe 的边框(使用 CSS):



亲自试一试

属性

属性 描述
allow 规定