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

  • Home
  • SEARCH
  • 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 8550161
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T13:53:18+00:00 2026-06-11T13:53:18+00:00

This is more a best practice question than it is a coding question. In

  • 0

This is more a “best practice” question than it is a coding question. In regards to coding your header/navigation and footer sections in a website. Is it better to code it on each page or use the includes tag?

Coding it on each page seems very tedious and violates the golden rule of “never repeat yourself”, so using the includes tag seems like the most obvious choice but I could be wrong.

I’m average at best when it comes to best standards in web design so I’m looking to get some input from the pro’s so to speak.

Just as a side note, as far as I know you need some kind of “desktop server” in your development setup to use the includes tag, me working straight from my desktop then won’t be able to test with the includes tag, is this correct?

Thanks in advance!

  • 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-11T13:53:19+00:00Added an answer on June 11, 2026 at 1:53 pm

    If your website is in PHP, then definitely use the include function for repeating content – not just the header/footer, but any repeating modules through the pages, too.

    This means that any time you need to update your header, you don’t need to do it separately on every page!

    As for working locally – you can install PHP onto your computer, and have a local server environment to test with. If that seems daunting, then just upload to a test website before you upload to your live website, so you can use the PHP server there.

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

Sidebar

Related Questions

this is more of a 'best practice' question than an actual problem: I'm working
This is more a best practice question than a language question in itself, since
This is more of a general best practice question rather than a very focused
This is more of a question about best pattern and practice than asking about
This is more of an architecture/best practices question than anything else, so please feel
Note: This is more of a best how rather than how question. I have
This is more of a best practices question rater than something technical. I'm working
This is probably more of a best practices question than a true code question.
This is a question more about best practices/design patterns than regexps. In short I
More of a best practice question than a technical one, however I'm trying to

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.