Inline Styles

The Inline style is used to apply CSS style to a single element. The style attribute is used for Inline style in HTML document to add CSS style.

For Example-: Style attribute is use for add CSS color and font-size to <p> tag.

<!DOCTYPE html>
  <p style="color:olive;font-size:24px;">HTML Styles with CSS</p>



HTML Styles with CSS