From the course: Bootstrap 5 Essential Training

Unlock this course with a free trial

Join today to access over 23,300 courses taught by industry experts.

Pagination

Pagination

"

- [Instructor] There's some classes that can help you build pagination indicators. Although you're going to be responsible for the scripts that would make these work. It's nice to have some good looking navigation when you want to go through a lot of pages on your website, for example. So the way that you build these is by using a pagination nav container. You would use the proper aria tags in there as well. And inside that you can add a list. There are two size modifiers, so you have a large and a small version of the pagination. Although I like to keep things simple most of the time. This is one place where I think doing a list of items instead of trying to just do anchor tags would help. And that's because in JavaScript, you'd be turning some of the classes on and off. So if you were to try to do just anchor tags, you'd have to physically change things from anchors to spans so that the class would not work or be turned on and off. So the unordered or ordered list items will have…

Inhalt