Re: How to include HTML code from an external file
by "Tom Duquette" <trduquette(at)yahoo.com>
|
Date: |
Wed, 16 Jan 2002 21:54:17 -0800 |
To: |
<hwg-basics(at)hwg.org> |
References: |
on |
|
todo: View
Thread,
Original
|
|
----- Original Message -----
From: "George Tsang" <George_Tsang(at)btib.css.gov.on.ca>
To: <hwg-basics(at)hwg.org>
Sent: Wednesday, January 16, 2002 10:39 AM
Subject: How to include HTML code from an external file
> Greetings,
>
> If I can use the <script> tag to bring in JavaScript code from an external
> file (e.g. whatever.js), and the <link> tag to bring in CSS code from a
file
> with a name like whatever.css, is there a way to bring in HTML code from
an
> external file as well? I tried to use <script> and <link> without success.
>
> Thanks in advance.
>
> George Tsang
> (416)327-4749
> george_tsang(at)btib.css.gov.on.ca
Ok maybe I am not understanding this situation but the "OBJECT" element
combined with it's "DATA" attribute does come to mind. It might have started
out with some specific purpose in mind but in looking at the html 4
specification its an arbitrary value. It can be any media object, document,
applet, ActiveX control or even an image file.
I tested it locally by making a small page footer with the "contact or
webmaster...All rights reserved" stuff just using the html and body tags and
named the file bottomtext.html. I centered it all between div tags and
webmaster had the mailto link and bingo there it was at the bottom of the
page. It should validate ok. Internet explorer 3 and Netscape 4 support it.
No worries about javascript or need to turn on ssi on your server. Maybe
this will do it for you.
Please let me know. This has got me thinking about this element now.
Hope it helps.
Tom Duquette
trduquette(at)yahoo.com
HTML: hwg-basics mailing list archives,
maintained by Webmasters @ IWA