1. Style by class names
Try firstWhy does class="btn btn-primary" make a blue button when you wrote no CSS?
Check your answer
The linked stylesheet, bootstrap.min.css, has rules for btn and btn-primary; the class names switch them on.
- Link Bootstrap's stylesheet with one line at the top of the page.
- Its rules apply at once, to the whole page.
- Add its class names to style a tag:
btnfor the button shape,btn-primaryfor the colour. - No CSS of your own: you look the class names up.


