How to highlight string in a sentence in HTML.

Total Post:46

Points:324
HTML 
 1259  View(s)
Ratings:
Rate this:
Hi guys

I am beginner in html.Please tell me how to highlight  string in a sentence in HTML.

Thanks
  1. Post:24

    Points:168
    Re: How to highlight string in a sentence in HTML.

    Hi Allen,

    Here is the code for high-lighting the string.

    For example:

    <!DOCTYPE html>
    <html>
    <body>
    <h2>Mindstick<mark>in Allahabad</mark> </h2>
    </body>
    </html>


      Modified On Apr-11-2018 05:38:16 AM
  1. Post:6

    Points:42
    Re: How to highlight string in a sentence in HTML.

    In HTML 5 you can use :

    <body>
    <mark>MindStick</mark> 
    <body>

    Highlight text with CSS & HTML:
    <style>
    body { background-color:blue; }
    .highlightme { background-color:#FFFF00; }
    p { background-color:#FFFFFF; }
    </style>




      Modified On Apr-11-2018 05:38:38 AM

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!