HomeОбразованиеRelated VideosMore From: We Will Code

Use a CSS Class to Style an Element, freeCodeCamp review html & css

37 ratings | 2344 views
This challenge introduces CSS classes. A class allows you to specify which elements you want to receive certain styles. This comes in handy when you do not want to apply the same style to like elements. For example, you might want to apply a style to your first heading tag and to your first paragraph tag. And a different style to your second heading tag, and paragraph tag. You can give the first 2 tags the same class which contains the specific style you want applied. While the next heading and paragraph can have a different style applied through their specific class. Class names are created by you, so give them good ones.
Html code for embedding videos on your blog
Text Comments (8)
Ida Brun (8 months ago)
Thank you!
AwesomeTulips (1 year ago)
Great lesson. Thanks for explainning, I was really confused by that excercise. I passed it but didn't really understand it.
Shadow Hunter (1 year ago)
Thank you for explaining this! I got the excercise right but had no understanding of why I was doing what I was doing.
Szymon Holandiajobs (1 year ago)
Note that in your CSS style element, classes should start with a period. In your HTML elements' class declarations, classes shouldn't start with a period. .WHAT IS THIS PERIOD? COULD YOU EXPLAIN ME. I WOULD BE GRATEFUL
Szymon Holandiajobs (1 year ago)
Thanks Jose moreno.
Szymon Holandiajobs (1 year ago)
now i know. I didnt know the period has many meaning like spot. So I think this is right meaning. Thank anyway :D
ChillZone99 (1 year ago)
amazing lesson
Abdirashid S (1 year ago)
Excellent teacher. I really appreciate

Would you like to comment?

Join YouTube for a free account, or sign in if you are already a member.