Components in Bootstrap are reusable pieces of code. They help keep your page organized and save time by not rewriting the same styles or HTML repeatedly.
The navbar-expand-lg class makes the navbar expand on large screens and collapse on smaller ones, making it responsive.
The grid system divides the page into 12 columns that resize based on screen size. This helps components line up neatly and stay responsive.
The aria-labelledby attribute points to the modal's title element, helping screen readers announce the dialog properly.
<button type="button" class="btn btn-danger btn-lg">Delete</button>
What will the button look like when rendered in a browser?
btn-danger and btn-lg.The class btn-danger makes the button red, and btn-lg makes it large. The text color is white by default on danger buttons.
