How do I include one HTML file inside another?
It's very common practice to have a consistent on a Web site. You might have a standard navigation bar or a logos or even just a page footer with copyright and administrative informatio N. Rather than
This is often used in Web pages, some of the common content can be centrally placed in a page file, the other to use the content of the page only need to include (reference) this generic file. This is easy to maintain, if there are many Web pages,
This is often used in Web pages, some of the common content can be centrally placed in a page file, the other to use the content of the page only need to include (reference) this generic file. This is easy to maintain, if there are many Web pages,
Embed a different page in the original page1. Using the IFRAME frameworkClient page nesting can use the method of the IFRAME, the disadvantage is that you have to think about how the nested pages in the first page to occupy a large position.If the
It is easy to reference an external page on a JSP page. Use the following statement: Include File= "Page to be referenced"->
But in HTMLStatic PageIt is not that convenient to reference external pages. The main methods are as follows:
1. The
Why can't PHP code directly save HTML files ?? & Gt; PHP static page generation tutorial
1. the server will parse the file based on its suffix. if it is an HTML file, the server will not parse the syntax, but directly output it to the browser. 2. if
include| Web pages have been built in the web. When we encounter a lot of content for static pages, and the page header and footer often to be replaced, if always use HTML files always have a lot of trouble. Because the batch modification is not
If you have duplicate code in multiple files, you can write this part of the code to a file, and then include the file in the desired place. Note that in this file, you only need these duplicate code, and do not need any other format or anything,
Students who write the page often encounter such a problem, that is, more and more HTML tags on the page, it will be difficult to find the specified part, then can be written in different files like JavaScript to introduce it? The answer is yes,
Server
What can be done with server-side include (SSI) statements (or directives)? Not much, unless you intend to create an executable file that runs on a Web server and access the ISAPI through STDIN and STDOUT functions. This means that you can
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.