# Inline style

*noun*

say it: **“IN-lyne STYLE”** **/ˈɪnlaɪn staɪl/**

CSS written straight on one element with the style attribute.

## What is an **inline style**?

An **inline style** is CSS written straight on one element with the `style` attribute. Quick for a test, but hard to keep tidy, so use classes instead.

```html
<p style="color: red; font-weight: bold;">Sale ends today!</p>
```

## In a sentence

- “An **inline style**, style="color: red", colored just that one price.”

Level: Novice · [More CSS terms at this level](https://www.ask-codey.com/glossary?category=css&level=1)

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/inline-style
