Instead of applying the class directly to the img tag as recommended by @leelum1, consider adding the element to the current style rule.
The rationale behind this method is that there may be additional styling required for the div element that already has the logo class. It is preferable to increase specificity in your selectors rather than adjusting the classes of the elements to fit the selector. Additionally, remember to properly close the img tag and include an alt attribute for accessibility purposes.
<div class="logo">
<img src="giphy.gif" alt="logo image" />
</div>
.logo img {
width: 333px;
height: 396px;
}
Alternatively, you can directly add the attributes to the img tag. This approach allows the browser to apply the dimensions during rendering, effectively 'reserving' a space in the DOM with those measurements. This is considered a more semantically correct practice.
<div class="logo">
<img src="giphy.gif" width="333" height="396" alt="logo image" />
</div>