For practice purposes, I am trying to make a copy of website that picks a random R6 operator for you.
There are around 50 operators, and if I want to add and icon for all of them, do I have to make a div for every one of them, or is there a shorter way of doing such things?
I will give a sample code to show what I mean.
<article id="r6-randomizer">
<div id="result"></div>
<div id="buttons">
<div id="defenders-button"></div>
<div id="attackers-button"></div>
</div>
<div id="operator-icons">
<div id="operator-card">
<img src="" alt="">
</div>
<div id="operator-card">
<img src="" alt="">
</div>
<div id="operator-card">
<img src="" alt="">
</div>
<div id="operator-card">
<img src="" alt="">
</div>
<div id="operator-card">
<img src="" alt="">
</div>
<div id="operator-card">
<img src="" alt="">
</div>
<div id="operator-card">
<img src="" alt="">
</div>
</div>
</article>