Inline styles are applied by adding the style attribute directly to an HTML tag and using CSS syntax within that attribute to format the element. Option C correctly describes this approach. Options A and B incorrectly reference JavaScript or scripts rather than CSS styling. Option D incorrectly mentions a CSS attribute rather than the style attribute with CSS code.