I have a website with multiple pages and all of the pages have the same "navbar" and "footer" Is there is a better way to create this without having to repeat the navbar and footer code on every HTML page of the site
In the web version of YouTube when you are on the home page. if you click in "Liked videos" from the sidebar there are some s of the page the wouldn't load like the navbar which contains the YouTube logo and the sidebar which I clicked earlier. Only the content of the page will load and replace the suggested videos with liked videos. with cool red loading animation at the top of the page. I want to create something like that on my website but I don't know how or what should I use? Could JavaScript achieve that? Or do I need something like React JS? I don't know please help me