When CSS is written using the style attribute instead of writing it in a <style> tag, it’s called an inline style. Inline Style is used to define styles for specific parts of an element instead of the whole.