discoveringCSS.html
in your browser and in your text editor.default.css
in the code, and replace it with style1.css
.style1.css
in style2.css
.We have used this special HTML element: link.
<link rel="stylesheet" href="style1.css">
The link element enables us to “include” other files in our web page.
Here, we have included a Stylesheet writen in CSS that gives instructions to change the look of the page.
style1.css
and observe the code.A CSS rule includes is composed of two main elements: a selector, and a set of properties.
em{
color: green;
font-size: 20px;
}
For example, this CSS rule means that all the em elements of your web page will be displayed in green and the size of the text will be 20px.