Solved

including file in a html file

Posted on 1998-08-24
3
132 Views
Last Modified: 2013-11-18
can i includ a file in a html file?? in other words
are there any html code can replace this asp syntax:
<!--#include file="header.inc"-->

Atef.
0
Comment
Question by:atefa
3 Comments
 
LVL 10

Accepted Solution

by:
MasseyM earned 50 total points
ID: 1836961
You could always use the <OBJECT DATA=""></OBJECT> tag... Replace DATA= with your source file... However, you get it in a box...

Is there a reason you want to get away fom Server Side Includes?  
0
 
LVL 8

Expert Comment

by:jbirk
ID: 1836962
<!--#include file="header.inc"--> is a server side include (SSI) as Matt said.
It is not ASP.
If your server allows it, SSI is the best route to go for including another file!
-josh
0
 

Author Comment

by:atefa
ID: 1836963
Even if the <Object> tag doesn't do exactly the same thing as this : <!--#include file="header.inc"-->, I thank you for confirming that my SSI command is the best way to include files ...

Atef

0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to get this page layout correct 13 29
Converting dates in JavaScript 2 34
Sort Order Icons on HTML Table 3 22
CSS: How do I override in-line styling 11 15
This article discusses four methods for overlaying images in a container on a web page
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question