# Different text styles within the same text box - Is this possible?

**URL:** <https://forum.wixstudio.com/t/different-text-styles-within-the-same-text-box-is-this-possible/64186>\
**Category:** Ask the community\
**Tags:** wix-studio, design\
**Created:** [November 1, 2024, 10:38am UTC](https://forum.wixstudio.com/t/different-text-styles-within-the-same-text-box-is-this-possible/64186 "2024-11-01T10:38:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tony\_Lu](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/tony_lu/32/99032_2.png) [@Tony\_Lu](https://forum.wixstudio.com/u/Tony_Lu)\
**Post date:** [November 1, 2024, 10:38am UTC](https://forum.wixstudio.com/t/different-text-styles-within-the-same-text-box-is-this-possible/64186/1 "2024-11-01T10:38:03Z")

</div>

When changing text styles within the same text - for example changing some text to H1.

When doing so, even when the text is highlighted - it changes the entire text box to H1.

When speaking to support, they said that this is by design and I need to create different text boxes?

---

<div class="post-metadata">

**Author:** ![DeanAyalon](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/deanayalon/32/94633_2.png) [@DeanAyalon](https://forum.wixstudio.com/u/DeanAyalon)\
**Post date:** [November 1, 2024, 2:34pm UTC](https://forum.wixstudio.com/t/different-text-styles-within-the-same-text-box-is-this-possible/64186/2 "2024-11-01T14:34:31Z")

</div>

It’s possible, but requires setup, either:

- Setup a single-record CMS collection, add a rich-text field and link it to the text you want designed
- Alternatively, set the text element’s HTML programmatically

```js
$w('#text').html = `
    <h1>Header</h1>
    <p>Paragraph
        <a href='https://google.com'>link</a>
    ...</p>
`

```
