0
uploading image on html
I have problem in uploading image on Html. i just have to enter images name in the SRC attribute or just the address? and the format , it has to be just jpg ?
3 ответов
+ 2
Image file formats strongly supported as web images: gif, jpg, png.
Supported on not too oldest browsers/html engines: svg
Anyway, technically you doesn't "upload image on html", but you link url reference of images through the src attribute of the <img> tag ^^
That means that on page load the browser download an previously uploaded image somewhere in internet.
A special case when your html document is opened from your local file system: you could put the relative path to your image instead of an url and avoid uploading it (but if you share your html document you need to share too linked files, including images... obviously ;)
+ 1
You need to put the relative/absolute path of the image in the attr src; Image type can be jpg/png/gif/svg