🌐
W3Schools
w3schools.com › css › css_intro.asp
CSS Introduction
Static/Relative Position Fixed/Absolute Position Sticky Position Code Challenge CSS Position Offsets ... The var() Function Overriding Variables Variables and JavaScript Variables in MQ Code Challenge CSS @property
declarative language for styling 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 … Wikipedia
Factsheet
Cascading Style Sheets (CSS)
Filename extension .css
Internet media type text/css
Factsheet
Cascading Style Sheets (CSS)
Filename extension .css
Internet media type text/css
🌐
Wikipedia
en.wikipedia.org › wiki › CSS
CSS - Wikipedia
3 days ago - 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 ...
Discussions

Min height and Max height in Media Queries
min-height anything over. max-height anything under. More on reddit.com
🌐 r/css
3
4
April 3, 2021
ELI5: I understand that HTML is for content, CSS for styling, JS for fancy stuff, but exactly what else goes into creating a website like reddit or twitter?
Since this is Explain like I'm five: What javascript is As you said, HTML is for content and CSS is for styling. Javascript, however, is a programming language. When used in the browser, it's mostly used to make things fancy and add functionality that would otherwise require a full reload from the page. (Javascript is not used exclusively on the browser, it's a programming language that can do everything any other language like python or C++ can, and in fact, although it has many flaws, it's a pretty cool language for web programming). How javascript is used So where's javascript used on reddit? If reddit existed in 1995, before javascript came along, clicking the save button to post this comment would send a POST HTTP request to reddit and the page would reload. Even if I could send the POST request without reloading somehow, my version of the webpage would not change (the comment would not appear), since there would be no way to update the HTML of the page dynamically while the user has the page open. There would be no other way to get content from the server. However, now that javascript exists, clicking save to post will not submit a request directly. Instead, it will trigger some javascript code that is executed within the browser. This piece of javascript can do pretty much everything with the data. In this case, it will check that the comment textbox is not empty, if it's not it will take it's content and send it to the server without reloading the page. The server (and I will explain why/how later) will receive the request, process it in some way, save it in some kind of database and return a reply that will hopefully be along the lines of "Ok, I saved the comment, kkthxbb". The javascript client will receive this reply and update your version of the webpage by closing the textbox and making the comment visible. What else is needed Of course HTML/CSS/JS is not all that's required in making a website. What's this server thing? Well, if you're going to have persistent content and many users in your application, you need to somehow save data somewhere. In reddit's case, links, posts, comments and up/down votes. That happens in a database, a program responsible for keeping data and performing operations on the data (updates, lookups, deletions) fast, really fast. The rest of the application interacts with this database, performing operations like "Add an new comment to the comments table and keep a reference to the containing post". Clearly, the users should be able to somehow access this database. I need some kind of access to reddit's database to post this comment. Why javascript isn't enough So why can't client-side javascript handle that? It can! Theoretically you could have a dynamic app like reddit that runs entirely on the browser. Database operations and data validation (ensuring my comment is not a a quazillion bytes long and doesn't contain any harmful code) would be done entirely on the user's browser. But that wouldn't be a very clever thing to do, since javascript code is visible to the user (there's no way to prevent this effectively since it's executed on the user's computer). On chrome, pressing ctrl+alt+I (if I remember correctly) let's you see all of reddit's javascript, and run your own javascript commands. That means it would be redicioulously easy to bypass any kind of validation and post whatever I want on the comments, even harmful code. Even worse, since the client would have read/write access to the database anybody would be able to delete and update anything. Clearly we don't want that. Whatever kind of app you're building, you'll almost always want to limit database access and validate user data in a safe way, away from the client. That's why there's a server application running on reddit's servers. That application has complete read/write access to the database and performs data validation, however users can't interact with it directly. You can only send requests like "POST a new comment" with arguments (the comment itself in this case) to the server. The server code (for reddit it's written in python) will run in an entirely different computer, process and validate your request and send you an answer. You could say that the server-side code is a middleman between you and the database. It's important to realize that the choice of language has nothing to do with safety. Performing data validation with javascript is safe, as long as you're not doing it on the client side. Javascript also works on the server-side. It depends on where the code is run, not in what language it's written. Conclusion Additionally, a website may have all kinds of code running on the backend. Reddit has an algorithm that chooses what posts will go to the front page and what posts will not. Usually when writing an web app, you use an existing database program like MySQL, CouchDB, Redis or MongoDB to store your data and perform operations on it. Then you have to write the backend code that respons to user requests, processes data and interacts with both the database and the clients, and the HTML and CSS to render data on the client and optionally some client-side javascript to add some logic on the client-side. TL;DR: You need back-end code for security reasons. More on reddit.com
🌐 r/explainlikeimfive
99
351
June 2, 2012
ELI5:CSS

