a.html
ABC
b.html
<!--#include FILE="a.html" -->
XYZ
access b.html: file:///home/kurz/Desktop/b.html
it only shows XYZ
is this not the way to include files in html?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
What you’re attempting is called a Server-Side Include (SSI). As such, it requires the pages be running on a webserver, rather than a local file.
When you’re requesting the page from a server, the server sees the
<!--#include FILE="a.html" -->preprocessor and performs the SSI.When you’re referencing it directly from your filesystem, such as
file:///home/kurz/Desktop/b.html, all your browser is doing is loading the raw html and interpreting that.