Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use the iframe attribute tag

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly introduces how to use the iframe attribute tag, the article is very detailed, has a certain reference value, interested friends must read it!

IFRAME is a HTML tag that acts as a document in a document, or a floating FRAME. The iframe element creates an inline frame (that is, an inline frame) that contains another document.

Definition and usage instructions of iframe attribute tag

The tag specifies an inline framework.

An inline framework is used to embed another document in the current HTML document.

Tips and comments editin

Hint: the difference between HTML and XHTML: the iframe element is not supported in HTML4.1StrictDTD and XHTML1.0StrictDTD. You can put the text you need between and, so you can deal with browsers that don't understand iframe.

Iframe attribute is optional

#: new attribute in HTML5.

Attribute

Value

Description

Align

Left

Right

Top

Middle

Bottom

HTML5 does not support it. HTML4.01 is obsolete. Specify how to align according to the surrounding elements.

Frameborder

one

0

HTML5 does not support it. Specifies whether the surrounding border is displayed.

Height

Pixels

The required height.

Longdesc

URL

HTML5 does not support it. Specify a page that contains a longer description about it.

Marginheight

Pixels

HTML5 does not support it. The specified margin between the top and bottom.

Marginwidth

Pixels

HTML5 does not support it. The specified margin on the left and right.

Name

Name

The specified name.

Sandbox (#)

"

Allow-forms

Allow-same-origin

Allow-scripts

Allow-top-navigation

Define a series of additional restrictions on the content of.

Scrolling

Yes

No

Auto

HTML5 does not support it. Specifies whether the scroll bar is displayed in.

Seamless (#)

Seamless

The rule looks like part of the parent document.

Src

URL

Specifies the URL of the document displayed in.

Srcdoc (#)

HTML_code

Specifies that the HTML content in the page is displayed in.

Width

Pixels

The specified width.

Standard attribute editing

Core attribute

Attribute

Value

Description

Class

Classname

Specifies the class name of the element (classname)

Id

Id

Specify the specific id of the element

Style

Style_definition

Specifies the inline style of the element (inlinestyle)

Title

Text

Additional information about the specified element (can be displayed in a tooltip)

Language attribute

Attribute

Value

Description

Dir

Ltr | rtl

Sets the text orientation of the content in the element.

Lang

Language_code

Sets the language code for the content in the element.

Xml:lang

Language_code

Sets the language code for the content of the element in the XHTML document.

The above is all the content of the article "how to use the iframe attribute tag". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report