Frame; element; frame structure; inner frame; label

html iframe tag syntax

Function: will create an inline frame (i.e. inline frame) containing another document.

Note: You can place the required text between <iframe> and </iframe>, so that you can deal with browsers that cannot understand iframe.

Note: In HTML 4.1 Strict DTD and XHTML 1.0 Strict DTD, the iframe element is not supported.

html iframe tag example

<!DOCTYPE html>
<html lang="en">
<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>

Run instance »

Click the "Run instance" button to view the online instance