Reputation: 41
Here, I am trying to make <p>Lex</p>
a hyperlink without using <a>
tag and using css, so that on right click of above <p>Lex</p>
Open Link In New Tab
can be accessed.
Below is Html and CSS
<style>
p{
color:red;
font-size:14px;
}
</style>
<p>LexL Luther</p>
Upvotes: 1
Views: 63
Reputation: 47
You need to use a tag to make a hyperlink.
You can use _blank to open link in a new tab.
<a href="https://www.w3schools.com/" target="_blank">Visit W3Schools!</a>
The target="_blank" does this in the code above.
Upvotes: 2