467,198 Members | 1,205 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,198 developers. It's quick & easy.

How do I include another file inside a HTML file?

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
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<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>


this inside index.html

<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"-->
Mar 12 '08 #1
  • viewed: 2052
1 Reply
Expert 512MB
Hello yemen2007:

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

Mar 24 '08 #2

Post your reply

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

Similar topics

2 posts views Thread by Kupo | last post: by
43 posts views Thread by steve | last post: by
1 post views Thread by Kevin | last post: by
23 posts views Thread by Big Bill | last post: by
11 posts views Thread by cybervigilante | last post: by
4 posts views Thread by Jon Slaughter | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.