[CSS-101] What is CSS?

David Shin
2 min readMar 1, 2021

Have heard CSS before? Those who just started learning programming might wonder what is CSS? well according to the MDN website is defined as “ Cascading Style Sheets (CSS) is a stylesheet language used to describe the presentation of a document written in HTML or XML (including XML dialects such as SVG, MathML, or XHTML). CSS describes how elements should be rendered on screen, on paper, in speech, or on other media.” In other words, it’s more like supporting HTML with a Human-friendly design.

Resources: https://justpublishingadvice.com/what-is-css-inline-css-tricks-and-tips-for-total-beginners/

So If CSS is designing for what users see on the website How come to HTML and CSS and just combine or come with one language like property of HTML? Well in that case there is one huge problem where each tag in HTML needs to be controlled. Ok, I could do that right? just add some property in the HTML tag, but then what if you write in a big project and there are like a thousand <div> tags, will you able to write each single <div> tag? that’s probably big time consuming and such a wasting time.

For Instance,

<div> // Imagine you have like thousands of <div> tag...
<li>Apple</li>
<li>Peach</li>
<li>Organge</li>
<li>Banana</li>
</div>
<div> // Imagine you have like thousands of <div> tag...
<li>Apple</li>
<li>Peach</li>
<li>Organge</li>
<li>Banana</li>
</div>
<div> // Imagine you have like thousands of <div> tag...
<li>Apple</li>
<li>Peach</li>
<li>Organge</li>
<li>Banana</li>
</div>

You get that picture right? Now with CSS, all we need is a simple single line to take care of it. So even though HTML and CSS are separate languages, is kind of necessary due to situation like this.

--

--