by tag itself
by id attribute
by class attribute
2 Likes
Three ways to target element in css
1.By using Tag Name
2.By using Class Name
3.By using Id Name
/* tag */
body { ... }
/* class */
.nav-item { ... }
/* id */
#home-button { ... }
1 Like