Learning CSS — Part 1

What is CSS?

Style of a web page is defined by CSS

What do you mean by style of the web page?

How do I define the style with CSS?

h1 {
color: #2f4f4f;
margin-bottom: 10px;
}
<link rel="stylesheet" href="styles.css" type="text/css" />
Break down of a CSS ruleset.

Selector represents all the HTML elements that this style applies to.

Declaration block holds a set of declarations

The process of resolving the conflicting rulesets is called cascading.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store