Local CSS Styles

Css Style Types

1. Local CSS Rules:

It is the least preferred among the CSS implementation methods. Because it only affects the place where it is applied, the advantages it provides are less than other methods.

In the body part, it is written inside the tag to be formatted and only concerns that tag. No change occurs in other tags.

Sample:  

<h3>Style Templates</h3>

<h3  style=”color:red;font-size:24pt;” >Example 1</h3>

In the above example, no style is applied to the first h3 tag, but the second one is styled.

  • The style parameter is opened inside the tag where the style will be applied.
  • The css properties are written into the style parameter.
  • : ” is used after the property name and the desired value is written.
  • No quotation marks are used when writing the value.
  • After each feature, be sure to “ ; ” is placed.
how to use local css rules, local css styles, how to use native css examples, native css examples

EXERCISES

Tutorial: Applying local css rules to the html tags Try It

You can see, review and change the codes of the sample by clicking the Try It button.



COMMENTS




Read 611 times.

Online Users: 706



local-css-styles