In HTML Which format is best for high quality Web photos?And why? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

In HTML Which format is best for high quality Web photos?And why?

5th Dec 2018, 2:40 PM
Vaibhavi Desai
Vaibhavi Desai - avatar
11 Answers
+ 15
Among the image file formats you've tagged with your question (gif, jpg, qrl, tif), only gif and jpg are valid (compatible) html format (even if I don't know the "qrl" one)... Anyway, there's a third web valid format for picture: png. And this last is the best for high quality photos, as it's a without loss compressed one, supporting alpha channel and true color mode. Obviously, png is quite heavy than jpg in general, so it mostly depends on your photo definition versus the bandwith requirement... and conversely, gif is the less one, as don't support more than 256 colors (what's too supported by png). In fact, gif is the hisoricaly first one supported in web, but the only one who offered animation possibility ;)
5th Dec 2018, 3:25 PM
visph
visph - avatar
+ 2
It depend upon the resolution of the photo and the width and height given by you in img tag...
5th Dec 2018, 2:44 PM
Marut Nandan
Marut Nandan - avatar
+ 2
thank you for more explanation
6th Dec 2018, 8:00 AM
Vaibhavi Desai
Vaibhavi Desai - avatar
+ 1
ok
5th Dec 2018, 2:53 PM
Vaibhavi Desai
Vaibhavi Desai - avatar
+ 1
.png images are the best to use when creating websie images
22nd Dec 2018, 6:03 AM
Brian Rwangu Isiji
Brian Rwangu Isiji - avatar
+ 1
png fomat is the best format
24th Dec 2018, 11:18 AM
сергей колос
сергей колос - avatar
0
I used jpeg
21st Dec 2018, 6:29 PM
StRaTeGiC dey
StRaTeGiC dey - avatar
0
Thank you all
29th Dec 2018, 6:36 AM
Mubarak Adedolapo Yusuff
Mubarak Adedolapo Yusuff - avatar
0
Yo
1st Jan 2019, 10:37 AM
Ketha Aravind
0
I use png
23rd Jan 2019, 5:07 AM
CEEKAY GODWIN
CEEKAY GODWIN - avatar
- 1
welcome pithon
17th Feb 2021, 4:18 AM
Anuj kumar
Anuj kumar - avatar