Hello Developers, i am not sure if i am right here, because it is so that i want to discuss with your about something and i am not the one hoe want to post something like a turotial, i am new to this website, so please just let me know when this is the wrong website for that.
What i want to discuss with you is the following, lets imagene you have a website with 10 - 20 html tags in which pictures are shown. pictures from lets say people. And now you want to change the picture of one html tag when a button is clicked.
Now my questions is, how would you recommend to include the picture into the html tag, would you just use a simple tag or would you use css and background image technic?
Bot solutions will work of course, but i am not sure which will work better, because imagene we want to change the picture maybe a lot of times, and if you use for example tags then the browser does maybe use more storage then for a background image, and there are maybe also other things which would be a reason to better use this or that, so let me know what you think or what you know about this?
Top comments (0)