|| 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:
- A style rule consists of a selector component and a declaration block component.
- The selector is used to point to the HTML component which you want to get styled.
- Inside the declaration block, one or more declarations are contained along with semicolons.
- 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.
- 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
- Device Compatibility
- Faster website speed
- Easily maintainable
- Consistent and spontaneous changes
- Ability to re-position
- Enhances search engine capabilities to crawl the web pages
Disadvantages
- Cross-browser related issues
- Vulnerable
- Issues due to multiple levels
- Lack of security
- 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!