Professional Documents
Culture Documents
<style>
.blue-text {
color: blue;
}
</style>
You can see that we've created a CSS class called blue-text within the <style> tag.
<h2 class="blue-text">CatPhotoApp</h2>
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.
Inside your style element, change the h2 selector to .red-text and update the color's value from
blue to red.
<style>
.red-text {
color: red;
}
</style>
<h2 class="red-text">CatPhotoApp</h2>
<h2 class="red-text">CatPhotoApp</h2>