Codecademy

Sign In Create Account
01/04
Beyond HTML elements

HTML elements can be CSS selectors, but as we saw with the universal selector *, they're not the only selectors available.

There are two important selectors you can use in addition to the universal selector and HTML elements: classes and IDs.

You'll see a class and an ID declared in the HTML tab. We'll get to the syntax for these in the next exercise—in the meantime, remove the comment (the leading /* and trailing */) from the CSS tab to see how they work!

Save & Submit Code Reset Code View Preview
Back to editor
Back to editor
FULL PREVIEW

Start Here

Each lesson starts here. Read the explanation, then follow the instructions underneath. If you get stuck, you can click on the "Hint" for help.

Enter your Code

Type your response to the instructions here, in your code editor.

See What it Does

Here's where you can see how your code will render in your browser. This will update as you type.

Submit!

Ready to see if your code does what it should? Click "Save + Submit" to check your code!

Click "Save + Submit" to run your code! Your code’s output will pop up on the screen.

Sign in to Codecademy