+ 1

What's the difference between img and URL when you want to insert an image into ur html

What's the difference between img and URL when you want to insert an image into ur html

26th Jan 2019, 7:06 PM
NWAMADI HENRY
NWAMADI HENRY - avatar
3 Answers
+ 5
img is a tag for images <img src=“”> (End tag optional) url = the source or the adresse
26th Jan 2019, 7:10 PM
JTLZ
+ 3
img is a tag representing an image element URL is a filepath representing where to find (locate) the image (resource) in HTML, the type of value supplied to the src attribute (property) is a URL src for an img element cannot be declared in CSS, nor is src an available CSS property for any other element however, CSS does accept URLs (URIs) as values for some other specific properties (such as background-image, border-image-source, etc.) if enclosed in the url() function notation https://developer.mozilla.org/en-US/docs/Web/CSS/url Hopefully some part of this provides the answer for whichever question you probably meant to ask, since the question is rather unclear in its present form. Happy coding!
27th Jan 2019, 9:00 AM
Janning⭐
Janning⭐ - avatar
+ 2
I've seen URL used in CSS for background images. And in HTML it's IMG with src attribute for location.
26th Jan 2019, 7:15 PM
bakitza
bakitza - avatar