Skip to main content

WHAT IS CSS?ADVANTAGES, SYNTAX.

 CSS PROGRAMMING LANGAUGE                                                                     disadvantages CSS full form is cascade style sheets , which we call it says about how you should display the HTML elements on the screen. CSS tells us the style of the webpage let us take a simple example, if we build a home first we lay out the design that is known as the HTML language. Where the CSS means layout which means giving instructions on how the furniture should be nothing but the CSS. For example if we take PayPal we can see that the background color blue says the CSS background-color property. Netflix is also the best way of saying  CSS property, but if we remove it will be a normal webpage but with the red color and the black plus symbols it looks like the best webpage. Versions of CSS There are differen...

WHAT IS CSS?ADVANTAGES, SYNTAX.

 CSS PROGRAMMING LANGAUGE

                                                                   
syntax of css
disadvantages

  • CSS full form is cascade style sheets, which we call it says about how you should display the HTML elements on the screen.
  • CSS tells us the style of the webpage let us take a simple example, if we build a home first we lay out the design that is known as the HTML language.
  • Where the CSS means layout which means giving instructions on how the furniture should be nothing but the CSS.
  • For example if we take PayPal we can see that the background color blue says the CSS background-color property.
  • Netflix is also the best way of saying  CSS property, but if we remove it will be a normal webpage but with the red color and the black plus symbols it looks like the best webpage.

Versions of CSS

  • There are different versions available now in case it is developed by Wium we have three versions that are css1, css2, and css3.
  • Currently we are using this css3 version this is the best version for practicing the css programming language.

Advantages

  • Separation of Content and Style:-The CSS advantage is it separates the content from the styling part in the code it will be in an organized way.
  • Faster page speed:-there is less code tells us that the webpage or website can run more quickly, when comparatively with more code CSS has less code.
  • Better user experience:- With CSS we can bring audience response because it has the property of CSS fonts, background, color, etc.
  • Time-saving:- Want an element to be used once and make use of it repeatedly reduces the time of the coder.
  • Transfer of file size:- Take any CSS file code want to transfer then it can easily be transferred easily without any problem.

DISADVANTAGES

  • Working of the software:- Due to the use of different versions it can create problems in the code for the browsers.
  • Lack of security:- this is an open text-based system it doesn't provide security those who visit the sites can change the links it can happen suddenly or by them.
  • Proper checking:- Before the developers launch any website they should check whether it is working in all browsers or not.
  • Selectors:- In CSS, we have to select which type of selector we want to specify every time for the style in the code.
  • Wastage of time:- Need to every time the developers need to check the code this leads to a load which creates pressure.

EXAMPLE PROGRAM

  • The declaration for the CSS programming language code.

#selectors{
font-size:10px;
color: red;
}
  • Selectors tell u which HTML element you want to apply here to the styles, eg:-div, p,h1 means that only to this particular paragraph or h1 tag we are using a selector.
  • You want to change the font size then write font dash then, size the word you want through this your text size will be increased.
  • If you make the text color red write the color we can also apply many colors to it by changing the color in the code.
  • Note:-Opening of parenthesis and closing it is very important otherwise it leads to an error in the code.
Practice set
  • Change the font size of the above syntax to 50 px and apply it only to the h2 tag section.
h2{
font-size:50px;
}
  • Color the div section code text to green.
div{
color:green;
}
  • In this blog we talked about what is css and then advantages as well as the disadvantages, discussed about basic syntax for writing a css program also along with some of the practise set.
  • In the coming next blogs we are going to talked about how to add background image as well as the color to it.







Comments

Popular posts from this blog

BASIC PROGRAM IN C LANGUAGE? INCLUDE, HEADER.

SIMPLE PROGRAM TO PRINT NAMES ON                     CONSOLE USING C LANGUAGE #include <stdio.h> which means that <stdio.h> is the header file that says, that standard input and output header file, so every time there is a format writing the c language program that is the starting line of the code. And Include is the command that we use in the program to include the header file <stdio.h> and this file contains the Printf function means to, display any text onto the console. To use the print function, we need to use #include<stdio.h> then only the print function can be accessed otherwise not.   The first line of the code of the program is, #include<stdio.h> this is the most compulsory step we can say in a c program.                                                    ...

ARRAYS IN C?SCALAR VARIABLE,DISADVANTAGES

SCALAR VARIABLE:-                                                       A  scalar variable is that which can hold only one value it is known as a scalar variable. For eg:- int a=10;                          a=30; DISADVANTAGES OF SCALAR VARIABLE :-      Whenever multiple data items are required to be in the computer memory and access those data items scalar variables have 2 limitations: increase code and performance problems. AGGREGATE VARIABLE:- A variable that can hold multiple values(data items) is known as an aggregate variable. WHAT IS AN ARRAY :- An array is an index-based collection of homogenous elements, the array is a collection of  (continuous) memory locations referred to by a common name that can hold multiple values. Is a subscripted variable that can...

WHAT IS C LANGUAGE? USES, COMPILER

C LANGUAGE C language compiler, C is one of the most popular languages in programming,  Dennis M.RITCHIE invented C programming in the year the 1970s,  C is a high-level programming language which means, its instructions are away from the understanding of the processor. There is a small difference between C language and C++ that is c does not provide object-oriented support. C++ gives class-based support(ORS) which means the same as the previous line in this blog. WHY LEARN C  LANGAUGE Learning C language and a compiler will be useful for coding. Especially for making a website with C language. If we learn C++ it will be useful for making a website. This means C language is only used for making a website but C++ is used for adding colors background colors etc. C language is one of the straightforward languages means easily understandable language. USES OF C LANGUAGE While the C language is used, in the creation of hardware devices.  It is also used in the OS, that ...