How to stylize only a snippet of text?

1

I want to know how I can have a result like this in my text:

I want to highlight a certain section and by bold.

<p> A ferramenta é 100% online, desenvolvida com as mais modernas tecnologias </p>

    
asked by anonymous 06.05.2015 / 15:30

2 answers

5

Use a span and a CSS class:

.destaque {
  font-weight: bold;
  color: #009933;
}
<p>A <span class="destaque">ferramenta é 100% online</span>, desenvolvida com as mais modernas tecnologias.</p>

Or the style directly in the tag (not recommended):

<span style="font-weight: bold;  color: #009933;">ferramenta é 100% online</span>
    
06.05.2015 / 15:32
5

You can use the html5 Mark tag and customize its color, the mark tag is used to put highlight in a snippet and help with SEO

<style>
mark {
background-color:#009933; 
font-weight: bold; 
}
</style>
    
06.05.2015 / 15:53