not able to include one html file in another -
a.html
abc
b.html
<!--#include file="a.html" --> xyz
access b.html: file:///home/kurz/desktop/b.html
it shows xyz
is not way include files in html?
what you're attempting called server-side include (ssi). such, requires pages running on webserver, rather local file.
when you're requesting page server, server sees <!--#include file="a.html" -->
preprocessor , performs ssi.
when you're referencing directly filesystem, such file:///home/kurz/desktop/b.html
, browser doing loading raw html , interpreting that.
Comments
Post a Comment