Home HTML CSS JAVASCRIPT BOOTSTRAP Python Docker ML tutorial About us Privacy policy

Introducing CSS


Introducing CSS



CSS works by allowing you to links rule with the elements that in a web page.
it's rule given how the content of all elements should be rendered.
a CSS rule, which is the two parts:


  • The selector , which show which is the element or elements the declaration applies to it,
  • The declaration , which sets out how the elements referred to in the selector should be style

  • CSS works by linking rule with HTML element. this rule supply with how the contents of specify element should be showing. A CSS rule is two parts: a selector and a declaration.
    Screenshot-from-2020-02-13-14-40-27


  • Selector indicate is which element the rule applies to. The same rule can apply to more than one element if you are separate the of this element name with commas.
  • Declarations indicate how the elements referred to in the selector should be style. Declaration are split into two parts ( property and value), and are linked by a colon.

  • CSS Propertie act on How Element are Display



    CSS declaration sit inside growing with brackets and each is made up of two parts: a property and a value, separate by a colon. and You can specify several propertie in one declaration, any one separated by a semi-colon.
    Screenshot-from-2020-02-13-14-50-52

  • This rules indicate that is all <h1 >, <h2> and <h3> element should be shown in the Arials type-face, in a yellow colosr,
  • Propertie show the all of the element you want to change. For example, color, font, width, height and border,background-color,size etc.
  • Values specify the settings you want to use for the chosen properties. For example, if you want to specify a color property then the value is the color you want the text in these elements to be.