By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,676 Members | 1,773 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,676 IT Pros & Developers. It's quick & easy.

How do I include another file inside a HTML file?

P: 2
hi ever one.
i have problem in my html file. i have header file , footer file, and index file.
i want compile the header , and footer in the index file use include file put it is not work. this my code.so plz hellp me

this inside the footer.html
<a href="contact_info.html">Contact Us</a>
<a href="copyright_info.html">Copyright &copy; 2000-2002</a>
<a href="about_us.html">Tailspin Toys</a>

this inside the header.html
<HTML>
<HEAD>
<TITLE>personal001</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
</HEAD>
<BODY BGCOLOR=#E6E6E6 LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td align="center" valign="top">
<table width="780" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr bgColor=FF9933>
<td width="40">&nbsp;</td>
<td width="86"><IMG SRC="index_05.jpg" WIDTH=86 HEIGHT=100 ALT=""></td>
<td width="650">
<p align="justify">
<font size="p_size" color=p_color face="p_face">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;</font><font color="#C0C0C0"><font size="5" color=p_color face="p_face"> </font>
<font face="p_face" size="7">Sample Site</font></font></td>
<td>&nbsp;</td>
</tr>
</table>

</BODY>
</HTML>

this inside index.html

<html>
<head>
<title>Tailspin Toys</title>
<!--#include virtual="header.html"-->
<p>This text is hard-coded into the page because it is unique to this page. specific to a single page.</p>
<!--#include virtual="footer.html"-->
</body>
</html>
Mar 12 '08 #1
Share this Question
Share on Google+
1 Reply


nomad
Expert 100+
P: 664
Hello yemen2007:

Can you please tell me what program you are using to create your htm files

nomad
Mar 24 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.