4. CSS Applied Inline

CSS can be applied inline to an element via the style attribute. This method is not ideal as the presentation becomes embedded in the content. Although not recommended the application of an inline styles is useful for single occurrences of a style or layout.

Example 4.1 Applying CSS Inline:
<p style="Property:Value;">
    Sample paragraph content.
</p>
    

Note: Inline CSS does not require the Selector item to be defined due to the fact that the element itself is the selector.