HTMLで外部ファイルをインクルード(include)するには


HTMLで外部ファイルをインクルード(include)するには。
参考サイト

SSIを使用します。
SSI は Server Side Include の略です。

◆ <!--#include file="~" -->
◆ <!--#include virtual="~" -->

を使う。

<html>
<head>
<title>Sample Page</title>
</head>
<body>
<!--#include file="header.html" -->
本文
<!--#include file="footer.html" -->
</body>
</html>