Stretch an image with HTML

If you want to stretch an image depending on how wide it's container is, you can do so with a relative width in your width attribute. It's pretty easy to do, does not look so nice, but often asked about.

Give me feedback on this page/code

Example:

Stretched imageStretched 50%

HTML:

<img src="image.jpg" width="100%" height="150">
<img src="image.jpg" width="50%" height="150">