Here is the code snippet I am working with:
<a href="/">
<h1>Hello World</h1>
<p>This is some description</p>
<div>....this is Image Carousel</div>
<div class="dotButton>
<button></button>
<button></button>
<button></button>
</div>
</a>
I have encountered an issue while trying to implement an image carousel with dot buttons within a link tag. The problem arises when I click on the dot button to slide through images, it redirects me to the href link specified in the anchor tag. Is there a way to disable the href functionality and ensure that the dot buttons work as intended for sliding images?
Any suggestions or solutions would be greatly appreciated!