HOW TO HIGHLIGHT STRING IN A SENTENCE IN HTML.

Allen Scott

Total Post:46

Points:324
Posted by  Allen Scott
HTML 
 1032  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. Abhishek Srivasatava

    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>


  1. Hubert Jason

    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>




Answer

NEWSLETTER

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