Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How do I include one file in another?

Answers were Sorted based on User's Feedback



How do I include one file in another?..

Answer / irene

Html on it's own does not support this.

1. Use server side includes. JSP and servlets are good
options.<%@ include file="filename" %> or
<jsp:include page="filename" />
where file name should be .html or .jsp
*Use this code in a file with a jsp extension.

This works fine if you have a web server - an IDE like RAD.
Develop your page with a jsp entension instead of html, add
this code to include another file, view it in a browser and
click on View>Source and copy the code generated and save
that code as your html document. The included jsp file is
translated into html, and merged with the main file
*You need a web server to be able to view jsp files
This will not help if you do not have a web server in your
development environment.

Another method. Add this line to the

As in Ans 1, ask your web server host if server side
scriting is supported. Good luck

Is This Answer Correct ?    5 Yes 1 No

How do I include one file in another?..

Answer / guest

Use server-side includes, if your server supports them. Ask
your Webmaster if this is the case, and if so, what the
exact syntax is for your server.

Since server-side includes make the document slower, they
are not always desirable. If your documents only have a
static footer, which doesn't change every day, you might be
better off by using an editor which can insert files in the
current document, or a preprocessor. The C preprocessor can
do this, but there are also several HTML-specific
preprocessors available. I recommend

Is This Answer Correct ?    2 Yes 1 No

How do I include one file in another?..

Answer / malu

using < a href > tag

Is This Answer Correct ?    2 Yes 1 No

How do I include one file in another?..

Answer / malli

cts.html (if this is one of the html file this can be include)
<html>
<head>
<title>company</title>
</head>
<body>
<a href="cts.html>cts</a>
</body>
</html> (this is how we can include a file in another)

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More HTML DHTML Interview Questions

What does html stand for?

0 Answers  


Why is it allowed to send XHTML 1.0 documents as text/html?

1 Answers  


What is scss in html?

0 Answers  


How do I align a table to the right (or left)?

0 Answers  


What is the advantage of using frames?

0 Answers  


What is deprecated in html5?

0 Answers  


How to upload struts file in dhtml?

0 Answers  


Which browsers support HTML5?

0 Answers  


You want only a vertical scrollbar and no horizontal scrollbar on your page. How would you do it?

0 Answers  


What is the best text editor for html5?

0 Answers  


Can HTML 5 get the geographical position of a user?

0 Answers  


Do all HTML tags come in pair?

0 Answers  


Categories