yaragallamurali Posted November 30, 2014 Share Posted November 30, 2014 (edited) Hi friends, I have 20 html pages. For all the pages footer and header is common. I dont want to use div's and paste header and footer in all 20 pages. It is because if there is a change in header i have to change in all 20 pages. I want to keep header as a single html and want to include in all 20 html pages. For this we can use frames but in html 5 frames are absolute. So what is the way of doing this? Please help me out. Thanks in advance. Edited November 30, 2014 by yaragallamurali Link to comment Share on other sites More sharing options...
dsonesuk Posted November 30, 2014 Share Posted November 30, 2014 Best option server-side script PHP, ASP.NET, and include single header in all pages.The frame may be not supported, in HTML5 but iframes IS.JQuery can load content from other page, but not SEO friendly. Link to comment Share on other sites More sharing options...
yaragallamurali Posted November 30, 2014 Author Share Posted November 30, 2014 Hi Best option server-side script PHP, ASP.NET, and include single header in all pages.The frame may be not supported, in HTML5 but iframes IS.JQuery can load content from other page, but not SEO friendly. It is a static site so we dont want to use php or ,net or jsp. so may be iframe should be the choice. but is there any other better way?(not jquery) Link to comment Share on other sites More sharing options...
dsonesuk Posted November 30, 2014 Share Posted November 30, 2014 It seems you are just limited to just iframes, sorry. Link to comment Share on other sites More sharing options...
dustcomposer Posted November 30, 2014 Share Posted November 30, 2014 what is in the header? Link to comment Share on other sites More sharing options...
yaragallamurali Posted November 30, 2014 Author Share Posted November 30, 2014 some html code. basically one image and 3 divs. One div contains menu. 2nd div contains marquee. 3rd div contains caption. Link to comment Share on other sites More sharing options...
dsonesuk Posted November 30, 2014 Share Posted November 30, 2014 Well there is object tag as well, but! last time i used it with IE7, IE8 it was very problematic, it MIGHT have better support with modern IE versions, but i wouldn't get my hopes up on it until you try it, and i don't know if it affect search engine results. Link to comment Share on other sites More sharing options...
yaragallamurali Posted November 30, 2014 Author Share Posted November 30, 2014 The object tag is being blocked in IE8 as well. we need to manually say to ie8 to allow activex controls. then it is displaying a warning and on accepting the warning it is displaying the content. So not useful. Link to comment Share on other sites More sharing options...
Ingolme Posted November 30, 2014 Share Posted November 30, 2014 If you're serious about your website you should use a server-side language. Almost all web hosts these days have PHP installed with no extra cost, so since it's there you might as well use it. PHP is excellent for repeating content across many pages. iframes are the only pure HTML way to do it. Why are you opposed to jQuery? jQuery could at least provide a much smoother experience than iframes. You have jQuery and probably PHP at your disposal but refuse to use them. I can't understand why. Link to comment Share on other sites More sharing options...
yaragallamurali Posted November 30, 2014 Author Share Posted November 30, 2014 Ya thank you so much. finally decided to go with php. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now