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

What is iframe tag?

云罗郡主
云罗郡主Original
2019-01-31 13:15:165934browse

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>


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

Statement:
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
Previous article:what is html tagNext article:what is html tag