-3

slider screenshot

I don't know where I should put my image slider - put it in article tag or in figure tag or something else.

I tried this code:

<div class="mainPageImgs">
  <div class="max-width">
    <div class="container">
      <div class="img-cont">
        <img src="assets/images/mainPage.png" alt="moshaf" />
        <img src="assets/images/mainPage.png" alt="moshaf" />
        <img src="assets/images/mainPage.png" alt="moshaf" />
        <img src="assets/images/mainPage.png" alt="moshaf" />
      </div>
    </div>
    <ul class="bullets">
      <li class="active"></li>
      <li></li>
      <li></li>
      <li></li>
    </ul>
  </div>
</div>
  • The answer to this is highly dependent on the full context of the page—and even then will be a subjective judgement call, which means this question isn't appropriate for SO. The [MDN HTML Elements Reference](https://developer.mozilla.org/en-US/docs/Web/HTML/Element) is a good place to start. Also keep in mind that not everything needs to be wrapped in a container with specific semantics. Another good place to look is the [W3C's Accessible Web Patterns Guide](https://www.w3.org/WAI/ARIA/apg/patterns/), which has [an example of a slider](https://www.w3.org/WAI/ARIA/apg/patterns/carousel/). – Sean Aug 14 '23 at 16:16

0 Answers0