Complete the code to make the image responsive using Bootstrap classes.
<img src="image.jpg" class="[1]" alt="Sample image">
Bootstrap uses the img-fluid class to make images scale nicely to the parent container.
Complete the code to add alternative text for accessibility.
<img src="photo.png" class="img-fluid" alt="[1]">
Alternative text should describe the image meaningfully for screen readers. 'A beautiful landscape' is descriptive and helpful.
Fix the error in the code to correctly make the image responsive.
<img src="pic.jpg" class="[1]" alt="Sample">
In Bootstrap 4 and later, the correct class for responsive images is img-fluid. 'img-responsive' is from Bootstrap 3 and will not work properly.
Fill both blanks to create a responsive image with rounded corners.
<img src="avatar.png" class="[1] [2]" alt="User avatar">
Use img-fluid to make the image responsive and rounded to add rounded corners in Bootstrap.
Fill all three blanks to create a responsive, rounded, and shadowed image.
<img src="profile.jpg" class="[1] [2] [3]" alt="Profile picture">
Combine img-fluid for responsiveness, rounded for rounded corners, and shadow for a subtle shadow effect in Bootstrap.