Utku Orçan
Utku Orçan

Reputation: 27

Is it possible to create an internal html page to my index.html?

I'm creating a new website and I will have different pages on it. However, instead of creating new HTML files for each page and an anchor for each, I want all my pages contained in one HTML file. Is it possible in any way?

Upvotes: 0

Views: 56

Answers (1)

Umer Rasheed
Umer Rasheed

Reputation: 148

You can try Vue js or React js or many js frameworks ... which contain components.

Using HTML

You can control HTML page section how tabs working in HTML, take a look in Bootstrap Tabs, or you can hide/show sections using CSS or using JS, you may store HTML for each page in array of js and load that HTML to Body based on URL you create

Using Server Side Language

Also if you need single page application with multiple pages you need a Server Side language, where Database contains your website configurations and you can load based on the URL each page's layout or text like heading forms etc...

Upvotes: 1

Related Questions