How can I contain (or include) another HTML (or ASP) in a HTML ? Do I need to use JavaScript ?

Who is Participating?
You can using server side include

for example if you want to include a.html in b.html, then add a sentence in b.html

<!--#include file="a.html" -->

It can also work in ASP.

Apart from the server side include, if you want to include a javascript file. for example if you want to include a class in c.js in b.html, add this sentence

<script type="text/javascript" language="Javascript" src="c.js">

If you have a common style steet d.css want to include in b.html. you can add this sentence

<Link Rel=Stylesheet href="d.css" type="text/css">

Wish it can help

andrewyuAuthor Commented:
Thank you very much !

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.