Also, what would you use if it was an inline-block?
<div style='display:block; width: 300px; height: 24px;background-color:#E2AB58'></div>
<span style='display:block; width: 300px; height: 24px;background-color:#E2AB58'></span>
Also, what would you use if it was an inline-block?
<div style='display:block; width: 300px; height: 24px;background-color:#E2AB58'></div>
<span style='display:block; width: 300px; height: 24px;background-color:#E2AB58'></span>
You can use one of them according to how much data you want to display in this For better explanation check this one What is the difference between HTML tags <div> and <span>?
A div tag, because you have display: block
in your style, which you can then remove; a div is a block level element, while a span is an inline element.