File:Official_CSS_Logo.svg · Wikimedia Commons · See Wikimedia Commons
Cascading Style Sheets
Sign in to saveAlso known as Cascading Style Sheet
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.
Cascading Style Sheets (CSS) is a language that controls how websites look by specifying colors, fonts, spacing, and other visual styling for documents written in HTML or similar markup languages. It's one of the three fundamental technologies that make the modern web work, alongside HTML (which provides the content and structure) and JavaScript (which adds interactive behavior).
AI-generated from the Wikipedia summary — may contain errors.
Key facts
- File format.name
- Cascading Style Sheets (CSS)
- File format.extension
- .css
- File format.icon
- Official CSS Logo.svg
- File format.icon_size
- 120px
- File format.iconcaption
- Official logo
- File format.screenshot
- Пример кода на CSS.jpg
- File format.screenshot_size
- 160px
- File format.caption
- Example of CSS source code
- File format.mime
- text/css
- File format.uniform type
- public.css
- File format.developer
- World Wide Web Consortium (W3C)
- File format.genre
- Style sheet language
- File format.latest_release_version
- CSS 3 is being developed as multiple separate modules. Regular snapshots summarize their status.
- File format.container_for
- Style rules for HTML elements
- File format.contained_by
- HTML Documents
- File format.open
- Yes
via Wikipedia infobox
Described at

What is CSS
w3schools.com →HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP W3.CSS C C++ C HOW TO BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS DSA TYPESCRIPT ANGULAR ANGULARJS GIT POSTGRESQL MONGODB ASP AI R GO KOTLIN SWIFT SASS VUE GEN AI SCIPY AWS CYBERSECURITY DATA SCIENCE INTRO TO PROGRAMMING INTRO TO HTML & CSS BASH RUST TOOLS ) The declaration block (in curly braces) contains one or more declarations separated by semicolons. Multiple Styles Cascades into One Try experimenting by removing styles to see how the cascading stylesheets work. Try removing the inline first, then the internal, then the external. Here we will show one HTML page displayed with 4 different stylesheets. Click on the Stylesheet buttons (1-4) too see the page displayed with different styles.
Excerpt from a page describing this subject · 19,442 chars · not written by Vinony
Wikidata facts
- Official website
- drafts.csswg.org
Show 9 more facts
- publication date
- 1996-12-17
- Stack Exchange tag
- stackoverflow.com/tags/css
- source code repository URL
- github.com/w3c/csswg-drafts
- inception
- 1996-12-17
- file extension
- css
- media type
- text/css
- Commons category
- Cascading Style Sheets
- P13411
- Lille
- described at URL
- www.w3schools.com/whatis/whatis_css.asp
Sources (8)
via Wikidata · CC0
~45 min read
Article
57 sectionsContents
- Syntax
- Style sheet
- Selector
- Selector types
- Pseudo-classes
- Combinators
- Summary of selector syntax
- Declaration block
- Declaration
- Properties
- Values
- Use
- Sources
- Multiple style sheets
- Cascading
- CSS priority scheme
- Specificity
- Examples
- Inheritance
- Example
- Whitespace
- Indentation
- Positioning
- Position property
- Static
- Relative
- Absolute
- Fixed
- Float and clear
- History
- Difficulty with adoption
- Vendor prefixes
- CSS 1
- CSS 2
- CSS 2.1
- CSS 3
- CSS 4
- Browser support
- Limitations
- Cannot explicitly declare new scope independently of position
- Pseudo-class dynamic behavior not controllable
- Cannot name rules
- Cannot include styles from a rule into another rule
- Cannot target specific text without altering markup
- Advantages
- Separation of content from presentation
- Site-wide consistency
- Bandwidth
- Page reformatting
- Accessibility
- Standardization
- Frameworks
- Design methodologies
- See also
- References
- Further reading
- External links
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.
CSS is designed to enable the separation of content and presentation, including layout, colors, and fonts. This separation can improve content accessibility, since the content can be written without concern for its presentation; 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.
Gallery (7)
Available in 98 languages
- Español
- Français
- Deutsch
- 中文
- 日本語
- Русский
- Português
- Italiano
- العربية
- हिन्दी
- Afrikaans
- Albanian
- Aragonese
- Armenian
- Assamese
- Azerbaijani
- Bahasa Indonesia
- Bangla
Show 79 more
- Basque
- bat_smg
- Bavarian
- be_x_old
- Belarusian
- Bosnian
- Breton
- Bulgarian
- Burmese
- Catalan
- Central Kurdish
- Croatian
- Czech
- Danish
- Esperanto
- Estonian
- Filipino
- Finnish
- Galician
- Georgian
- Greek
- Hawaiian
- Hebrew
- Hungarian
- Icelandic
- Interlingua
- Irish
- Kabyle
- Kara-Kalpak
- Kazakh
- Khmer
- Kyrgyz
- Latvian
- Lingua Franca Nova
- Lithuanian
- Lombard
- Lower Sorbian
- Macedonian
- Malay
- Malayalam
- Manipuri
- Nederlands
- Northern Frisian
- Norwegian
- Norwegian Nynorsk
- Polski
- Punjabi
- Quechua
- Romanian
- Scottish Gaelic
- Serbian
- Serbian (Latin)
- simple
- Sindhi
- Sinhala
- Slovak
- Slovenian
- Svenska
- Tajik
- Tamil
- Tetum
- Tiếng Việt
- Tumbuka
- Türkçe
- Turkmen
- Ukrainian
- Upper Sorbian
- Urdu
- Uyghur
- Uzbek
- Venetian
- Welsh
- Western Panjabi
- Wu Chinese
- Zaza
- zh_yue
- فارسی
- ไทย
- 한국어
via Wikidata sitelinks · CC0