@Refer59
Posted
You usually use UL when you gonna put inside a list of uknown number of elements that are similar, each one shares the same structure but different information.
<ul>
<li>
<span class='left-side'><img src="user-456.png" alt="user-image" /></span>
<span class='right-side'>Username-1234</span>
</li>
<li>
<span class='left-side'><img src="user-456.png" alt="user-image" /></span>
<span class='right-side'>Username-456</span>
</li>
<li>
<span class='left-side'><img src="user-789.png" alt="user-image" /></span>
<span class='right-side'>Username-789</span>
</li>
</ul>
As you see, the all follows the same content format, but the information content is diferent. You can actually use Div or UL, but as good practice you follow the this criteria.
Marked as helpful
@siswantodev
Posted
Thank you for your detailed explanation.
I realize that there seem to be two different opinions regarding the use of UL or DIV in this case. From my perspective, it appears that using UL is more acceptable for this challenge. Thanks again @Refer59!