Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7693043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T20:59:32+00:00 2026-05-31T20:59:32+00:00

i want to include one html file into another, but it doesnt seem to

  • 0

i want to include one html file into another, but it doesnt seem to work out
the two files are
C:/wamp/www/AuctionVilla/index.html
and
C:/wamp/www/AuctionVilla/header.html

here’s my index.html file

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
 <link rel="stylesheet" type="text/css" media="screen" href="CSS/style.css" />
</head>

<body>
<div id="index_container">
<table align="center">
<tr>
<td>
    <table width="1000px" align="center" cellpadding="0" cellspacing="0" border="0">
       <tr>
       <td colspan="3">
          <!--#include virtual="C:/wamp/www/AuctionVilla/header.html" -->
       </td>
       </tr>
       <tr>
       <td colspan="3">&nbsp
       </td>
       </tr>
       <tr>
       <td width="350px">
       </td>
       <td width="5px" rowspan="3">&nbsp
       </td>
       <td width="650px" rowspan="3">
          <div id="product_container" class="divcontainer" style="width: 645px; height: 500px;">
          </div>
        </td>
        </tr>
        <tr>
        <td width="350px" height="5px">
        </td>
        </tr>   
        <tr>
        <td width="350px" height="355px">
           <div id="movie_container" class="divcontainer" style="width: 350px; height: 355px;">
          </div>
        </td>
        </tr>     
    </table>      
</td>
</tr>
</table>
</div>
</body>
</html>

and here’s my header.html file

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>header</title>
<link rel="stylesheet" type="text/css" media="screen" href="CSS/headerMenu.css" />
</head>

<body>
<div id="main_body">
    <div>
      <table cellpadding="0" cellspacing="0" border="0">
      <tr>
      <td>
         <object classid="clsid:1" codebase="../UAuction/Images/matrimony.swf" width="1000" height="228">
         <param name="Images/matrimony.swf" />
         <param name="quality" value="high" />
         <embed src="../UAuction/Images/matrimony.swf" quality="high" 
         pluginspage="http://www.macromedia.com/go/getflashplayer" 
         type="application/x-shockwave-flash" width="1000" height="228" wmode="transparent">
         </embed>
         </object>
      </td>
      </tr>
      </table>
    </div>
    <br/>
    <div id="topmenu">
    <table align="center" bgcolor="#000000">
     <tr> 
     <td>
   <ul id="css3menu">
        <li><a href="../UAuction/index.php">&nbsp Home</a></li>
        <li><a href="#">&nbsp Category</a>
        <ul>
            <li><a href="#">Art</a>
                 <ul>
                    <li><a href="#">Paintings</a></li>
                    <li><a href="#">Sculptures</a></li>
                 </ul>
            </li>    
            <li><a href="#">Books</a>
                 <ul>
                    <li><a href="#">Book</a></li>
                    <li><a href="#">Documentaries</a></li>
                 </ul>
            </li>    
            <li><a href="#">Furniture</a>
                <ul>
                    <li><a href="#">Chair</a></li>
                    <li><a href="#">Wardrobe</a></li>
                    <li><a href="#">Table</a></li>                       
                </ul>
            </li>   
            <li><a href="#">Sport Goods</a>
                 <ul>
                    <li><a href="#">Cricket</a></li>
                    <li><a href="#">Football</a></li>
                    <li><a href="#">Rugby</a></li>                       
                </ul>
            </li>   
        </ul>
    </li>
    <li><a href="../UAuction/register.php">&nbsp Register</a></li>
    <li><a href="#">&nbsp Top Bidders</a></li> 
    <li><a href="#">&nbsp Top Sellers</a></li>
    <li><a href="../UAuction/contact_us.php">&nbsp Contact Us</a>
        <ul>
            <li><a href="#">Partners</a></li>
            <li><a href="#">Offices</a></li>                       
        </ul>
    </li>    
    <li><a href="../UAuction/about_us.php">About Us &nbsp</a></li>     
</ul> 
     </td>
     </tr>
    </table>                 
    </div>
</div>
<script src="../UAuction/JQUERY/jquery.min.js" type="text/javascript" charset="utf-8"></script>   
<script src="../UAuction/JQUERY/jquery.effects.core.js" type="text/javascript"></script>
<script type="text/javascript" src="../UAuction/JQUERY/script.js"></script> 
</body>
</html>

i dnt knw whta seems to wrong, but it isnt workking fr me…

i tried to change the html to shtml but the file doesnt include at all..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T20:59:33+00:00Added an answer on May 31, 2026 at 8:59 pm

    If you only have HTML on your server, or you need only HTML files, you can use frames.

    <frameset rows="25%,75%">
      <frame src="header.html" />
      <frame src="index.html" />
    </frameset>
    

    or iframes like this (in your index.html file):

    <iframe src="header.html" />
    

    But, it is not recommended as it creates a kind of table. If you have PHP on your server, create a PHP file, and use

    include("header.html");
    

    If you have SSI (Server Side Includes) on your webserver, then have this:

    <!--#include virtual="header.html" -->
    

    Personally, I suggest you to use PHP method.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having two html files. One file should include the source of other
I want to include the last 2 files in my php file based on
What I want : To, on focus, change one input box into another by
I have two template files. One is a twig template and another is a
OK i have 2 files one is index.php and the other is file.html now
I can't get server side includes to work. I simply want to include one
I am using Spring 3.1 and want to include Spring Web Flow 2.3. One
I want to include validates_confirmation_of :password in a module but i keep getting errors
I want to include some dynamic part in the filename of the msi file
I want to include a header file only if a certain function body is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.