I am wondering how to make a class such that all links that are part of that class have no decoration (underline) and open in a new tab. I'm doing this so I don't have to write text-decoration:none target="_blank" in each of my 'a' tags.
I have this code for my class:
<style>
A.fresh{
text-decoration:none;
target="_blank";
}
</style>
But it doesn't like the target="_blank"; VS Code says it's expecting ':' instead of the '='. I'm pretty sure this can be done simply in javascript, but I'd like to know how to fix this error as well. Thanks!
(Sorry for the super basic question, I'm just learning HTML today.)