Attach HTML like scripts and css...

liunx

Guest
This may seem a strange question but is there a method of adding links to snippets of html in your code. In much the same way as you write <br />
<br />
<script src=http://www.webdeveloper.com/forum/archive/index.php/"blah.js type="text/javascript></script> <br />
<br />
or<br />
<br />
<link rel="stylesheet" href=http://www.webdeveloper.com/forum/archive/index.php/"blah.css" type="text/css"> <br />
<br />
but for HTML?<br />
Thanks,<br />
<br />
IxxI<!--content-->Nothing client-side, but there are several ways to do this at the server. Talk to your people and find out what's available there.<!--content-->hi xx...<br />
<br />
You can use Includes to do that (if your server supports it)<br />
<br />
if you can use ASP or SHTML (and I assume PHP)... then you can use SSI<br />
<br />
just create a page full of html (and whatever) without the html, head, and body tags.<br />
<br />
such as:<br />
<br />
<table><tr><td><br />
DO NOT USE TABLES FOR LAYOUT<br />
</td></tr></table><br />
<br />
and save it as "blah.inc"<br />
<br />
then insert a reference to it in your page.<br />
<br />
such as:<br />
<br />
<!-- #include file="blah.inc" --><br />
<br />
and the table (in this case) will appear on your page wherever you place it in the structure.<br />
<br />
(by the way... i don't think that you have to give it the "inc" extension... but i find that it helps to keep things sorted on the server that way)<br />
<br />
;) k<!--content-->Thank you khaki, I will try that. I think their server supports that...:) <br />
<br />
xx(!)<!--content-->
 
Back
Top