Using plain old HTML, how can I achieve a layout like this?

I’ve got 10-50 dynamic elements in an array, and I need to display them as shown.
If I just add all them to a container div, it goes left to right.
If each element is a div, they stack top to bottom, but never wrap to the next column.
How is this typically achieved using plain old HTML? edit I need this to work dynamically, e.g. if there maybe only be 2 items, or 50; I can’t hard-code 3 <ul> lists.
Or if you mean something without CSS when you say, “plain old HTML”, you might want something like this but this is perhaps not something you want because it doesn’t use the
<div>element.You might also want to use lines terminated with
<br>elements intead of<ul>and<li>elements depending on what you need.