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.
<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
Updated