Make Your content Hidden in Accordion Tabs Available for Search Engines With hidden=until-found Attributehttps://developer.chrome.com
Collapsing content sections, sometimes described as an accordion, are a common UI pattern. However, content hidden in the collapsed sections becomes impossible to search using a find-in-page search.
hidden=until-found HTML attribute and
beforematch event can solve these problems. By adding
hidden=until-found to the container for your hidden content, you make it possible for the browser to search text in that hidden region, and reveal the section if a match is found.
In addition to allowing find-in-page search on hidden regions, this feature will allow this hidden content to be accessible to search engines. Google Search will even form links that scroll to the revealed fragment.