Multiple inline-block elements side by side in CSS

If you place several inline-block elements next to each other, they will line up in a row, just like inline elements:

html<span>text</span>
<span>text</span>
<span>text</span>
cssspan {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  border: 1px solid red;
  display: inline-block;
}

Результат:

Задание 1

Divas are given:

html<div class="elem">text</div>
<div class="elem">text</div>
<div class="elem">text</div>
cssdiv {
  width: 100px;
  height: 100px;
  border: 1px solid red;
}

Line up these divs by converting them to inline-block elements.