Question 1 · Beginner
What is CSS, and how does it work with HTML?
CSS (Cascading Style Sheets) is the language that describes how HTML elements are presented: layout, colours, typography, spacing and animation. The browser matches CSS rules to DOM elements, computes a final value for every property, and uses those values to lay out and paint the page.
A CSS rule is a selector plus a declaration block: selector { property: value; }. The browser parses stylesheets into the CSSOM, combines it with the DOM into the render tree, then performs layout and paint.
Keeping styling in CSS (not in HTML attributes) means one change in a stylesheet restyles every page. In the Webvoid admin portal, for example, the sidebar, tables and buttons share one design system, so changing the brand colour is a one-line token change rather than editing hundreds of components.
Example
/* Webvoid admin portal: primary action button */
.btn-primary {
background: #2563eb;
color: #fff;
padding: 0.5rem 1rem;
border-radius: 0.5rem;
}Result: Every <button class="btn-primary"> in the portal (Save course, Publish lesson, Create user) gets the same look from a single rule.