Premium Only Content

Styling with CSS by Id and Class Selectors plus Bootstrap Button Example
The lecture shows you how to select an HTML element for styling with CSS using its id or class attribute instead of using the type selector that targets all elements of a specific name.
Using a type selector is usually not the best practice because HTML web pages usually have hundreds of elements and changing all of them at once to comfort to a specific style might cause inconsistencies in the design.
You can select a specific element for styling with CSS using its id attribute. Only one, and only one, element may have that unique identifier.
If you need to select multiple elements for styling under the same ruleset, you can use the class attribute. It turns out using a class is usually the most popular and safe choice for best practice. When in doubt, just use a class.
The lecture also gives the example of leveraging CSS code already written by somebody else, like the Bootstrap design system. Because the class definitions are already written for you, all you have to do is use the class name if you want to adopt the same style for your web page element, provided you link the Bootstrap spreadsheet to make it available in your document.
-
16:06
The Rubin Report
12 hours agoProof the Islamist Threat in England Can No Longer Be Ignored | Winston Marshall
72.6K75 -
2:07:07
Robert Gouveia
9 hours agoFBI Files Coverup! Bondi FURIOUS; SCOTUS Stops Judge; Special Counsel; FBI Does
94.7K79 -
56:15
Candace Show Podcast
9 hours agoBREAKING: My FIRST Prison Phone Call With Harvey Weinstein | Candace Ep 153
153K109 -
1:56:39
Flyover Conservatives
8 hours agoROBIN D. BULLOCK | Prophetic Warning: 2030 Is Up for Grabs – If We Don’t Act Now, Disaster Awaits! | FOC SHOW
46K8 -
2:13:11
megimu32
5 hours agoON THE SUBJECT: The Epstein List & Disney Channel Original Movies Nostalgia!!
37.4K4 -
9:06
Colion Noir
14 hours agoKid With Gun Shoots & Kills 2 Armed Robbers During Home Invasion
51.7K13 -
54:28
LFA TV
1 day agoUnjust Man | TRUMPET DAILY 2.27.25 7PM
54.6K5 -
1:36:39
Redacted News
9 hours agoBOMBSHELL EPSTEIN SH*T SHOW JUST DROPPED ON WASHINGTON, WHAT IS THIS? | Redacted w Clayton Morris
177K301 -
2:03:31
Revenge of the Cis
11 hours agoEpisode 1453: Fat & Fit
65.1K9 -
2:38:12
The White House
11 hours agoPresident Trump Holds a Press Conference with Prime Minister Keir Starmer of the United Kingdom
205K61