What is CSS? Why we use css?
CSS is very important for web page making a design and like makeup for our webpage .Basically is used for simple design language . CSS is very famous language.Latest version of css is CCS3 .
- CSS stands for Cascading Style Sheets.
- CSS describes how HTML elements are to be displayed on screen, paper, or in other media.
- CSS saves a lot of work. It can control the layout of multiple web pages all at once.
Types of CSS (Cascading Style Sheet)
There are three types of CSS which are given below:
- Inline CSS
- Internal or Embedded CSS
- External CSS
Inline CSS: Inline CSS contains the CSS property in the body section attached with element is known as inline CSS. This kind of style is specified within an HTML tag using style attribute.
Example:- INLINE CSS
Vishakha singh
Internal or Embedded CSS: This can be utilized when a solitary HTML archive must be styled extraordinarily. The CSS rule set ought to be inside the HTML record in the head area i.e the CSS is inserted inside the HTML document.
Output:-
Vishakha singh
I am web developer & web designer
External CSS: External CSS contains separate CSS file which take only style property with the help of tag attributes (For example class, id, heading, … etc). CSS style written in a independent file with .css extension and should be linked to the HTML document using link tag. This means the style can be set only once and that will be applied many web pages.
Example: This file given below contains CSS property. This file save with external extension .css . For Ex: vishu.css
body { background-color:powderblue; } .main { text-align:center; } .vs { color:#009900; font-size:50px; font-weight:bold; } #vishu { font-style:bold; font-size:20px; }
- link tag is used to link the external style sheet with the html webpage.
- href attribute is used to specify the location of the external style sheet file.
This is example external style sheet :-
Output:-
Vishakha singh
I am web developer & web designer
Properties of CSS: Inline CSS has the highest priority, then comes Internal/Embedded followed by External CSS which has the least priority. Multiple style sheets can be defined on one page. If for an HTML tag, styles are defined in multiple style sheets then the below order will be followed.
- As Inline has the highest priority, any styles that are defined in the internal and external style sheets are overridden by Inline styles.
- Internal or Embedded stands second in the priority list and overrides the styles in the external style sheet.
So, I hope this blog help you understanding.what is css and Why we use css? If you want to know extra knowledge on this topic for explain many thing about this topic please comment .I will make more blog related to topic. If you find any mistake please comment on this blog.Thank you so much for read this blog.
.
Nice
ReplyDeleteHahahahhahahahag😂😂😂😂😂😂
ReplyDelete