Question

Status:Closed    Asked:Oct 02, 2008 - 11:57 AM

how to include html file in my html page

how do I include an html file within another html file, if I want to use the same header in all the files? I don't want to use any server side language for this, and hopefully it should be easy to index for search engines as well.
Is this possible and how?


Add New Comment


 
Do you have the same question? Follow this Question
 

Answers

How about using frames? You can embed number of other pages within one

eg here is one where there are two rows, and the second row is divided by 2 columns

The sizing is done by percentage
First 20% is the first row and it shows this site
Second row is split in half and shows bbc and itv

Note, you can use your own pages, code supplied is simply an example.














More info here http://www.w3schools.com/HTML/html_fr...


Add New Comment


 

Oct 03, 2008 - 01:39 AM

0
0
Report it

nidhi, i never got back on this, sorry.
frames would be an option, but i don't like it in terms of search engine optimization. The page would get indexed as separate frames, thus harder to optimize and it's also complicated to keep a good userexperience with this (bookmarking pages, using the back-button etc.)


Add New Comment


 

Mar 04, 2009 - 11:58 AM

0
0
Report it

use the very stylish prototype window class;)
its in javascript and like a desktop window ind your browser.
http://prototype-window.xilinus.com/
But be careful.
The documentation is very bad


Add New Comment


 

Apr 28, 2009 - 06:29 AM

0
0
Report it

thanks for your response, the prototype library looks great.
But how exactly would you accomplish adding an html header? I couldn't see any example for that.
And would it be SEO-friendly?


Add New Comment


 

Apr 29, 2009 - 01:05 AM

0
0
Report it

throug div
you just mention reference like


Add New Comment


 

Apr 29, 2009 - 10:43 AM

0
0
Report it

So what you're saying is that with javascript i dynamically insert html in a specific div on the page?

As I said before, I am concerned about SEO, so would that be an issue that the content of that DIV wouldn't be indexed by a search engine?


Add New Comment


 

Apr 30, 2009 - 01:21 AM

0
0
Report it

In this way u add this description for opening:

or
Open this
from:M.Amman Khan


Add New Comment


 

Apr 30, 2009 - 08:07 AM

0
0
Report it

Thanks, M. Amman, so is that like using Iframes?

Is the src-attribute on DIVS valid in all browsers?

And what about the SEO issue?


Add New Comment


 

May 01, 2009 - 06:29 AM

0
0
Report it

David first u create CSS file and write that condition for e.g
div.frame{background-image:url(Pic/1.jpg);}
second in new file just give
and then pass object of div in this way:-

that's it....ok


Add New Comment


 

May 01, 2009 - 08:15 AM

0
0
Report it

"Making your site accessible for all is a matter of courtesy, is good business practice, and is not difficult,"
Here's an example using the D-Link:

Graph of Number of Chimps in Asia by LocationD

There is a brief example of this on the regular SEO Toolbox site: http://www.seotoolbox.com/spider-frie.... There is more complete information, with two examples, at: http://www.seotoolbox.com/htmlchat/tables_layout.html."


Add New Comment


 

May 01, 2009 - 08:23 AM

0
0
Report it

Thanks for your help, Muhammad Amman. You deserve the points...


Add New Comment


 

May 05, 2009 - 01:34 PM

0
0
Report it

Thanks David for this act of kindness.......


Add New Comment


 

May 06, 2009 - 08:39 AM

0
0
Report it

this only available with iframe methoD


it's a simple HTML tags..

but search engines saw this two pages seperately..


Add New Comment


 

May 14, 2009 - 10:30 AM

0
0
Report it

this only available with iframe methoD


it's a simple HTML tags..

but search engines recognise this two pages seperately..


Add New Comment


 

May 14, 2009 - 10:30 AM

0
0
Report it

iframe is not better as compare to div
david u can use just create CSS file and write that condition for e.g
div.frame{background-image:url(Pic/1.jpg);}
second in new file just give
and then pass object of div in this way:-

that's it....ok i m 100% sure ur project will work


Add New Comment


 

May 14, 2009 - 11:24 AM

0
0
Report it


OTHER QUESTIONS NEEDING ANSWERS

Do search engines have problems if the content of my index page is contained ...
Login   |   Register

Ask a question on Quomon


david
1429
16
77 questions
53 questions
Experienced, Knowledgeable, Contributor

 | Direct a question to this member
nidhi
15385
1
524 questions
0 question
Guru, Maestro, Hardcore, Experienced, Knowledgeable, Contributor

 | Direct a question to this member
shadow_of_exitus
600
86
10 questions
0 question
Knowledgeable, Contributor

 | Direct a question to this member
Muhammad Amman
700
49
20 questions
0 question
Knowledgeable, Contributor

 | Direct a question to this member
kastuff
540
210
4 questions
0 question
Knowledgeable, Contributor

 | Direct a question to this member
Urypomuer
170
3156
11 questions
0 question

 | Direct a question to this member
hiphop
136
3165
7 questions
0 question

 | Direct a question to this member
Quintin854
91
3189
5 questions
0 question

 | Direct a question to this member
Hee Huntington
83
3196
3 questions
0 question

 | Direct a question to this member