CSS Full Course for Beginners | Complete All-in-One Tutorial | 11 Hours

https://m.youtube.com/watch?v=Xc6G3oV24yE

Getting Started

CSS (Cascading Style Sheets), mainly used for HTML although possible to use for XML.

Three ways to apply style:

Final defined styles will override the previous one.

The previous one will only be persisted when specified as !important, where should be prevented most of the time, as the code should have designed properly without overrules.

CSS Validation

The W3C CSS Validation Service

01 - Selectors

Three common levels of selector:

Use <span class="...">...</span> inline, for special inline styles.

h2 {
    border-bottom: 1px solid #999;
}

.toc {
    color: gray;
    border: 1px solid #999;
}

p code {
    /* All code inside paragraph will be blue */
    color: blue;
}