A successful website doesn’t just depend on content, but also on a good design. Users quickly lose interest in websites that aren’t user-friendly or well-structured. Here, CSS offers a range of design options that are not available in pure HTML.
For example, CSS lets you control some specifications centrally. This means that similar elements (such as all hyperlinks or images) within a single document can be recognized and formatted using a single command. The design instructions do not have to be in the form of an internal style sheet in the HTML document itself. If you save the CSS instructions in an external stylesheet, i.e., a separate file, this can also be used for other documents.
In addition to basic display instructions relating to the colors, shapes, and typography of the HTML elements, there are now more sophisticated modules in CSS. With these you can, for example, define animations or different representations depending on the output medium. In this way, the same HTML document can be prepared identically for all possible media. Since the content and design are separate in this document, the code of the website is clearer. The related style language SASS offers even more possibilities, but it doesn’t entirely replace CSS.