PUBLISHED ON: JUNE 7, 2022
CSS Full Form
Acronym |
Full-Form |
CSS |
Cascading Style Sheet |
Cascading Style Sheet or CSS is a style sheet language used to shape the HTML elements that will be displayed in the browsers as a web page. A website which has been created using HTML, without using CSS, will look dull.
Basically, the outer cover of any HTML is provided by CSS. As an analogy, if you consider that the skeleton of the web page is HTML, in that case, its skin would be CSS. Developed in the year 1996 by the World Wide Web Consortium (W3C), CSS can be applied to HTML documents in different ways:
- This is how the inline CSS style will look:
<h1 style="color: blue;">studytonight</h1>
- This is how the internal CSS style will look:
<!DOCTYPE html>
<html>
<head>
<title> internal CSS </title>
<style>
h1 {
color: blue;
}
</style>
<head>
<body>
<h1">studytonight</h1>
</body>
</html>
- This is how the external CSS style will look:
/* this will be separate file */
<style>
h1 {
color: blue;
}
</style>
Characteristics of CSS:
- Maintenance: CSS is quite easy to maintain. Here any change in a single place will affect globally in your web site. Changing every specific place is not required.
- Time-saving: Any single CSS script can easily be used in multiple places.
- Support: All the browsers and search engines support CSS.
- Cache storing: Web applications can be stored locally on CSS with the help of offline cache so you can see the web site when you are offline.
- Native front-end: A huge list of attributes and functions are contained in CSS which makes it really helpful to design the HTML page.
- Selectors: There are a number of selectors in CSS, like ID selectors, Class Selectors, etc., that will be helpful to perform specific tasks.
Advantages of CSS:
- CSS works with all the devices.
- Website maintenance is easy and faster using CSS.
- Consistent and spontaneous changes are supported by CSS.
- The website is made faster and the search engine capabilities to crawl the web pages is enhanced by CSS.
- Its ability to re-position is a special feature.
Disadvantages of CSS:
- There is a cross browsers issue with CSS. The appearance changes over different browsers.
- CSS lacks security.
- CSS is exposed to possibly being attacked.
- There is a fragmentation issue with CSS.