Inline CSS

Inline CSS is written in the style attribute on each element.

Text styles

This text uses Courier New.

This text is bold (20px).

This text is italic.

This text is centered.

This text is right-aligned.

A simple box with background and padding.

Reflection

Subheading example

Be truthful and fair in every matter; this builds trust.
Keep your promises and respect the rights of others.
Help people quietly Allah knows what is hidden.
Be patient; with hardship comes ease and growth.
Good character is worship show mercy to family and neighbors.

Image

Styled Image

Border and radius applied.

← Back to CSS Basics

View this page's source code