How is a frontend product grid implemented in HTML?

The frontend product grid is implemented in HTML as an ordered list of products:

The number of products in a row (number of a product grid’s columns) is automatically adjusted to a browser window’s size.

4 products in a row

3 products in a row