0

What are the differences between 'URL','src' and 'herf' ?

29th Sep 2016, 12:59 AM
BinHuo
BinHuo - avatar
2 Answers
+ 1
SRC is an attribute use for image, HREF is use for link
4th Oct 2016, 10:49 PM
JESUS A MADERO
JESUS A MADERO - avatar
0
URL is always set on CSS to define a source of a file. #mydiv { background-image:URL("the path for the background image goes here"); } SRC means source, it does the same thing that URL does, but, is always set on HTML. <img src="path for the image goes here"> HREF is used to set a link on a element of your page. <a href="page.html">If you click here you will be redirected to "page.html"</a>
29th Sep 2016, 8:27 PM
Scotti
Scotti - avatar