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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T15:57:09+00:00 2026-05-30T15:57:09+00:00

I know this is a beginner’s question, but I’ve been searching online and all

  • 0

I know this is a beginner’s question, but I’ve been searching online and all I can find are “free website templates” that I can download.

The question is:
How can I write a segment of HTML in a single file, and then load that exact same segment into any other HTML files that I choose?

The intent is so that if that segment changes, I would only have to change 1 file, rather than 10’s/100’s/1000’s/etc.

For example, I might want to define a menu bar like this:

<a href="./Test1">Test1</a> <br />
<a href="./Test2">Test2</a> <br />
<a href="./Test3">Test3</a> <br />

And then, so I don’t have to keep repeating that same code in every single file, I could just link to this menu bar. Maybe something like:

<html>
   <!-- Load "Menu Bar" file -->
   <!-- Place the menu bar right here -->

   Thanks for visiting my web page. Please navigate with the menu bar above.
</html>

Thanks.


Edit: Though it might sound trivial, I wanted to make a few HTML pages to manage some of my personal files and data. As programmers, we of course do not like to repeat ourselves. My initial thought was that this was as simple as linking to a CSS file, but I see now it is more complicated, though I’m not sure (from a technical standpoint) why it has to be. In any case, since I’ll be viewing the files on my own machine, I suppose I can install something like PHP to aid my efforts.

  • 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-05-30T15:57:10+00:00Added an answer on May 30, 2026 at 3:57 pm

    You are describing server side includes.

    Server Side Includes are useful for including a common piece of code throughout a site, such as a page header, a page footer and a navigation menu.

    Example of usage:

    <!--#include virtual="../quote.txt" -->
    

    This will add the text of quote.txt to the page – if you add it to multiple pages, you can make your change in this one file and it will show on all pages in was included in.

    Different web servers have different support and additional features for these, so you need to check the documentation for yours.


    Many websites that need dynamic features (like fetching data from a database) will use some kind of server side scripting language for this kind of functionality – examples include PHP, Perl, ASP.NET, JSP and many more.

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

Sidebar

Related Questions

I know this is a very beginner question, but I've been struggling to figure
I know this is a beginner question, but I've been banging my head against
I know this is silly question but as a beginner at xcode, and i
I know this is probably something simple but I can't seem to find anything
i know this question was asked before but i have this very weird beginner
I know this sort of question has been asked before , but I still
I know that this is supposedly a super simple question, but I've been struggling
I know this is probably a very beginner question that I just can't seem
I know this must be a super beginner question, but how do I create
I know that this question has been asked over and over again, but nothing

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.