How to Write a Selector in the CSS Programming Language


show more Writing a selector provides you with in-depth training on Web. Taught by James Williamson as part of the CSS: Core Concepts show less
please wait ...

Writing a selector

The first thing we'll do when writing CSS is to explore writing a selector, and how it can help us target elements on the page. Now, a little bit later on, we're going to explore the different types of selectors in more detail. For right now, let's just concentrate on what a selector is and what it allows us to do. So I'm going to go over to my exercise files, go in the 01_04 folder, and open up selector.htm. So I want to just briefly go over the structure of the document with you.

You're going to notice right off the bat that inside of the head of the document we have the style tag. You know we're going to go over embedded styles in more detail a little bit later on, but for now, the style tag allows us to write CSS directly within this document. In the body of our document we can see that we have a h1, below that we have a paragraph, and then we have a div tag in which a h2 and a paragraph are both located, so those are the elements on the page that we're goi...

Writing a selector
Video duration: 4m 10s 8h 52m Beginner

Viewers:

Writing a selector provides you with in-depth training on Web. Taught by James Williamson as part of the CSS: Core Concepts

Subject:
Web
Software:
CSS
Author:
please wait ...