Single HTML multiple pages
Hey guys. Please how do you contain multiple web pages in one html file. I mean, like having a contact page, home page and other pages without having to have a separate .html file and referencing it for each link. Guys do it a lot on sololearn app. How is that achieved. I hope someone understands my question.
1/1/2021 12:46:45 AMVictor Mokut
12 AnswersNew Answer
Gouse Basha Great question... A very common approach is to use ASP.NET Core for the RESTful API and SPA via static files for the frontend web client. I've not personally started a new greenfield project using ASP.NET MVC since 2013 when ReactJS was first released. This seems to be the direction trending in enterprise dev over the years among those in my professional network as well.
Victor Mokut I'm glad this was helpful. Unfortunately, I'm not the best person to refer tutorials or sources. I typically learn by reviewing the online documentation and source code where possible. Even then, it's usually for quick reference as I attempt to rapidly prototype apps with new frameworks. After doing this for as long as I have, the patterns, concepts, and deep understanding are intuitive as these are just next step refinements for me.
It is still a single page and not multiple pages.
JS frameworks can also be used to develop single page web apps.
David Carroll Sir, How can I integrate Asp.net Core with React It has options for Single Page Application only, And it might be Large Scale Application, so How to Integrate large scale Applications without Using Single Page Application option? Is it possible to Use Single page Applet for large scale Applications?
Rahul I think you misunderstood the question. The question is seeking to understand how to achieve rendering different content using different URLs from a single HTML page in the entire website. iFrames essentially embeds a separate browsing context within the parent page. These are very different concepts.
David Carroll thank you so much for your time. I am a beginner web developer and thought that could be achieved with only HTML, CSS & JS. But i'm better guided now. I'm yet to starting learning those libraries mention in your reply, but when I do i'll be on a lookout for this. Please do you have any tutorial links that illustrates this concept? Kindly share.
You can simply do that with PHP include or require and $_GET function