Types Of CSS


Types of CSS
Types of CSS ?
·        There are 3 types to insert CSS (Cascading Style Sheets) in HTML files.
1.     Inline Style
2.     Internal Style Sheet
3.     External Style Sheet

                                      Inline Style
An Inline style may be used to apply a unique style for a single element. We can apply CSS in a single element by inline CSS technique. The inline CSS is also a method to insert style sheets in HTML document. This method mitigates some advantages of style sheets so it is advised to use this method sparingly.

                                                            Internal Style Sheet
                                                            The internal style sheet is used to add a unique style for a single document. It is defined in <head> section of the HTML page inside the <style> tag.
                                                            An Internal style sheet may be used if one single page has aunique style.

                                                            External Style Sheet
                                                            The external style sheet may be written in any text editor but must be saved with style.css extension. This file should not contain HTML elements, with an external style sheet you can change the look of an entire website by changing just one file.
                                                            Each page must include a reference to the external style sheet inside file inside the <head> section.
This all CSS types we can learn in next blog through example.


                                   



Comments

Popular Posts