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

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -