+ 3

What is the difference between href, src and alt?

27th Jun 2019, 7:27 AM
takeru
takeru - avatar
3 Answers
27th Jun 2019, 7:34 AM
VEDANG
VEDANG - avatar
+ 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' />
27th Jun 2019, 8:39 AM
A͢J
A͢J - avatar
+ 3
i see thanks!
27th Jun 2019, 9:32 AM
takeru
takeru - avatar