How to make a HTML Tag link enabled?


#1

Hello guys, As we all know we use <a> </a> for attaching the links but yesterday I wanted to make a paragraph ยง link enabled :sweat: I know it can be done something like this

<a href='//mybloggertricks.com' >
<p> Hello this is lorem ipsum dummy text or a paragraph </p>
</a>

but I want to link it something like this.

<p href='//mybloggertricks.com' >
 Hello this is lorem ipsum dummy text or a paragraph </p>

Is it possible in anyway? If yes then please tell me how! sincerely Thanx :wink:

P.S I know I can do this through JS I want answers to do it directly from HTML


#2

No. Their is no way to do that. Instead of using HTML for this, you can use this CSS for making it not look like a link:

#ID{
    text-decoration:none;
    cursor: text;
    color: #333;
    transtion:none;
}
#ID:hover{
    color: #333 /* Because if you use a attribute, then a attribute's CSS with also work on. */
    transition:none;
}

And use this a html:

<a id='ID'> Your Paragraph </a>

This will prevent that paragraph from looking like any hyperlinked paragraph and you know, anyone hardly click on Paragraphs.

Thank You.


#3

I know that brother but the point is that is it possible in any damn HTML :smiley: