Home >Web Front-end >HTML Tutorial >What is iframe tag?
The
iframe tag specifies an inline frame, which acts as a document within a document, or a floating frame (FRAME). The iframe element creates an inline frame that contains another document (ie, an inline frame). [Recommended tutorial: HTML video tutorial]
Function: It will create an inline frame (i.e. inline frame) that contains another document.
Note: You can place the required text between , so that you can deal with browsers that cannot understand iframe.
Note: In HTML 4.1 Strict DTD and XHTML 1.0 Strict DTD, iframe elements are not supported.
html iframe tag example
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <iframe src="http://www.baidu.com" frameborder="0" width="100%" height="300px"></iframe> </body> </html>
The above is the detailed content of What is iframe tag?. For more information, please follow other related articles on the PHP Chinese website!