- Bootstrap has a special JavaScript component…called collapse, and you can use it to create content…that appears and disappears when you click on an element.…That's going to make it easy…to build things like accordions.…So, let's take a look at how they work.…So this content right here will eventually end up…in an accordion, but I'm going to go ahead…and start small with a simple button…that toggles a section of the page on and off.…Now, to do that, we can use either a link or a button.…We're going to go ahead and use an anchor tag,…and it's going to get a class of "btn.btn-primary",…and for the link, I'm going to ask it to link to…some sort of content, so I'm going to need to…create an ID here, "#exoticpets", and eventually…that's going to toggle this section called "exoticpets".…
All right, so this is going to get a role of "button".…The role attribute lets screen readers know…what the functionality of this element is supposed to be,…so that it knows how to handle it.…So, by saying that this element has a role of "button",…
Author
Released
8/26/2015This course provides everything you need to know to get started building websites with Bootstrap, and is built with our new practice environments in mind, which let you develop your code along with author Ray Villalobos. Ray will review Bootstrap's grid, CSS classes, and JavaScript components (dropdowns, modals, carousels, and more), and help you integrate them into your own sophisticated websites.
- Understanding containers
- Using the 12-column grid to create a responsive webpage layout
- Creating rows and columns
- Styling content with Bootstrap CSS classes
- Adding CSS styles
- Creating and styling forms
- Creating dropdown menus and buttons
- Adding images and video
- Exploring JavaScript components, like carousels, tabs, tool tips, and scrolling
Skill Level Beginner
Duration
Views
Related Courses
-
Introduction
-
Welcome1m 23s
-
-
1. Getting Started
-
2. Working with the Bootstrap Grid
-
Working with rows3m 13s
-
Creating columns10m 3s
-
Resetting columns3m 55s
-
Offsetting columns2m 52s
-
Nesting columns6m 9s
-
3. Exploring Basic Bootstrap CSS Classes
-
Using blockquotes1m 49s
-
Working with list styles2m 19s
-
Styling code3m 50s
-
4. Adding Other CSS Styles
-
Exploring table styles2m 42s
-
Adding image classes4m 46s
-
Using responsive utilities5m 30s
-
5. Styling Forms
-
Creating a basic form6m 24s
-
Using inline forms2m 53s
-
Styling a horizontal form4m 52s
-
Using validation styles4m 56s
-
Using input groups5m 24s
-
Using icons4m 44s
-
-
6. Navigation Components
-
Using button groups4m 22s
-
Adding content to the navbar9m 42s
-
Collapsing your navigation4m 11s
-
7. Media Components
-
Using the thumbnail style6m 55s
-
Adding media styles5m 35s
-
8. Content Containers
-
Styling list groups6m 45s
-
Working with panels5m 41s
-
Using wells1m 12s
-
-
9. Using JavaScript Components
-
Creating a carousel17m 13s
-
Creating modals10m 51s
-
Creating a tooltip2m 50s
-
-
Conclusion
-
Next steps1m 43s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Crafting collapsible content and accordions