Is there a way to set the weight and height in CSS so that they remain responsive when the screen size is reduced? Currently, I am resizing using PHP before storing but I am considering using HTML and CSS or JavaScript instead. Is there a solution for this?
For example:
a.jpg (500*500)
In HTML:
<img src="a.jpg" style="height:200px;width200px;"> // It will resize when the screen is reduced or viewed on mobile devices