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 7916877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T14:58:07+00:00 2026-06-03T14:58:07+00:00

When learned to make JSP pages, I was taught to use a common menu

  • 0

When learned to make JSP pages, I was taught to use a common menu page separate from all other pages and then import the menu page to each page using <jsp:directive.include file="menu.jspx" />.

Is there a similar way to do this in HTML5? Or is there a better way to include a common menu/masthead on every page using HTML5?

  • 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-03T14:58:08+00:00Added an answer on June 3, 2026 at 2:58 pm

    No, html5 doesn’t do this.

    What you were doing in JSP was a server-side include.
    What you are asking for is a client-side include, those don’t exist in html5.

    I you had a good reason for loading something client-side, you could use javascript.
    Look into AJAX. A lot of .js libraries have good support, to make it easier.
    jQuery for example has a load() function which takes some of the pain away.

    I don’t recommend using something like that for a navigation menu though.
    Server-side includes would be better.

    If you’re simply working on a small project, maybe you’re doing it locally, and you just want to make it so you don’t have to copy-paste chunks of the page everywhere, php is an easy way to do it.

    Use something like XAMPP to run php on your machine in an easy-to-follow way.
    Then use php’s include function, as demonstrated here: PHP Include to do what you want.

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

Sidebar

Related Questions

I just learned that I could use chmod make myscript.sh executable and the run
I learned from android dev tutorial and now I can make ListView. and it
I learned how to create a view controller and make the view slide in
I learned of gist.github.com from Mozilla Ubiquity , and have been using it to
I learned that when executing commands in Python, I should use subprocess. What I'm
I learned basics of web-based integration testing using SpecFlow and WatiN. From what I
I've recently started learning C#. I just learned about properties and decided to make
Apologies if this doesn't make any sense, I'm very new to Python! From testing
I just learned that, quoting make a huge difference in some cases, and I
I just learned that defining a c++ function inside a class's header file make

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.