HTML - Html External Reference
is it possible to link html code from a seperate external html file.
example, the footer and header is always the same and the content changes. can i create a header.html and a footer.html and have my content pages link to the header.html and footer.html. so if i ever need to update the header or footer, i have to do it once. I tried to look on the net but don't know what key words to look under. thanks., Similar TutorialsThe tutorials on this site are geared toward the newcomer. However, the reference guide provides useful information that would be useful to anyone. http://www.halshtmlschool.com/ All the books I've seen are targeted at either newbies, experienced, or expert users. All I want is a reference that shows all the tags and all the formatting options. For example: Table <table></table> Table options <table style class height width border colspacing padding> Table row <tr></tr> Table row options <tr ..... > Table data <td></td> Table data options <td ..... > See? For every avaliable tag. I just need a reference, not code, nor how to's. Just a reference to the tags and parms they can take. If you know of a book title that covers this, please indicate. Thanks! I'm new to this forum, a complete newbie, but I was wondering how I can tell my html page to open another html page and read what is in the new page for that specific section. For example: I have google ads on the right side of my website, where I would put the ad, is there a way to link it to another html script without actually putting it in my html page? Kinda like a CSS sheet but the other way around. I don't want to have to go through every page to change the ad code, I just want to change an external sheet where the ad code is. I also want to do this for the body of my website where the content is. Can I link a external sheet that would input content into the body of the website? Hi I'm kinda new to all this. I can see this being the first question to a lot of questions and hope you guys can help. Firstly... Can I put a code in my ebay items so that the whole advert document (eg. item1.html) Can be externally loaded in. This way I can change the look of all my adverts by replacing the html files on my server and without having to touch ebay at all. Kind regards John First post here. Hope someone can help. I need to embed a table into hundreds of websites. the data in the table changes frequently. I want to be able to alter the table in one place and it changes it on every website. What I've done, and it works well in Firefox, is create a separate html file with the table which resides on the server. Then I use this code in the host website <object data=http://www.web-source.net type="text/html" width="600" height="400"> <embed src=http://www.web-source.net width="600" height="400"> </embed> Error: Embedded data could not be displayed. </object> It will not register in IE though. Works fine in Firefox. Any ideas as to how to solve this or a better easier way to do this?? Thanks in advance. Rich Hello everyone, I am working on a website for a webcomic at the moment and I need the following thing: I will have about 50 HTML pages, each with a different comic page on it. What I need is a drop down form list at the bottom of each page that would show all the other pages and when you would click on one of them, it would take you to said page. But the problem is that as time will go by, more pages will be added, and changing the code of the form on each 50 pages whenever a new one is added seems greatly contraproductive. Is there a way I can code this list separately and insert it somehow in every one of those 50 pages? This way all I would have to do would be editing the separate code and it will update on all the pages. I am quite new to building websites, so please excuse my noobness. Thank you. Hi I use an include to display an exteral html file in a div. If I strip the html file of all the header formatting, it displays fine. As soon as I add the header info, transitional info etc, it adds a couple of blank line breaks to the top of the text dsiplayed in the external div. How do I make it so the text starts at the top? Cheers Shaun Hi I use an include to display an exteral html file in a div. If I strip the html file of all the header formatting, it displays fine. As soon as I add the header info, transitional info etc, it adds a couple of blank line breaks to the top of the text dsiplayed in the external div. here's the link:www.mcbub.com How do I make it so the text starts at the top? thanks in advance! ok so to start off if I ask any dumb questions my apologizes. I have just started writing HTML code. I have done quite a bit of C++ but its been years and html is much different. Well here is my question I have made a dynamic sidebar for my webpages so I can cut out all those blocky link buttons at the top of the page. So I created an external html file and wrote the code for the side bar, but I can't figure out how to get it into my webpage html files. I am sure its something minor but I can't seem to figure it out. I have been able to get it on the page by using iframe but I really don't like iframe. One of the really big things is I want it locked to the right side of the browser screen so if you scroll it stays there. Also it needs to float above everything else so it will open on top of the webpage and no disrupt the content. I am sorry if this is a simple thing but I have spent 2 days reading everything I can on it and can't get it to work. I have tried it as a PHP file with include command. I tried link didn't work also. I know I could just include all the code on the pages but I am trying to learn how to use template correctly so as to make my pages as clean and SE friendly as possible. Last thing if I need to post some of the code up here to help I can do that. Well thanks in advance, this will make my day if I get this dang side bar to work. Thanks J Hi all, We have a few questions regarding the cashing of an HTML document Scenario : We have an HTML/jsp page with now cache response headers, and this needs a number of JavaScript files and CSS files to achieve the functionality. The following are our questions 1. With no-chache response headers in the base document, whether the included external javascript or css files will be cased in browser? 2. Is there any difference between firefox and IE in this regard? 3. If we decide to gizip the response for improving performance, will it make any difference in browser caching? 4. Is it possible direct the browser not to cache the base document, but cache the the heavy external files which are included? Looking forward for some quick suggestions. Thanks and regards, SAN Hi, I need to seek some advice from the gurus he - 1) What are the benefits of using the new XHTML 1.0 compared to HTML 4.01 specification? Currently my website is using HTML 4.01 Transitional doctype. Will it affect the current site layout if I change to XHTML 1.0? Does this new format supports the older browsers like Netscape 2 and IE 3.02? 2) As we all know, there are two ways we can implement the CSS on a website. There are Inline CSS and External CSS methods. Some people claimed the Inline CSS will process faster as the codes are embedded into the HTML codes itself. Is it true? Also, is there any impact on the page size? Your comments are very much appreciated. Thank you. Cheers, Hi, I want to use a text link in order add a certain page in my website, to the favorites list. But I want it to be added with a reference, so later on I will be able to see ( with the statistics program of my site) , how many times people entered This page through their favorites list. Right now I use this code, which does the job but without the reference: <p><u><span style="CURSOR: hand; COLOR: blue" onclick="window.external.AddFavorite(location.href, document.title);">Add to favorites </span></u></p> For example: If the page is http://www.help.com/me_please.html I would like the url that is added to the favorites list to be: http://www.help.com/me_please.html&ref=favorites Any help would be most appreciated Thanx Niv Hi dudes, I am having a value in the hidden field of the form and i need to use the value of the hidden field as the source for the anchor tag href. How could this be possible. Suggest me a solution as quick as possible. Thanks & regards, Muthuselvan.N So here's the sitch: Our website, Watershedpdx.com, works from its outside IP address UNLESS you are inside our local area network. It's a Comcast issue, and their router seems unable to rout internal requests for our own IP from the internal and around to the router. I know I could modify the .hosts file on every computer and such, but for now, I've opted for a slightly different solution: If I'm inside the building, I check our own website with it's local IP: http://10.1.10.197 Now, the issue comes up because I'm streaming video to the web at http://10.1.10.197:8079 and http://10.1.10.197:8078 Is there a way to reference this in the code without the IP address? For this to be visible to the internet, I link it in the code as http://watershedpdx.com:8078 - but then the computers in the building can't see it. Is there a reference like http://..:8078 that would work? i want to show '<' on my web page, but when I type in '<' i get '<' and when I use '<code><</code>' or <pre><</pre> -- i still get '<' on the webpage. the only way that i can display '<' is to use '&lt; is there another way OK it said be specific so here it is. I am a first time html'er infact I am just now in an html/css class, the downside is my honors organization wanted a website this week. I was able to build something novice like @ http://www.asu-bap.com what I noticed is when I use images or a css stylesheet on the index page everything works grandiose. However, when I reference the same style sheet on other pages such as join.html or announcements.html it would not use the style sheet. I got really irritated and just embedded the css into each page individually. Think that my code was just that bad and i had nowhere to go for help. Then... I tried to do an image on my calendar.html, and i had the same issue... I even tried (as I had with the css file) to create a brand new directory called calendar and putting the img in there. To no avail, it still would not pull up the image. I am like 90% sure my code is right for the image so then I found this website and decided to try to get help here. Here is my code for the calendar (its a word doc converted I just added links and img), I have everything uploaded to root directory. Please help. And if you fix what could have been my css referencing issue, I wills end you cookies! Code: <STYLE TYPE="text/css" MEDIA=screen> <!-- body { padding-left: 11em;} ul.navbar { list-style-type: none; padding: 0; margin: 0; position: absolute; top: 2em; left: 1em; width: 9em } ul.navbar li { background: white; margin: 0.5em 0; padding: 0.3em; } ul.navbar a { text-decoration: none } a:link { color: blue } a:visited { color: purple } address { margin-top: 1em; padding-top: 1em; border-top: thin dotted } --> </STYLE> <!-- Site navigation menu --> <div class="style1"> <ul class="navbar"> <li><a href="http://www.asu-bap.com/">Home</a> <li><a href="http://www.asu-bap.com/forums/">Forums</a> <li><a href="http://www.asu-bap.com/announcements.html/">Announcements</a> <li><a href="http://www.asu-bap.com/join.html/">How to Join Beta Alpha Psi</a> <li><a href="http://www.asu-bap.com/calendar.html/">Calendar of Events</a> </ul> <img src="1_BAP_color.jpeg" /> Hi folks. I suspect this a total noob type question but I can't find anything in DW help or by searching so here goes. I have a page with frames. In one of the frames I want an external URL to be displayed rather than content from the mother site, if that makes any sense. I don't mean asa a link, I mean the actual content to be displayed. How do I do that? Something like... TopFrame = ./top.html LeftFrame = ./left.html BottomFrame = someother.domain/fred.html And they all get shown when the page is loaded. Ta muchly for your help! Simon. Could anyone please tell me the code to call an external html file? I need to refresh my memories! I have managed to get an external style sheet to work on 7 of my 8 pages. I cannot figure out why it will not work on the 8th page. The code was copied and then modified to fit the new page so there should be no reason it shouldn't work. http://ironhillsclan.com the forum page (rules.html) is the only on that doesn't work. Any ideas? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Dagorhir | Iron Hills Clan: Forum Rules</title> <link rel="stylesheet" type="text/css" href="style.css"/> <meta name="keywords" content="iron,hills,dagorhir,larp,sword,fighting,clan,ragnarok,battle,forum,rules"/> <meta name="description" content="These are the rules for our fourm, please abide by them for the sake of all."/> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <meta http-equiv="Content-Language" content="EN-GB"> <script type="text/javascript"> function show_confirm() { var r=confirm("By choosing yes you agree that you have read, understand, and will abide by the terms of use."); if (r==true) { location.href = "phpBB3/index.php" } else { location.href = "index.html" } } </script> </head> <body> ... </body> </html> Is it possible to log the amount of times an external link has been clicked on your site? |