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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T09:47:58+00:00 2026-05-31T09:47:58+00:00

I am studying html, css, javascript and jquery in a very basic level yet,

  • 0

I am studying html, css, javascript and jquery in a very basic level yet, and plan to use these technologies for personal projects, prototyping, etc. (NOT for professional web development/design).

I want to have a page with tabbed content, where each tab’s content would come from a different html file (I want this because then I can manage each file individually).

I have seen CSS-only tabbed layout, JS-only tabbed layout, JQueryUI tabs, and any combination in between.

Since tabs are now commonplace in every site, I was wondering there would be a “right” way to do it, but I’m confused.

So, the question is: what is the “canonical” way to do a simple tabbed layout on a page, where each tab would be a “wrapper” to a separate html file to be diplayed inside?

Thanks for any answers!

  • 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-31T09:48:00+00:00Added an answer on May 31, 2026 at 9:48 am

    Obviously, there are many ways to achieve your goal. Some people include a fully fledged framework like jQuery(UI) for this (which is in my opinion overkill, because you don’t need such a gigantic framework for this), while others create a really simple script that’s really hard to extend. Simply put, there are basically two ways to do this (with clearly many roads in between):

    1. Use a server side scripting language. If you want to store every tab in a different HTML file, you will need a new request for every tab change anyways, so then it’s not a big step to just managing the tabs using a server side scripting language, like PHP. You could just check for a $_GET variable and include a different file depending on the value. This is really easy. However, it’s not possible to have animations;

    2. This methods is, you could say, web 2.0-style; because you can have animations with this method. You should create a nice tabbed layout using CSS and then use Javascript for the tab switching. Yes, there are ways to do that using pure CSS, but that won’t work in many browsers, so you’ll have to use Javascript anyways.

      Then, there are two ways to load the actual content. You can use Javascript to load the content using an AJAX request when the user clicks a tab. However, this will mean that there could be some loading time on slower internet connections. Therefore, I personally prefer to load all content using a PHP include on the server side. That makes it really easy to manage the files, while still having the advantages of one file.

    In this answer I’ve assumed you at least know a little bit about PHP, if that’s not the case: please ask. Hope I helped. 🙂

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

Sidebar

Related Questions

I'm nearly 2 months old in studying HTML, JavaScript and jQuery. I've done a
I'm currently studying Ubuntu Server administration, and also HTML/CSS. When it comes to the
I'm studying jQuery with this tutorial, but one of examples doesn't work. <html> <head>
I'm still studying HTML and CSS, perhaps this could be a silly mistake or
Studying compilers course, I am left wondering why use registers at all. It is
After studying TCP/UDP difference all week, I just can't decide which to use. I
I am studying css and I do not understand why some OTHER text and
I'm studying Javascript cookie. Basically what I want is when the first time user
I'm studying the use of threading in the Lunar Lander sample code, and I'm
I'm using html/javascript with iOS and UIWebView. I want to invoke an objective-c method

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.