--- id: 587d78b1367417b2b2512b0a title: Use a Retina Image for Higher Resolution Displays challengeType: 0 videoUrl: 'https://scrimba.com/p/pzrPu4/cVZ4Rfp' --- ## Description
With the increase of internet connected devices, their sizes and specifications vary, and the displays they use could be different externally and internally. Pixel density is an aspect that could be different on one device from others and this density is known as Pixel Per Inch(PPI) or Dots Per Inch(DPI). The most famous such display is the one known as a "Retina Display" on the latest Apple MacBook Pro notebooks, and recently iMac computers. Due to the difference in pixel density between a "Retina" and "Non-Retina" displays, some images who have not been made with a High-Resolution Display in mind could look "pixelated" when rendered on a High-Resolution display. The simplest way to make your images properly appear on High-Resolution Displays, such as the MacBook Pros "retina display" is to define their width and height values as only half of what the original file is. Here is an example of an image that is only using half of the original height and width:
<style>
  img { height: 250px; width: 250px; }
</style>
<img src="coolPic500x500" alt="A most excellent picture">
## Instructions
Set the width and height of the img tag to half of their original values. In this case, both the original height and the original width are 200px.
## Tests
```yml tests: - text: Your img tag should have a width of 100 pixels. testString: assert($('img').css('width') == '100px', 'Your img tag should have a width of 100 pixels.'); - text: Your img tag should have a height of 100 pixels. testString: assert($('img').css('height') == '100px', 'Your img tag should have a height of 100 pixels.'); ```
## Challenge Seed
```html freeCodeCamp sticker that says 'Because CamperBot Cares' ```
## Solution
```js // solution required ```