HTML5 inline framework iFrame, html5 inline iframe
Currently, frame and frameset are rarely used and are out of date and replaced by div + CSS. Here is an example of the inline framework iFrame currently in use.
The so-called iFrame inline framework, in my understanding, is to nest a webpage inside the webpage, and can be nested at a level.
Example:
/*
The example consists of index.html and iframe1.html?iframe2.html=iframe3.html.
*/
First upload the image, followed by the complete code.
After clicking
The complete code is as follows:
Index.html
1 <! DOCTYPE html> 2
Iframe1.html
1 <!DOCTYPE html> 2
Iframe2.html
1 <!DOCTYPE html> 2
Iframe3.html
1 <!DOCTYPE html> 2
It seems that mainstream websites do not adopt this layout, and the application scope is also relatively small.
Zhihu comments:
What are the advantages and disadvantages of Iframe? Which well-known websites in China still use Iframe? Why? Which of the original ones have been abandoned now? Why?