Real World Use Cases

We've run all our code examples within the confines of the interactive platform here on There are certain things to note when writing CSS in real life. Here they are.

One Style, Many Ways

In the real world i.e outside this interactive platform, I don’t want you confused. So how would you define styles in CSS?

There are 3 ways to do this, and I will explain them with good examples.

1.Inline Styles

Inline styles are the easiest way to style a document. But they come with a cost. Consider the basic markup below:

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy