0Pricing
HTML for Kids · Lesson

Inline Styles

Change the look of your elements directly in HTML.

2

What Are Inline Styles?

Inline styles let you add CSS directly to an HTML tag using the style attribute. This is the simplest way to style your page.

Example:

<p style="color: red;">This is red text!</p>

The color: red; changes the text color to red.

3

What Are Inline Styles?

Inline styles let you add CSS directly to an HTML tag using the style attribute. This is the simplest way to style your page.

Example:

<p style="color: red;">This is red text!</p>

The color: red; changes the text color to red.

<p style="color: red;">This is red text.</p>

All lessons in this course

  1. Inline Styles
  2. CSS Basics
  3. Colors and Backgrounds
  4. Text Formatting
← Back to HTML for Kids