Home  >  Article  >  Web Front-end  >  Some discoveries and thoughts about iframe _HTML/Xhtml_Web page production

Some discoveries and thoughts about iframe _HTML/Xhtml_Web page production

WBOY
WBOYOriginal
2016-05-16 16:42:001129browse

This starts with an unexpected discovery today. The company has several websites. There are links between each other in the friend chain. I just changed a link and wanted to check it. When I checked it with the webmaster tool, I found that it didn’t have my own link! It turns out that I put the friend link in footer.hmtl. Then embed it into the homepage through iframe. In this way, what is detected is not the home page link, but the link to the footer page. The same goes for search engines. Search engines will look at the pages introduced by iframes and follow the links inside, but they don't pay that much attention. And each separate iframe is also processed as a separate page. In fact, this can be found when viewing the source code of the page. You can only see the code of the iframe, but not the code of the page inside.

Code

Copy code
The code is as follows:

< div id="foot" class="clear_left">




Based on the consideration of these issues. There are many places where iframe cannot be used. Although sometimes it is very useful.
iframe is no longer intentionally used. Of course find a way to replace it. The first thing that comes to mind is of course include, and there are many types of include. As far as jsp is concerned, there are two types: one is the include instruction %@include file=""%>, and the other is the jsp action instruction: The former is suitable for including static files, and the latter is suitable for including dynamic jsp. There is another ssi command that has no direct relationship with jsp I only know about this method but have never used it. It seems to be parsed by the web server. I don't know the specifics, if anyone knows, please give me some advice.
By the way, I found that Tencent’s website does not use iframe. It is used by many other big websites, such as Sina, Taobao, etc. Looking forward to knowing the solution for qq.
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:Code to display the content of txt book on web page_HTML/Xhtml_Web page productionNext article:Code to display the content of txt book on web page_HTML/Xhtml_Web page production

Related articles

See more