From the course: Getting Started as a Full-Stack Web Developer
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Going further with CSS
From the course: Getting Started as a Full-Stack Web Developer
Going further with CSS
- [Instructor] CSS is an enormous part of modern web development because it lets you do much more than just style single lines of text. The first key to its power lies in its selectors. In the previous video, I wrote CSS stylings that targeted a specific tag like this foo tag that I made up. In those earlier videos, the simple selector was the h1 tag. In either case this styling will be applied every time the foo or h1 tag is used. But you can also have CSS effect, every HTML element that has a specific class attribute, regardless of what the tag is. Here we see it applied to both a p tag and an h1 tag. We show that we want to affect a class by putting a dot before the selector or a CSS style could affect only a specific part of the page that's identified with a unique ID attribute. We do this with a crisscross hashtag or number sign before the selector. To make things even more complicated, CSS style definitions can…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.