Srcset is not working

Can someone help me?
Must I add Image sources of different resolutions like image@2x.jpg to my image folder before I can relate it in the srcset attribute?

You will want to have all your images (1x, 2x…) in a folder within the project.

You are first specifying a src, this will be used as a fallback in the case that a browser does not support srcset. Then you are specifying the srcset, in the case the browser does support it.

thank you very much bro