Highlighting text in html document

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • anutosh100
    New Member
    • Mar 2008
    • 8

    Highlighting text in html document

    Can any one please tell me how can i highlight a perticular text in HTML
    DOCUMENT.
  • Death Slaught
    Top Contributor
    • Aug 2007
    • 1137

    #2
    That depends on what you mean by 'highlight'. Do you want the background color to change when the mouse rolls over it. Do you want it to look like someone took a highlighter to it and for it to stay the way? Please be more specific when asking questions.

    Thanks, Death

    Comment

    • eBay
      New Member
      • Mar 2008
      • 12

      #3
      I'll assume he meant the second option...

      CSS:
      .highlighter {
      background-color: Yellow;
      color: Black;
      }

      HTML:
      We had better <span class="highligh ter">highlight this text</span> for emphasis.

      Helpful Article: Span vs. Div

      Comment

      • just a feeling
        New Member
        • Aug 2007
        • 86

        #4
        Originally posted by Death Slaught
        That depends on what you mean by 'highlight'. Do you want the background color to change when the mouse rolls over it. Do you want it to look like someone took a highlighter to it and for it to stay the way? Please be more specific when asking questions.

        Thanks, Death
        Ooooooh, u r back !!!!
        WELCOME back, Death. Glad to see u. I've missed ur rabbits over the past couple of weeks :)

        Comment

        • anutosh100
          New Member
          • Mar 2008
          • 8

          #5
          Thank you e bay

          thaks a lot.

          Comment

          Working...