What are the include tags in html? HTML include implementation configuration resolution

Source: Internet
Author: User
This article describes the configuration usage of the include in HTML, so that the HTML file can also implement the include feature, and now let's take a look at this article about HTML include.

Let's start by introducing what the include tag is in HTML.

Programmers know the purpose of the include, he can let some public pages directly to the page you want to display, but now the site is a lot of static files are used, then your include in the HTML does not work, some people may want me to directly do in the dynamic file inside. Then build on it, and if so, you need to regenerate the entire station each time you change the include. Here's how to get the HTML itself to parse the include.

Home, let's see, when we don't have an operation, we look at the page source code, can see whether the include is not resolved, or display a line of code.

<!--#include file= "top.html"-

The following describes the detailed implementation of configuration resolution:

The first step is to open IIS with the following steps:

Click Start-admin Tool--iis Manager

Or

Start--Control Panel--management tools--iis Manager

The second step is to open the Properties panel for the Web site.

Here are the attention to see whether you want to set up a single site or to set up the entire IIS Web site, if a single site to open the site directly, select the site you want to set the properties panel, the following is a description of the entire IIS Web site.

In the third step, after you open the Web Site Properties panel, proceed as follows:

Home Directory--Configuration

Open the configuration panel of the home directory;

Fourth step, select the first mapping option in the application configuration panel that pops up.

Then find it in the box below. shtml

Fifth step, after hitting the. shtml, double-click the record, then click the Edit button below

Sixth step, copy the. shtml executable file in the pop-up edit panel.

C:\WINDOWS\system32\inetsrv\ssinc.dll

Then click Cancel or OK, turn it off. shtml Edit Panel

Seventh step, select the first mapping option in the application configuration panel. then click Add;

In the inside, enter the following information in turn

Executable file: C:\WINDOWS\system32\inetsrv\ssinc.dll

Extension:. html

Action: Get,post

The executable file here is the. shtml executable file that you just copied in the previous step.

When you're done editing, click OK, and then save the settings you just set up without restarting IIS. This is all set to complete.

Finally, we just got back to that page and we saw that the include information was parsed out. No longer display <!--#include file= "top.html"-

Well, this is the parsing of the configuration of the include in HTML, questions can be asked below

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.