How do I highlight one sentence in page?

How do I highlight one sentence in page?

Q: How do I highlight one sentence in page?


A: This is very simple: If you wish to change the style of a sentence you can do this with the [[span]][[/span]] container everything inside there will have the defined style, the rest (content outside) will have the normal style… so it's for making exceptions on the normal style.

Good practice: If you are planning to use one exception like (highlighting text for example) you'd better make a class for this. Imagen you change your mind and the highlighting color shoul not be yellow but pink… you need to change all your pages if you not work with a new class. It should be a class (not an id) because this exception can appear more than once on a page.

So knowing this, simplest way (only once, not many times) is the inline style:

[[span style="background-color:yellow;"]]This is your highlighted text[[/span]]

This is your highlighted text


If you add that styling to your CSS theme, you can do something like this instead:

[[span class="highlight"]]This is your highlighted text[[/span]]

This is your highlighted text

This was added to the CSS

.highlight {background-color:yellow;}

If you found this info useful rate it up and hit "+"

rating: +1+x




This is not a <HTML>-CSS reference base. For that we direct you to other excellent places on the web: CSS-tutorials via Google

Thanks for the input to


Add a New Comment
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License