HTML defines content, CSS decorates it and helps tell how it is displayed.

CSS stands for Cascading Stylesheet. This means that there is a hierarchy of style attributes overwriting other attributes that affect the same elements.

Think of it like this. Bob Ross does an oil painting and starts off with a canvas covered in liquid white. This is the lowest level on the hierarchy. It applies to the entire body of the painting, like a class applied to the body tag.

On that he paints some divs of class "mountain". The mountain class has the attribute paint-color:Van Dyke Brown. Since the div is within body the paint-color:Van Dyke Brown attribute overwrites the liquid white and you see the Van Dyke Brown over the liquid white.

He adds some divs of class "happy little tree" which are growing wherever they like, which happens to be on the mountains, so these happy little tree divs are within the mountain divs. Their paint-color:Sap Green is within the mountain div, so where the happy little tree divs are is painted with Sap Green on top of the Van Dyke Brown mountains.

Then Bob adds another happy little tree div. This one he wants to be Alizarin Crimson because its his world and it can be whatever fucking color he god damn pleases. Rather than giving it a special id and using the # selector Bob makes the happy little accident of using an inline style. This overwrites the happy little tree class's paint-color:Sap Green attribute with an inline paint-color:Alizarin Crimson because inline styles cascade over classes.

More on reddit.com
🌐 r/explainlikeimfive
9
19
July 14, 2012
ELI5: The difference between HTML5, CSS and other web-based languages.
Like you're five? Okay then! Imagine your house. You've got bedrooms, stuff in your bedrooms, people living in the house and lots of colours and materials everywhere. HTML5 is the main backbone of the house, it controls what objects exist inside the house. CSS is what makes the house look good. It controls where these objects go. It controls what colour they are, how big they are, and really just about anything to do with their appearance. JavaScript is a little more complicated. It's something that lets the house DO things. So say you had a white microwave sitting in your kitchen. The microwave is there because HTML told it to exist. It's white and sitting in your kitchen because that's how CSS told it to appear... And finally it's able to switch on and heat things because that's what JavaScript is doing. JavaScript works with the existing HTML and CSS code and manipulates them slightly to carry out certain actions when it needs to. Finally, the last main web language, PHP. This is sort of like the "daddy" of the house. PHP starts organising the house. It clumps groups of similar typed HTML code (like say all the bedrooms) into one command. That means that when this one command is announced, suddenly a bedroom will appear. So say the daddy decides that it no longer wants 3 bedrooms and 2 bathrooms in the house, but it wants 4 bedrooms and 4 bathrooms. Rather than going through the trouble of making it all again, he just calls out this one command. PHP, unlike the other languages is all maintained behind the scenes. What you'll see is the resulting bits and bobs of HTML and CSS that you can recognise, but really it's PHP that's controlling what to show you and what to keep hidden away for later use because it isn't currently necessary. More on reddit.com
🌐 r/explainlikeimfive
8
8
November 11, 2011
People also ask

Why should I use CSS?

CSS separates a website’s content from its design; this makes it an essential skill for those who work with websites. The separation supports website loading speed, ensures a consistent user experience across devices, and makes it easy to maintain code.

🌐
coursera.org
coursera.org › coursera articles › computer science and engineering › web and app development › what is css?
What Is CSS? | Coursera
What are the 4 types of CSS?

There are three primary types of CSS: inline, embedded (sometimes called “internal”), and external; the fourth type is imported, which describes rules placed from an external source.

🌐
coursera.org
coursera.org › coursera articles › computer science and engineering › web and app development › what is css?
What Is CSS? | Coursera
Is CSS difficult to learn?

Foundational knowledge of CSS can be relatively easy for beginners to learn. More advanced CSS projects require the ability to master the cascade, or override, of rules.

