Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Import an HTML file into an other HTML file

I would like to know how to import an HTML file into an other HTML file.

Both files refer to a lot of different files, so I would prefer to keep them into two different folders instead of copying one file into the other.


For now, I'm developing locally, with Django.

like image 241
Marcolac Avatar asked Oct 18 '12 09:10

Marcolac


People also ask

Can I include one HTML file in another?

It's extremely surprising to me that HTML has never had any way to include other HTML files within it. Nor does there seem to be anything on the horizon that addresses it. I'm talking about straight up includes, like taking a chunk of HTML and plopping it right into another.

How do I display the content of one HTML page in another?

HTML Iframe Syntax The HTML <iframe> tag specifies an inline frame. An inline frame is used to embed another document within the current HTML document.

How do you insert a file in HTML?

The <input type="file"> defines a file-select field and a "Browse" button for file uploads. To define a file-select field that allows multiple files to be selected, add the multiple attribute. Tip: Always add the <label> tag for best accessibility practices!


1 Answers

{% include 'file.html' %} should work

like image 81
rxdazn Avatar answered Oct 06 '22 12:10

rxdazn