What is CSS?
- CSS is the acronym for Cascading Style Sheets.
- It is widely used language on the web.
- Styles are set using CSS properties. For example, you can set font properties (size, colors, style etc), background color, border styles, and much more.
- Which describe the look and formatting of a document written in markup language.
- External stylesheets are stored in CSS files.
What does CSS (Cascading Style Sheets) do?
You can give new looks to your old HTML documents.
You can completely change the look and feel of your website with only a few changes in CSS code.
Why Use CSS (Cascading Style Sheets)?
In this CSS tutorial, we explain why to use CSS.
- Saves time: You can write CSS once and then reuse that sheet in multiple HTML pages. You can define a style for each HTML element and apply it to as multiple Web pages as you want.
- Solves a big problem: Before CSS, tags like font-size, font-family, color, background style, element alignments, border and size had to be repeated on every web page. This was a very lengthy process.
- Provide more attributes: To define the look and feel of the website, CSS provides more attributes than plain HTML.
- Easier to maintain and update: CSS provides an easy means to update the formatting of the documents, and to maintain the consistency across multiple documents. Because the content of the entire set of web pages can be easily controlled using one or more style sheets.
- Faster page loading: CSS enables multiple pages to share the formatting information, which reduces complexity and repetition in the structural contents of the documents. It reduces the file transfer size, which results in a faster page loading.
- Multiple Device Compatibility: CSS allow content to be optimized for more than one type of device or media. By using the same HTML document, different versions of a website can be presented for handheld devices such as desktop, cell phones, etc .
Note: If you don’t know HTML basics , we suggest that you read our HTML Tutorial.