


This article introduces the configuration and usage of include in html, so that HTML files can also implement the include function. Now let’s take a look at this article about html include
First, let’s introduce what is the include tag in html?
Anyone who can program knows the purpose of include. It can make some public pages directly call the page you want to display, but now most websites use static files. , then your include will not work in html. Some people may think that I can do it directly in the dynamic file. Then just generate it. If so, you will need to regenerate the entire site every time you change the include. The following will introduce how to make html itself parse include.
Home page, let’s take a look. Before we do any operation, we check the page source code. We can see that the include has not been parsed, but a line of code is still displayed.
<!--#include file="top.html"-->
The following is a detailed implementation configuration analysis:
The first step is to open IIS. The steps are as follows:
Click Start--Administrative Tools--IIS Manager
or
Start--Control Panel--Administrative Tools--IIS Manager
The second step is to open the properties panel of the website.
Please pay attention here. It depends on whether you want to set up a single website or all websites in the entire IIS. If a single website directly clicks on the website, select the website properties panel you want to set. The following is What you are introducing is the entire IIS website.
The third step, after opening the website properties panel, operate in sequence:
Home directory--Configuration
Open the configuration panel of the home directory;
#The fourth step is to select the first "Mapping" option in the pop-up "Application Configuration" panel.
Then find .shtml in the box below
The fifth step is to hit .shtml and double-click the record, then click the "Edit" button below
#The sixth step is to copy the .shtml executable file in the pop-up editing panel.
C:\WINDOWS\system32\inetsrv\ssinc.dll
Then click Cancel or OK and close the .shtml editing panel
Step seven, select the first "Mapping" option in the "Application Configuration" panel. Then click Add;
Enter the following information in sequence
Executable file: C:\WINDOWS\system32\inetsrv\ssinc.dll
Extension: .html
Action: GET, POST
The executable file here is the .shtml executable file copied in the previous step.
After editing, click OK, and then save the settings just now. There is no need to restart IIS. All settings have now been completed.
Finally, let’s look at the page just now, and we see that the include information has been parsed. Don't show anymore<!--#include file="top.html"-->
Okay, the above is the analysis of the include configuration in html. If you have any questions, you can ask them below. Question
【Editor's Recommendation】How to center the Chinese characters in the col tag in
html? Basic use of html col tags (with examples included)
The above is the detailed content of What is the include tag in html? html include implements configuration parsing. For more information, please follow other related articles on the PHP Chinese website!

本篇文章带大家了解一下HTML(超文本标记语言),介绍一下HTML的本质,HTML文档的结构、HTML文档的基本标签和图像标签、列表、表格标签、媒体元素、表单,希望对大家有所帮助!

当我们在使用 PHP 编写网页时,有时我们需要在当前 PHP 文件中包含其他 PHP 文件中的代码。这时,就可以使用 include 或 include_once 函数来实现文件包含。那么,include 和 include_once 到底有什么区别呢?

总结了一些web前端面试(笔试)题分享给大家,本篇文章就先给大家分享HTML部分的笔试题(附答案),大家可以自己做做,看看能答对几个!

HTML5中画布标签是“<canvas>”。canvas标签用于图形的绘制,它只是一个矩形的图形容器,绘制图形必须通过脚本(通常是JavaScript)来完成;开发者可利用多种js方法来在canvas中绘制路径、盒、圆、字符以及添加图像等。

在html中,document是文档对象的意思,代表浏览器窗口的文档;document对象是window对象的子对象,所以可通过“window.document”属性对其进行访问,每个载入浏览器的HTML文档都会成为Document对象。

html5废弃了dir列表标签。dir标签被用来定义目录列表,一般和li标签配合使用,在dir标签对中通过li标签来设置列表项,语法“<dir><li>列表项值</li>...</dir>”。HTML5已经不支持dir,可使用ul标签取代。

3种取消方法:1、给td元素添加“border:none”无边框样式即可,语法“td{border:none}”。2、给td元素添加“border:0”样式,语法“td{border:0;}”,将td边框的宽度设置为0即可。3、给td元素添加“border:transparent”样式,语法“td{border:transparent;}”,将td边框的颜色设置为透明即可。


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SublimeText3 Linux new version
SublimeText3 Linux latest version

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

Notepad++7.3.1
Easy-to-use and free code editor
