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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:33:59+00:00 2026-05-28T19:33:59+00:00

I am making a webpage with two levels. The first contains things like home,

  • 0

I am making a webpage with two levels. The first contains things like home, music, engineering, etc. Each level has a sublevel. Engineering would have circuits, programming, etc for example. I have a tab system set up for navigation that looks really nice. I am new to html, but intuitively, I would like to make this modular like a Java program would be. So I am not sure what the best way to do this is. Here are some of my thoughts. I will try and simplify it as much as possible for the purposes of discussion.

One main page with a space for a textbox, title, and image. By clicking on the navigation bar, the image, title, and textbox change to the content for that page. Ex* by clicking engineering->circuits the image changes to a picture of a circuit and the textbox talks about current. The reference to the picture and text is stored in an external file (engineering/circuits.html perhaps).

Alternatively,

Several pages, each containing similar code (including a copy/pasted version of the navigation menu). Each page contains it’s own content.

I prefer the first for simplicity and modularity. The goal is to have neat readable code, of course. I hate having the same thing coded in multiple places (as I am sure most good programmers do). Any feedback is greatly appreciated along with info on how to include content from other files. Thank you!

Chet

  • 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-28T19:34:00+00:00Added an answer on May 28, 2026 at 7:34 pm

    I would use PHP includes to be able to include your header and nav without having to cut and paste like you’re talking about. You can include whatever you want. I think PHP is useful for that. You can also add a couple of variables like the page title and echo it in your page head. You put html in your includes but save it with a PHP extension.

    <?php
    
     include 'includes/header.php';
    
    ?> 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am making webpage where data from database are put in a table. Each
I am making a webpage, where there are two forms (users and owners), where
There is a webpage i am making a greasmonkey script for. This page has
I am making an image for my webpage through javascript like so: photoHTMLString =
I'm making a webpage that contains a picture gallery. I've written a javascript function
I'm making a webpage with dynamic content that enters the view with AJAX polling.
In the process of making an old webpage standard compliant, the validator came across
I am making a very basic webpage, consisting of some text inside a fixed
Making my first steps with NHibernate, I'm trying to have it creating my Tables
Making my first steps in RIA Services (VS2010Beta2) and i encountered this problem: created

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.