CSS Text Styling

Learn how to style text using CSS.

Back to CSS Topics

Step 1: Learn the Basics

CSS allows you to style text in various ways. Example:

<style>
    p {
        color: blue;
        font-size: 20px;
        font-weight: bold;
    }
</style>

<p>This text is blue, bold, and 20px in size.</p>

Step 2: Try It Yourself

Write CSS to make the paragraph **red and italic**.