Skip to content

What is css properties and values 2022

72 / 100

Properties of CSS -

Assalamu Alaikum, Today I am going to discuss about different properties of CSS, in short properties define the external behavior or usage of an element.

All types of devices or components have some features such as HTML codes are only used to structure or build the website.

Similarly, the work of CSS codes is to form or arrange the structure of the website in different ways, such as coloring, changing the size of the text, specifying the place, and there are other types of decoration work, if you watch my videos, then the different CSS Features will get many more ideas.

 

What is CSS ? …………

Some of the features of CSS are mentioned below –

What is css properties

What is css properties and values 2022

CSS structure is of two types-

  1. Selector.
  2. Declaration

What is selector ?

A selector may be a chain (one) or a lot of easy selectors separated by combinators. Combinators are: white area, “>”, and “+”. White area could seem between a combinator and therefore the straightforward selectors around it. the weather of the document tree that match a selector area unit known as subjects of the selector.

Five kinds of selector?

There area unit many differing types of selectors in CSS-

  1.     CSS component Selector.
  2.     CSS Id Selector.
  3.     CSS class Selector.
  4.     CSS Universal Selector.
  5.     CSS group Selector.

Selector –

 A CSS Selector is the main part of a CSS rule. It (HTML) is a pattern of HTML elements and is used to implement standards for attributes of HTML elements.
For example –

 CSS –     h1 {color:red}

                  p {color:red}

  Html –    <h1> This is test header 1 </h1>

                  <p> This is test header 1 </p>

  Here H1 is the selector because I have selected H1 because its color will be red, and if I had not selected H1 then it would not have red color, I hope you understand.

A CSS selector is the first part of a CSS rule. It is used to implement a pattern of HTML elements and attributes of HTML elements

Here H1 is the selector because I have selected H1 because its color will be red, and if I had not selected H1 then it would not have been red, I hope you understand.

Declaration -

What are declarations in CSS?

In CSS, a declaration is that the key-value combine of a CSS property and its price. CSS declarations area unit accustomed set vogue properties and construct rules to use to individual or teams of components. The property name and worth square measure separated by a colon, and also the entire declaration should be terminated by a semi-colon.

Here by declaration we mean the declaration, how the pattern or design of HTML element tag will be like – size, color, bold, underline etc. For example-

What is css properties

What is css properties and values 2022

 

CSS –      h1 {color: red; size:10px }

                  p {color: red; size:10px }

  Html –    <h1> This is test header 1 </h1>

                  <p> This is test header 1 </p>

Here the HTML element tag h1 is told in CSS that its color will be red and the text size will be 10px.

More info for HTML………..

Share with friends ............

Leave a Reply

Your email address will not be published. Required fields are marked *