Hi,
Does anyone know the difference between href and src in html tags?
Printable View
Hi,
Does anyone know the difference between href and src in html tags?
which tags specifically? I know the <link> tag uses href, the <javascript> tag uses src (i think), the <img> tag uses src, the <a> tag uses href, the <base> tag uses href...i think that is it.
well the <a> tag uses (href), and wewrite src to tell the browser to find the src of the thing (image, sound file,executable file.....)
example:
____________________________________________________
<img src="images\image1.jpg">
____________________________________________________
<a href="www.yahoo.com">YAHOO</a>
____________________________________________________
well i hope i did give you what did u want to know...
src is for tags that have to add code/images to an html page, href is for tags that provide linking and dont add any external object to the page.
since they are both used in completely different tags, it is a moot issue though.