+ 2

href Vs src tags in HTML

what is the difference between href and src tag?

13th Jul 2018, 9:21 PM
Suraj Jha
Suraj Jha - avatar
2 odpowiedzi
+ 2
thank you James
13th Jul 2018, 9:48 PM
Suraj Jha
Suraj Jha - avatar
+ 1
These are not tags, but attributes. Using href creates a link to an external webpage, whereas src uses a web address to get an element and put it in the webpage.
13th Jul 2018, 9:32 PM
James
James - avatar