# DOM-Scripting & CSS - Styling Individual Character

**URL:** <https://forum.kirupa.com/t/dom-scripting-css-styling-individual-character/184632>\
**Category:** web dev\
**Created:** [April 6, 2006, 1:25pm UTC](https://forum.kirupa.com/t/dom-scripting-css-styling-individual-character/184632 "2006-04-06T13:25:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wyclef](https://avatars.discourse-cdn.com/v4/letter/w/65b543/32.png) [@wyclef](https://forum.kirupa.com/u/wyclef)\
**Post date:** [April 6, 2006, 1:25pm UTC](https://forum.kirupa.com/t/dom-scripting-css-styling-individual-character/184632/1 "2006-04-06T13:25:17Z")

</div>

Does anyone know how to use DOM Scripting & CSS to style individual characters?

If I have

[xyzxyzxyzxyz]

and I want all x’s to be underlined, all y’s to be green, and all z’s to be bold, how can I do this without applying a class or id to each character?
