This article mainly introduces the introduction of html iframe tags to let everyone know how to use iframe tags to nest pages for web pages. The content is very simple. You can follow this and practice it a few times. You will understand . I hope everyone can study well. Now let’s read this article.
Recommended manual: HTML5 latest version reference manual
Here the editor first introduces the usage of iframe tags in HTML:
How to embed another web page in a web page, we can use the iframe tag in html.
iframe supports all browsers.
Let’s look at the syntax:
<iframe src="规定在 iframe 中显示的文档的 URL" width="" height="" frameborder="1/0" name="iframe名称" scrolling="yes/no/auto"> </iframe>
Just write the html file you want to embed into the current web page in src.
Through this usage, you can know how to nest pages in html. iframes have other properties that allow you to change the styles used to place the areas of the embedded web page. Let’s take a picture
<iframe>主要是用来嵌套网页的。所以你要引入另一个页面就用<iframe>
Let’s give an example:
<iframe src="http://www.php.cn/course/type/4.html" width="1000px" height= "65px" name="topFrame" scrolling="No" noresize="noresize" frameborder="0" id="topFrame"></iframe>
Now let’s explain the above meaning:
To reference the external html page, I chose the link to the PHP Chinese website
widthThe width of the external page, 1000px can be read Bar
heightThe height of the external page, 65pxUnderstand
scrolling Whether there is a scroll bar
Recommended related articles: 1.[Recommended by the editor 】
What is the difference between iframe and frame? Summary of the difference between iframe and frame2.
What does iframe mean? Detailed explanation of floating frame iframeRelated video tutorials:
1.
Dugu Jiujian (1)_HTML5 video tutorial
What is html? A complete html code tells you (complete example version)
Should hackers learn PHP or python? Rational analysis of ten differences between PHP and python
The above is the detailed content of How to nest pages in html? The