[HTML-Tutorial-14] srcset & sizes Attributes | Responsive Images (Part -1) | Web Development

  Рет қаралды 10,932

Code Range

Code Range

Күн бұрын

Пікірлер: 42
@CodeRange
@CodeRange 3 жыл бұрын
Hello Code Rangers, Don't forget to check out the Part 2 of Responsive Images to get an overall view of this topic. In that video I talk about using different images / image formats for different viewport / screen sizes with help of the element. Here's the link to the video : kzbin.info/www/bejne/e4DQgot9p6qAfdU
@Mr.GoldHeart
@Mr.GoldHeart Жыл бұрын
I have not found anyone who explains this matter as brilliantly as you. You answered all my questions and concerns. Thank you. Thank you. I am now pleased.💐
@CodeMalayalam
@CodeMalayalam 3 ай бұрын
Nice one. Very helpful. Thank you !
@amajuify
@amajuify 3 жыл бұрын
Thank You!!!! Finally, I understand responsive images to an extent.
@CodeRange
@CodeRange 3 жыл бұрын
Awesome! Glad to know you found it informative.
@GreenEggsPlusHam
@GreenEggsPlusHam 4 жыл бұрын
Another very useful video! It seems like you keep addressing the exact issues I had with my most recent website!
@CodeRange
@CodeRange 4 жыл бұрын
Thank you! Glad to know that you find the videos helpful! Do share them with your friends as well.
@Mr.GoldHeart
@Mr.GoldHeart Жыл бұрын
17:46 I swear I watched about 20 videos and I didn't find anyone explaining this matter, especially this part, and the problem is that this part is the most important, even I started to doubt my mind 😂
@Mr.GoldHeart
@Mr.GoldHeart Жыл бұрын
Please do not stop keep creating more videos the way you explain things are so deatiled☺️
@CodeRange
@CodeRange Жыл бұрын
Thank you for the kind words. Will try my best to start again.
@rambendre9829
@rambendre9829 10 ай бұрын
your teaching skill is outstanding anyone can easily understand@@CodeRange
@Ganievs09
@Ganievs09 3 жыл бұрын
Excellent explanation!!! Thank you for your video. You saved my day. I got what I was looking for.
@CodeRange
@CodeRange 3 жыл бұрын
That's awesome! Good to know that. Good luck with your project!
@rajivkurryah6894
@rajivkurryah6894 3 жыл бұрын
So detailed and well explained.
@CodeRange
@CodeRange 3 жыл бұрын
Thank you. Glad to know you found it useful. Do check out my other videos as well.
@ravibhati9270
@ravibhati9270 3 жыл бұрын
Very Informational video. Thanks for creating this. Would be great if you can create video for How to use Webp Images..
@CodeRange
@CodeRange 3 жыл бұрын
Thank you for the kind words! Good to know that you found it helpful. I will definitely think about creating a video on Webp images.
@MathinusG
@MathinusG 2 жыл бұрын
Thanks, great information.
@CodeRange
@CodeRange 2 жыл бұрын
Thank you. Hope you find my other videos useful as well!
@Professor_el
@Professor_el 2 жыл бұрын
In this video, are the images of different pixels already downloaded to your folder ? Or its just one picture downloaded and when the browser detects it needs a higher resolution picture it changes the picture automatically to suit it?
@CodeRange
@CodeRange 2 жыл бұрын
There are different images of different resolutions saved in my folder. The browser chooses the most optimal image from those.
@parkgunggung6597
@parkgunggung6597 Жыл бұрын
thank you very much po
@kishormaharjan489
@kishormaharjan489 3 жыл бұрын
Thi is awesome. Thank you so much.
@CodeRange
@CodeRange 3 жыл бұрын
Thank you. Glad to know that you found it useful. Hope you like my other videos as well.
@joneadam3484
@joneadam3484 2 жыл бұрын
Let's say - the desktop loads a low-resolution image due to a network issue and stores it in cache memory. What will happen if I visit the same site after some moments when the network issue is gone? Will it display that low-resolution image or the high-resolution one? What will happen in cache memory? Thanks in advance.
@Professor_el
@Professor_el 2 жыл бұрын
after the 4x image dont you think its where we should have put the fall back image? because we only need the fall back image incase the other pixel images are not supported on ones screen?
@CodeRange
@CodeRange 2 жыл бұрын
The fallback image is the src attribute of the img element. It doesn't matter whether you write src before or after all the srcset attributes. If something goes wrong, the browser will use the image mentioned in the src attribute. So it's very important to mention src but not so important whether you write it before or after the srcset attributes.
@michaeljanik1489
@michaeljanik1489 3 жыл бұрын
Thank you Code Range Team. How can I structure the code when I want to have webp and jpg images in different sizes depending on the viewport?
@CodeRange
@CodeRange 3 жыл бұрын
Hi Michael, I think my next video on Responsive Images might solve your problem. In it I talk about using different images / image formats for different viewports. It's about the element. Here's the link to it : kzbin.info/www/bejne/e4DQgot9p6qAfdU Let me know if it helps.
@michaeljanik1489
@michaeljanik1489 3 жыл бұрын
@@CodeRange Thank you for your answer. I tried already this: It works in Firefox but Chrome only puts out the biggest (big.webp) in all viewports. Do you have an idea how to solve that? That would be very kind of you!
@CodeRange
@CodeRange 3 жыл бұрын
​@@michaeljanik1489 Hi Michael, So for different viewports, you need to add media conditions using the media attribute inside the different source elements in the picture element. Try this instead, Let me know if it solves your problem.
@Professor_el
@Professor_el 2 жыл бұрын
Did you first download the images in different pixels? And put them in. One folder?
@CodeRange
@CodeRange 2 жыл бұрын
Yes, all the different resolution images are in one folder
@salaivbawilian1342
@salaivbawilian1342 2 жыл бұрын
Very clear explanation. But I don't know where (Location) to add that srcset attribute in WordPress?
@CodeRange
@CodeRange 2 жыл бұрын
Thank you. Hope you find my other videos useful as well. I am sorry, I don't know much about WordPress.
@pratikraj7475
@pratikraj7475 3 жыл бұрын
why don't you make more videos ma'am, the way you explain is exceptional and easy to understand. keep it up
@CodeRange
@CodeRange 3 жыл бұрын
Thank you for the kind and encouraging words! I am currently on a break from creating new videos due to unavoidable circumstances, but will definitely start soon again.
@inspired.success1
@inspired.success1 2 жыл бұрын
Thank you so much
@harshilgandhi2278
@harshilgandhi2278 2 жыл бұрын
Srcset and size are very difficult to understand
@mesalesme7501
@mesalesme7501 3 жыл бұрын
Does the code change the resolution of "a" image or is there 4 different images stored and ready to call upon???
@CodeRange
@CodeRange 3 жыл бұрын
There are 4 different images.
@mesalesme7501
@mesalesme7501 3 жыл бұрын
@@CodeRange Thanks
When Cucumbers Meet PVC Pipe The Results Are Wild! 🤭
00:44
Crafty Buddy
Рет қаралды 39 МЛН
ТЮРЕМЩИК В БОКСЕ! #shorts
00:58
HARD_MMA
Рет қаралды 2,2 МЛН
Haunted House 😰😨 LeoNata family #shorts
00:37
LeoNata Family
Рет қаралды 14 МЛН
Responsive Images Tutorial 2022 - img srcset and sizes
9:54
Austin Shelby
Рет қаралды 6 М.
srcset and sizes attributes - [ images on the web | part one ]
30:08
Flexbox design patterns you can use in your projects
15:33
Kevin Powell
Рет қаралды 444 М.
Display Different Images Based on Device Width with #Picture and #Source Tags
5:53
Are you using the right CSS units?
6:30
Kevin Powell
Рет қаралды 462 М.
Make Your Site Lightning Fast With Responsive Images
14:13
Web Dev Simplified
Рет қаралды 88 М.
The HTML picture element explained [ Images on the web part 3 ]
20:56
When Cucumbers Meet PVC Pipe The Results Are Wild! 🤭
00:44
Crafty Buddy
Рет қаралды 39 МЛН