JSFiddle - React, Tailwind, and code Playground

HTML

<p>
The DIV with the green border is 800 px wide. The image is 500px x 334px.
</p>
<div style="width: 800px; border: 1px solid green;">
  <p>
  Image with no CSS.
  </p>
  <img src="https://live.staticflickr.com/102/369476331_aacfc47d95.jpg">
  <p>
  Image with CSS width set to 100%.
  </p>
  <img src="https://live.staticflickr.com/102/369476331_aacfc47d95.jpg" style="width: 100%">
    <p>
  Image with CSS max-width set to 100%.
  </p>
  <img src="https://live.staticflickr.com/102/369476331_aacfc47d95.jpg" style="max-width: 100%"><br>
</div>