Why can't we use href in place of src | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Why can't we use href in place of src

12th May 2018, 1:26 PM
Manpreet Singh Koura
Manpreet Singh Koura - avatar
1 Answer
0
href is the attribute of of <a> tag but src is the attribute of <img> tag.
12th May 2018, 1:30 PM
Sangeeth S
Sangeeth S - avatar