Skip to content

Glossary: HTML & CSS Basics

Inline style

Also written: style attribute

CSS written in a `style` attribute on a single element, such as `<p style="color: red">`. It beats any selector, but it mixes looks into the content and is hard to find and change later, so it is best avoided.

Where the book teaches it

Related terms

SpecificityStyle sheet