I'm building a site with minimal styling. I'm using default anchor link styling, but I want certain words to be highlighted. The highlighted words should not be underlined, but this is proving difficult. Here is the code that is not working:
.highlight{
font-family: sans-serif;
text-decoration: none;
background-color: black;
color:white;
padding: 0px 4px;
}
a:hover{
color: red;
}
<h1>
<a href="/all-products-dummy-link/">View <span class="highlight">everything</span>.</a>
</h1>
As you can see, this would look much better without the blue underline inside of the highlighted span. What is the least convoluted way to achieve this?