How to create a navbar on carousal by using Bootstrap.
See the documentation: the
data-slide-to attribute can be used in the carousel to specify which slide an element should trigger a slide to.
Via data attributes
Use data attributes to easily control the position of the carousel.
data-slideaccepts the keywords
next, which alters the slide position relative to its current position. Alternatively, use
data-slide-toto pass a raw slide index to the carousel
data-slide-to="2", which shifts the slide position to a particular index beginning with