CSS selectors are what we use to target particular HTML elements. Carrie Dils covers the four basic selectors you will work with most.
- [Instructor] We looked at selectors…earlier in the context of the overall syntax of CSS.…But I'd like to take a look at selectors in more detail.…CSS selectors are what we use to find…or target particular bits of HTML.…Sometimes, you'll want to apply styles…very broadly across your site.…And other times, you'll just want to target…a small number of elements or even, a single one.…The foremost common types of selectors…are element selectors, the class selector,…the ID selector, and the descendant selector.…
And the first one I wanna start with…is the most basic, the element selector.…Element selectors are global in nature.…Meaning, they're going to affect…every element of that type in a style document.…You simply need to know what the tag is…for a given element in order to style it.…For example, to style paragraphs, you'll use the P.…For heading ones, you'll use H1.…For an unordered list, you'll use a UL, and so on.…While these selectors are very efficient,…they're also very broad.…Which is why they're most often used…
- What is CSS?
- Understanding how CSS works with HTML
- Applying fonts
- Understanding the classic box model
- Setting margins and padding
- Positioning elements
- Basic CSS layout concepts
- Media types and media queries
- Working with CSS frameworks and CSS grids
- Creating responsive layouts
- Tools that help you write and maintain CSS
Skill Level Beginner
1. CSS Basics
2. CSS Specifications
3. Common CSS Concepts
4. CSS Layouts
5. Working with CSS
6. Responsive CSS
7. Going Further with CSS
- 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.Cancel
Take 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.