It makes code concise and less likely to have bugs! See The Locality of Behavior Principle: The behavior of a unit of code should be as obvious as possible by looking only at that unit of code. There ...
Get all the elements associated with tabs: Tabs themselves (.info-header-tab) Tab container (.info-header) Blocks with content (.info-tabcontent) Write a fuction that hides blocks with content. Use ...