Bootstrap 5

Bootstrap Tutorials

Bootstrap 5 Figures

Bootstrap 5 Figures



Anytime we need to display a piece of content like an image with an optional caption, we will consider using < figure >.


Further Explanation:-


We can do this by including .figure, .figure-img, and .figure-caption classes to provide some baseline styles for the HTML5 and elements. Images in figures have no explicit size, so we have to add the .img-fluid class to make it responsive.


Bootstrap 5 figure classes are:-


  • .figure
  • .figure-img
  • .figure-caption

Code Explanation

All Tutorials related to Bootstrap Tutorials

All Sections related to Bootstrap 5