The d-flex class is used to make the container a flex container, and justify-content-between will apply the space-between alignment to distribute the child elements with space between them horizontally. This is a common way to create a space between child elements within a flex container in Bootstrap.