Introduction to CSS
– CSS is a style sheet language used for specifying the presentation and styling of documents.
– It is used in conjunction with markup languages like HTML and XML.
– CSS enables the separation of content and presentation.
– It is a cornerstone technology of the World Wide Web.
– CSS allows for improved content accessibility.
Key Features of CSS
– CSS provides flexibility and control in specifying presentation characteristics.
– It allows for the sharing of formatting across multiple web pages.
– CSS files can be cached to improve page load speed.
– Formatting and content can be separated, enabling different styles for different rendering methods.
– CSS supports the specification of layout, colors, and fonts.
Development and Latest Releases
– CSS was developed by the World Wide Web Consortium (W3C).
– The initial release of CSS was in December 1996.
– The latest release is CSS 2.1: Level 2 Revision 1, which occurred in April 2016.
– CSS is an open format.
– More information about CSS can be found on the W3C website.
File Extensions and Internet Media Type
– CSS files have the .css extension.
– The internet media type for CSS is text/css.
– CSS files are identified by the Uniform Type Identifier (UTI) public.css.
– CSS is a style sheet language container for style rules of HTML elements.
– HTML documents can contain CSS rules.
Benefits of Using CSS
– CSS reduces complexity and repetition in structural content.
– It improves the maintainability of web pages.
– CSS allows for consistent styling across a website.
– It facilitates responsive web design.
– CSS enables the creation of visually appealing and user-friendly web pages.
Cascading Style Sheets (CSS) is a style sheet language used for specifying the presentation and styling of a document written in a markup language such as HTML or XML (including XML dialects such as SVG, MathML or XHTML). CSS is a cornerstone technology of the World Wide Web, alongside HTML and JavaScript.
Filename extension |
.css |
---|---|
Internet media type |
text/css |
Uniform Type Identifier (UTI) | public.css |
Developed by | World Wide Web Consortium (W3C) |
Initial release | 17 December 1996 |
Latest release | CSS 2.1 : Level 2 Revision 1 12 April 2016 |
Type of format | Style sheet language |
Container for | Style rules for HTML elements (tags) |
Contained by | HTML Documents |
Open format? | Yes |
Website | www |
CSS is designed to enable the separation of content and presentation, including layout, colors, and fonts. This separation can improve content accessibility;
This article is missing information about "baseline for comparison".(December 2023) |
provide more flexibility and control in the specification of presentation characteristics; enable multiple web pages to share formatting by specifying the relevant CSS in a separate .css file, which reduces complexity and repetition in the structural content; and enable the .css file to be cached to improve the page load speed between the pages that share the file and its formatting.
Separation of formatting and content also makes it feasible to present the same markup page in different styles for different rendering methods, such as on-screen, in print, by voice (via speech-based browser or screen reader), and on Braille-based tactile devices. CSS also has rules for alternate formatting if the content is accessed on a mobile device.
The name cascading comes from the specified priority scheme to determine which style rule applies if more than one rule matches a particular element. This cascading priority scheme is predictable.
The CSS specifications are maintained by the World Wide Web Consortium (W3C). Internet media type (MIME type) text/css
is registered for use with CSS by RFC 2318 (March 1998). The W3C operates a free CSS validation service for CSS documents.
In addition to HTML, other markup languages support the use of CSS including XHTML, plain XML, SVG, and XUL. CSS is also used in the GTK widget toolkit.