Skip to content
Advertisement

How to show hyperlink for particular text in html

Here is my code

<a href="#" ><font style="color:#000000;">
    PLEASE CLICK HERE FOR MORE DETAILS</font> </a>

Here, Hyperlink is given to whole word PLEASE CLICK HERE FOR MORE DETAILS

I need to give hyperlink on mouse hover to the text HERE Is it possible using html itself or I need to go with JavaScript/Jquery?

Advertisement

Answer

Try this

<font style="color:#000000;">PLEASE CLICK <a href="#" >HERE</a> FOR MORE DETAILS</font> 

Add styles

a {
  text-decoration:none; 
}
a:hover{
  text-decoration:underline;
}
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement