How to text highlight everything?

  • Unknown's avatar

    How to do this:

    Text highlight simply adds a yellow background to your text, useful for in-paragraph emphasis. To use the highlight style, you can add a class of highlight to your content:

    <span class=”highlight”>This text will be highlighted.</span>

    The blog I need help with is: (visible only to logged in users)

  • Hi there,

    When you are editing your post or page, make sure to choose the HTML editor. This link should help you navigate the HTML editor: https://en.support.wordpress.com/beginning-html/

    The exact code you’ve given though assumes there is a class called “highlight” with the code needed to create the highlight. What you can do instead is wrap the text that you want highlighted in the following code:

    <span style="background-color:#ffff00;">Text to be highlighted</span>

    I hope this helps?

  • The topic ‘How to text highlight everything?’ is closed to new replies.