Implementation: CSSInline style

Cascading Style Sheets (CSS) are used to apply styles to a webpage (internal) or website (external). Understanding the properties of text and backgrounds provides fundamental knowledge of CSS and how to apply styles using selectors, classes and IDs.

Part ofComputing ScienceWeb design and development

Inline style

Inline styles are styles that are applied to a specific element within the body section of the webpage.

The style will be applied to that individual element only rather than to the entire page (internal style) or across all linked pages (external style sheet).

In this example a style is applied to a paragraph.

<p style="font-family:courier; text-align:left;">This actual text goes here.</p>