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 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 fo

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

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 is the operating sy

OPERATORS IN C?ARITHMETIC, ASSIGNMENT....

  O PERATORS IN C                                                                  operators A n op erator is a symbol that acts on data items known as operands in order to process them.   for eg-   a+b   ( "a" and "b" are operands, and "+" is an operator ).               c-a     ( " c "&"a"  both are operands "-" operator ).    We can do addition, subtraction, multiplication, division, etc........ Operand and the operator plays a very important role in the programming language. CLASSIFICATION OF OPERATORS B ased number of operands operating upon, operators are classified into three types. Unary operators(operate upon single operand). Binary operators(operate upon two operands). Ternary operators(three operands). On the type of execution they perform on the operands, operators are classed  into six types Arithmetic operator :-arithmetic operators are the operators which perform addition( + ), subtraction( - ), multipli

FUNCTIONS IN C?CLASSIFICATION, PARAMETERS, LOCAL VARIABLE.

 WHAT IS A FUNCTION                                                                         function A self-contained, named block of code that performs the specific task when called is nothing but a function. Note:-functions are the task performers in C projects.  FUNCTIONS CLASSIFICATION We have 2 types of functions they are user-defined functions and library functions. A pre-created function that comes with C installation is nothing but a library function, For eg:- print () and scanf(). Library functions are ready-made named code blocks. We need not create them, Just use them in our programs. We can make use of this library function by making the library function available to the program and the next step is calling the library function. Our own created function which is the program-created function is nothing but a user-defined function , eg- the main function is the example of a user-defined function. BENEFITS OF USER-DEFINED FUNCTION There are many benefits of user-defined func