Introduction to CSS.

Introduction to CSS.

|| What is CSS? ||

CSS or Cascading Style Sheets is a style sheet language used to define visual appearance and formatting of HTML documents. It is the language for describing the presentation of Web pages, including colors, layout, and fonts, thus making our web pages presentable to the users.

CSS is designed to make style sheets for the web. It is independent of HTML and can be used with any XML-based markup language.

|| Characteristics of CSS ||

The main features of CSS include style rules that are interpreted by the client browser and applied to various items in your document. Major characteristics include:

  1. A style rule consists of a selector component and a declaration block component.
  2. The selector is used to point to the HTML component which you want to get styled.
  3. Inside the declaration block, one or more declarations are contained along with semicolons.
  4. Each declaration that is entered has a CSS property name, a semicolon and a value. 1.CSS declaration ends with a semicolon, and these blocks are surrounded by curly braces.
  5. CSS selectors are the ones that are used to find HTML elements that are based on the element name, id, attribute, class, and more.

|| Advantages And Disadvantages Of CSS ||

Advantages

  1. Device Compatibility
  2. Faster website speed
  3. Easily maintainable
  4. Consistent and spontaneous changes
  5. Ability to re-position
  6. Enhances search engine capabilities to crawl the web pages

Disadvantages

  1. Cross-browser related issues
  2. Vulnerable
  3. Issues due to multiple levels
  4. Lack of security
  5. Fragmentation

#|| Conclusion || CSS gives the power to the web designer so that extensive changes could be given to the web layout of all pages in a single website by making use of just a single file. It helps in designing light and a creative website with high responsiveness and which impresses the audience when displayed.

> If you enjoyed this article, share it with your friends and colleagues!