Home > Web Front-end > HTML Tutorial > What is iframe tag?

What is iframe tag?

云罗郡主
Release: 2019-01-31 13:15:16
Original
5936 people have browsed it

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]

What is iframe tag?

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>
Copy after login


The above is the detailed content of What is iframe tag?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template