Display a list of links as a horizontal menu:

Display span elements as block elements

A display property with a value of "block" results in a line break between each span elements.

The display Property

display: none:

Text 1 Text 2 Text 3

display: inline:

Text 1 Text 2 Text 3

display: block:

Text 1 Text 2 Text 3

display: inline-block:

Text 1 Text 2 Text 3

display: flex:

Text 1 Text 2 Text 3

display: grid:

Text 1 Text 2 Text 3