html can import html, the introduction method: 1. Use the iframe tag of HTML, the code is [
The operating environment of this tutorial: windows7 system, html5 version, DELL G3 computer.
html can import html, the introduction method:
has sorted out 3 methods, one is the iframe tag of HTML, and the other two are JS references. For example, to reference the index.html
file in the arr.html
file, the method is as follows.
1. HTML citation method:
<iframe name="toppage" width=100% height=100% marginwidth=0 marginheight=0 frameborder="no" border="0" src="index.html" ></iframe>
Copy after login
2. JS citation method:
<object style="border:0px" type="text/x-scriptlet" data="index.html" width=100% height=100%></object>
Copy after login
3.
<script type="text/javascript" src="index.js"></script>
Copy after login
Related learning recommendations: html video tutorial
The above is the detailed content of Can html be imported into html?. For more information, please follow other related articles on the PHP Chinese website!