Title: Styling &quot;Title&quot; attribute
Last modified: August 21, 2016

---

# Styling "Title" attribute

 *  Resolved [chazy](https://wordpress.org/support/users/chazy/)
 * (@chazy)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/styling-title-attribute/)
 * I need to add styling to the Title attribute (the trigger text). All I need actually
   is to have the ability to insert html tags such as h2, h3, etc inside it. The“
   Tag” attribute assigns an html element for the whole title — I need more to be
   more refined like to have:
 * `Title="<h2>My name</h2><h3>, my title</h3>"`
 * Thank you in advance!
 * Charles
 * [http://wordpress.org/plugins/jquery-collapse-o-matic/](http://wordpress.org/plugins/jquery-collapse-o-matic/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [chazy](https://wordpress.org/support/users/chazy/)
 * (@chazy)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/styling-title-attribute/#post-4376282)
 * The following example from [documentation](http://plugins.twinpictures.de/plugins/collapse-o-matic/documentation/#tag)
   suggests we _can_ use html tags in “Title”:
 * `[expand title="<img src='falcon_girl.jpg' />" tag="div" alt="Falcon Girl"]Target
   Content[/expand]`
 * However, this doesn’t work for me, as the whole `<img src='falcon_girl.jpg' /
   >` actually displays (view-source reveals that the tag is surrounded by double-
   quotes, effectively making it text).
 *  Thread Starter [chazy](https://wordpress.org/support/users/chazy/)
 * (@chazy)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/styling-title-attribute/#post-4376319)
 * Answering myself:
 * It’s entirely possible to use html tags into the “Title” tag. However, if you
   use the “Tag” directive, it overwrites it. Didn’t work for me because I still
   had the “Tag” there.
 *  Plugin Author [Baden](https://wordpress.org/support/users/baden03/)
 * (@baden03)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/styling-title-attribute/#post-4376353)
 * Correct. The tag attribute wraps the entire trigger.
    Glad you got it figured
   out.

Viewing 3 replies - 1 through 3 (of 3 total)

 The topic ‘Styling "Title" attribute’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/jquery-collapse-o-matic_fffeff.svg)
 * [Collapse-O-Matic](https://wordpress.org/plugins/jquery-collapse-o-matic/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jquery-collapse-o-matic/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jquery-collapse-o-matic/)
 * [Active Topics](https://wordpress.org/support/plugin/jquery-collapse-o-matic/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jquery-collapse-o-matic/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jquery-collapse-o-matic/reviews/)

## Tags

 * [html](https://wordpress.org/support/topic-tag/html/)
 * [styling](https://wordpress.org/support/topic-tag/styling/)
 * [title](https://wordpress.org/support/topic-tag/title/)

 * 3 replies
 * 2 participants
 * Last reply from: [Baden](https://wordpress.org/support/users/baden03/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/styling-title-attribute/#post-4376353)
 * Status: resolved