+ 1

What's the difference between these ?

<p><a href="" >anything</a>anything</p> <a href="" ><p>anything</p>anything</a>

30th May 2016, 3:35 PM
Alaa Sabbagh
Alaa Sabbagh - avatar
2 Answers
+ 3
The second option will make the whole content a link and is incorrect markup. The first line will make the text in the <a>tag a link only.
30th May 2016, 5:57 PM
James Flanders
0
all right thanks
8th Jun 2016, 7:15 AM
SAID MOHAMED OSMAN
SAID MOHAMED OSMAN - avatar