🌐
coursera.org
coursera.org › coursera articles › computer science and engineering › web and app development › what is css?
What Is CSS? | Coursera
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Learn_web_development › Core › Styling_basics › What_is_CSS
What is CSS? - Learn web development | MDN
CSS (Cascading Style Sheets) allows you to create great-looking web pages, but how does it work under the hood? This article explains what CSS is, what the basic syntax looks like, and how your browser applies CSS to HTML to style it. In the Structuring content with HTML module, we covered ...
🌐
CareerFoundry
careerfoundry.com › en › blog › web-development › what-is-css
What is CSS? A Web Developer's Guide for 2025
If you’re interested in becoming a web developer, you may have also asked yourself how a programmer is able to alter the appearance of those pages using code. The answer to these questions is CSS, or Cascading Style Sheets, which is the language ...
Published   February 6, 2023
🌐
Computer Hope
computerhope.com › jargon › c › css.htm
What Is CSS?
The following box contains an example of using CSS code to define fonts, the color of hyperlinks, and the color of a link when the mouse cursor hovers over. In this specific example, we are only changing the HTML (HyperText Markup Language) tags ...
🌐
Coursera
coursera.org › coursera articles › computer science and engineering › web and app development › what is css?
What Is CSS? | Coursera
3 weeks ago - CSS, or Cascading Style Sheets, in a programming language that offers stylistic choices for web design. Deepen your understanding of Cascading Style Sheets (CSS), one of the key technologies in website creation.
Find elsewhere
🌐
TechTerms
techterms.com › definition › css
CSS Definition - What are cascading style sheets (CSS)?
March 7, 2023 - Styles may be found within a webpage's HTML file or in a separate document referenced by multiple webpages. CSS helps web developers create a uniform look across an entire website. Instead of formatting the appearance of each table and block of text in a webpage's HTML code, a style is defined once in a CSS style sheet.
🌐
Hunterbusinessschool
hunterbusinessschool.edu › home › blog › what is html and css?
What Is HTML and CSS? | Hunter Business School
July 5, 2025 - They describe how an HTML element will display and control the layout of multiple web pages. CSS is used to define styles for a web page. CSS enables styling of web pages by allowing web developers to write style definitions in separate CSS files, which helps maintain consistency and makes it easier to update styles across a site.
🌐
Lara Karki
notlaura.com › home › blog › css is a declarative, domain-specific programming language
CSS is a Declarative, Domain-Specific Programming Language - Lara (Schenck) Karki
September 22, 2023 - I expected the contents of the talk to be a deep-dive into a few algorithms in browsers’ rendering engines, things like CSS Grid auto placement or the layout of flex items, but it ended up being much more than that. Once I set out on a mission to connect the two, it was like web developer enlightenment. I was like “Holy f&*#, CSS is computer science!!!
🌐
Skillcrush
skillcrush.com › home › blog › blog
What is CSS, How Does It Work and What is It Used For? - Skillcrush
August 3, 2023 - CSS, or Cascading Style Sheets, adds styles like fonts and colors to websites. If HTML is the foundation, CSS is the flair. Here's a super easy primer on how it works and how to use CSS.
🌐
ScienceDirect
sciencedirect.com › topics › computer-science › cascading-style-sheet
Cascading Style Sheet - an overview | ScienceDirect Topics
Cascading Style Sheets (whose abbreviation, CSS, should not to be confused with XSS), control the layout of a web site for various media. A web page could be resized or modified depending on whether it’s being rendered in a browser, a mobile phone, or sent to a printer.
🌐
GeeksforGeeks
geeksforgeeks.org › css › css-tutorial
CSS Tutorial - GeeksforGeeks
CSS Frameworks are a collection of pre-written CSS files (and sometimes JavaScript components) that offer reusable code for common tasks such as buttons, grids, forms, and navigation menus. ... This section contains information about the preprocessors used in CSS.
Published   2 weeks ago
🌐
Britannica
britannica.com › technology › computers
CSS | Definition, History, & Facts | Britannica
February 13, 2026 - Encyclopaedia Britannica's editors ... or via study for an advanced degree.... ... CSS, declarative-style computer programming language used to design website content....
🌐
Hostinger
hostinger.com › home › tutorials › what is css and how does it work?
What is CSS: Cascading Style Sheet Explained for Beginners
August 21, 2025 - This means web developers had to describe the color, font size, alignments, and everything else for each block of text on the page. CSS lets you stylize a list of design rules in a separate file that are referenced in the HTML markup.
🌐
FutureLearn
futurelearn.com › home › what are html and css used for? the basics of coding for the web
What are HTML and CSS used for? | the basics of web code - FutureLearn
December 2, 2024 - You don’t need any licenses, you don’t need to pay for it, and it can be pretty easy to learn and code. If we can compare a webpage to the human body, then HTML is the bones of the body. CSS is the acronym for Cascade Styling Sheets.
🌐
Scribd
scribd.com › document › 833210442 › What-is-Css-Strand-Google-Search
What Is Css Strand - Google Search | PDF | Computing
CSS, or Computer Systems Servicing, is a strand in senior high school focused on teaching students to install, configure, and maintain computer systems and networks. It is part of a Technical-Vocational Education and Training (TVET) program ...
🌐
Quora
quora.com › What-is-the-CSS-in-a-computer
What is the CSS in a computer? - Quora
Answer (1 of 12): Cascading style sheets It is mostly used for designing the webpages more attractively. Its is used for design the font, applying styles on fonts… Also we can give colors to the fonts, body of pages…