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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T17:03:54+00:00 2026-05-15T17:03:54+00:00

Hi I am new to web programming. I want to create a template sort

  • 0

Hi I am new to web programming. I want to create a template sort of css where all the pages look the same except the content of the pages.

So I have a logo and some tabs at the top where you can navigate the website, but the content of the pages would be different (contact, about, info.etc).

How do I go about creating this template?

  • 1 1 Answer
  • 1 View
  • 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-15T17:03:54+00:00Added an answer on May 15, 2026 at 5:03 pm

    You might want to try building your template page in plain HTML + CSS, and then using simple PHP includes to build your pages. You could, for example, break your page into two separate files:

    header.php:

    <!DOCTYPE html>
    <html>
        <head><title>Hello World</title></head>
        <body>
            <div id="main-content">
    

    and footer.php:

            </div>
        </body>
    </html>
    

    And then, for any files that use that template, you’d use something like this:

    <?php include("header.php"); ?>
    
    <!--All the content of your page goes here-->
    <h1>Hello World!</h1>
    <p>Lorem Ipsum</p>
    
    <?php include("footer.php"); ?>
    

    So then if someone visited the previous file (let’s say it’s called index.php), then the files would be assembled and the final HTML output would look something like:

    <!DOCTYPE html>
    <html>
        <head><title>Hello World</title></head>
        <body>
            <div id="main-content">
    
            <!--All the content of your page goes here-->
            <h1>Hello World!</h1>
            <p>Lorem Ipsum</p>
    
            </div>
        </body>
    </html>
    

    Just make sure you have PHP running on your server, or this won’t work at all. Also, if you want to develop your site locally, I’d recommend using XAMPP to get a local Apache host.

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

Sidebar

Related Questions

I am new to web programming...I have been asked to create a simple Internet
I am new to web programming. I want to create buttons in html and
I'm new to Web java programming. I want to create a simple JSF modular
I am fairly new to web programming, I have mainly used java to create
I am new to web programming,learning VBScript.I want to display few text boxes in
I am new to web programming and Visual Web Developer. I have made a
I'm new to Django and Web programming in general. Have googled but could not
I am relatively new to ASP.NET programming, and web programming in general. We have
I'm very new to web programming and jQuery. I want to load images and
I am new at web programming and learning concepts. I have a question about

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.