+ 7
What code can be use to remove the hyperlink format (blue color and underlined) on text?
Mofey Joseph Onipede Mouadh Ben Abdallah CHRISTOPHER MADUABUCHUKWU MARTINS Meny Evolving Jane Delphine Faria
10 Respostas
+ 8
For general application to all hyperlinks on your page, place this CSS code before </head>:
<style>
a {
text-decoration: none;
color: black;
}
</style>
For application on a particular link, locate the <a> element and add this:
style="text-decoration: none; color: black;"
Example:
<a href="https://www.sololearn.com" alt="" style="text-decoration: none; color: black;">SoloLearn</a>
+ 6
CSS
a {
color:black;
text-decoration: none;
}
+ 5
The style tag.
+ 2
To remove any default style for any element or tag ,we play with CSS to reset the default style
+ 2
text-decoration:none;
To remove underline
And
a:link { color: your choice;}
+ 1
Answers above are good but I do not recommend using inline css. It is better to add a rule for specific ID than adding inline CSS to a one <a> tag.
+ 1
Also You can decide what to do depending on the type of link:
a:link{ /*a normal, unvisited link*/
text-decoration:none;
color:grey;
}
a:visited { /*a link the user has visited*/
text-decoration:none;
color:green;
}
a:hover{ /*a link when the user mouses over it*/
text-decoration:none;
color:yellow;
background-color:navy;
a:active { /* a link where is working the user I think this works with internal links*/
text-decoration:none;
color: red;
}
+ 1
You can use css to remove that but you can also use an alternative tag like that:
. . .
<p> awesome <randomtag onclick="window.location.href='link'"> paragraph </randomtag> with also a link in it </p>
. . .
+ 1
Hii
+ 1
hari