|
-
Aug 7th, 2002, 02:37 AM
#1
Thread Starter
Fanatic Member
The difference between href and src ?
Hi,
Does anyone know the difference between href and src in html tags?
-
Aug 7th, 2002, 10:24 AM
#2
Fanatic Member
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.
-
Aug 7th, 2002, 10:39 AM
#3
New Member
Hi...
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...
Any Problem made by man is solved by man.
-
Aug 7th, 2002, 11:00 AM
#4
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|