+ 3
What is the difference between href, src and altďź
3 Answers
+ 10
You can visit
for alt attribute:
https://www.w3schools.com/tags/att_alt.asp
for src attribute:
https://www.w3schools.com/tags/att_src.asp
for href attribute :
https://www.w3schools.com/tags/att_href.asp
+ 8
1 - href is used to create hyperlink to go any particular page created by you.
for example:-
<a href='mypage.html'>Click Here</a>
when you click on this link then new page mypage.html will open.
2 - src is used to display image on page.
<img src='abc.png />
3 - alt is used to display the information of image.
if image doesn't exist then it will show in place of image.
<img src='abc.png alt = 'myimage' />
+ 3
i see thanks!