Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8712821
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T05:11:22+00:00 2026-06-13T05:11:22+00:00

I have 2 HTML files, suppose a.html and b.html . In a.html I want

  • 0

I have 2 HTML files, suppose a.html and b.html. In a.html I want to include b.html.

In JSF I can do it like that:

<ui:include src="b.xhtml" />

It means that inside a.xhtml file, I can include b.xhtml.

How can we do it in *.html file?

using html 5 (if it can be done at all in html 5).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T05:11:24+00:00Added an answer on June 13, 2026 at 5:11 am

    Surprisingly, the same question was asked and it is possible: HTML5 include file

    Rafa’s answer:


    Use the object tag:

    <object name="foo" type="text/html" data="foo.inc"></object>
    

    foo.inc should include valid HTML.


    I tested it on Konqueror, Firefox and Chromium.

    Note you must use a separate </object> tag otherwise any content after it gets discarded.

    If you find it useful (I do), please upvote Rafa answer (not mine) because “it is not possible” is spreading like disease.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some html files that I want to convert to text. I have
We all have php files like 'connect_db.php' for include purposes only. Suppose I have
I have 2 HTML files, suppose a.html and b.html . In a.html I want
Suppose I have a bunch of (very simple) HTML pages, that I want to
Suppose you have something like this HTML FILE: <head></head> <body> <div id=my_personal_div> </div> </body>
I have some html files and want to extract only lines with containing these
I have some html files with their own css. I want to use them
I have a bunch of html files that come with my app and are
I have a collection of .html files created in the mid-90s, which include a
suppose i have a file missing at http://www.mydomain.com/user/10202.html i.e user.php then the server gives

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.