I've been tasked with creating two toggle tabs/buttons in a single column on a website where visitors can switch between them without affecting the page's other elements. The goal is to emulate the style of the Personal and Business tabs found on www.vodafone.co.uk, but without redirecting users to different pages.
My initial thought was that JavaScript would be necessary for this functionality. However, upon closer inspection of www.vodafone.co.uk, I noticed that they achieve this using only HTML and CSS, although clicking on either tab does lead to a new page - something my client wants to avoid. Is there an approach to implement two tabs that reveal different content lists when clicked without disrupting the rest of the page?
Any insights or tips on how to achieve this would be greatly appreciated.
Thank you in advance,
Ead