How do I include another file inside a HTML file?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yemen2007
    New Member
    • Dec 2007
    • 2

    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_i nfo.html">Conta ct Us</a>
    <a href="copyright _info.html">Cop yright &copy; 2000-2002</a>
    <a href="about_us. html">Tailspin Toys</a>

    this inside the header.html
    <HTML>
    <HEAD>
    <TITLE>personal 001</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="#FFFFF F">
    <tr>
    <td align="center" valign="top">
    <table width="780" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFF F">
    <tr bgColor=FF9933>
    <td width="40">&nbs p;</td>
    <td width="86"><IMG SRC="index_05.j pg" WIDTH=86 HEIGHT=100 ALT=""></td>
    <td width="650">
    <p align="justify" >
    <font size="p_size" color=p_color face="p_face">& nbsp;&nbsp;&nbs p;&nbsp;&nbsp;& nbsp;&nbsp;&nbs p;&nbsp;&nbsp;& nbsp;&nbsp;&nbs p;&nbsp;&nbsp;& nbsp;&nbsp;&nbs p;&nbsp;&nbsp;& nbsp;&nbsp;&nbs p;&nbsp;&nbsp;& nbsp;&nbsp;&nbs p; &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>Tailsp in 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>
  • nomad
    Recognized Expert Contributor
    • Mar 2007
    • 664

    #2
    Hello yemen2007:

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

    nomad

    Comment

    Working...