Load elements without reload page [closed]

You can do that either by loading all content at page-load but hiding contents till buttons are clicked like in this simple example codepen.

Or if you have a lot of content like images that you do not want to load on page-load due to loading speed you could use ajax. But that’s complicated for beginners. – Or first option with lazy-loading for the images…

tech