Accordion Element HTML Tags

Hi,

What is the default HTML tag for the accordion element, especially the accordion header? I couldn’t find any settings or documentation about the tags for the accordion element. I found one topic from 2016 but isn’t there an easier way:

Thanks

Gunes

Hello Gunes,

Thanks for writing in! You need to use the Google Chrome Developer Toolbar to check the live HTML code and find which CSS selector you need to use.

Hope this helps.

Hi RueNel,

I understand. Is there a way to make the “x-acc-header-text” say h3 tag with CSS? Or, each time when I write an accordion header, should I wrap the text like <h3>Accordion header text</h3>?

Thanks

Hello Gunes,

Regretfully there isn’t an option that you can change the HTML tag of the accordion item header. It is best that you insert <h3 class="man">Accordion header text</h3> instead.

The class man means that there should not be any margins around the text. This is a utility class by the way.

Ruenel,

Thank you so much fr the response.

You’re most welcome Gunes.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.