How do I style a specific word with CSS in an HTML element?

You should do this:

p {
  font-size: 12px;
}

span {
  font-size: 16px;
  font-weight: bold;
}
<p>
  <span>STUDIO X</span> is the best studio ever
</p>

I recommend you to define a specific class for <p> and <span> tags, it will prevent unexpected overwrites.

Leave a Comment