Cascading Style Sheets (CSS) is a style sheet language used for describing the presentation of a document written in a markup language like HTML.
We use CSS to add style to our HTML tags.
CSS makes HTML more beautiful.
There are several ways to apply CSS to HTML tags.
In this lesson we will learn 2 methods for applying CSS to our HTML, inline and using the style tag.
The inline method involves placing a style attribute inside of an HTML tag.
This is an opening and closing paragraph tag.
<p> </p>
We can place a style attrubute inside of the opening p tag like this:
<p style="" > Some text. </p>
By adding styles inside of the style attribute we can define what the text in the paragraph tags looks like.
<p style="color:red;" > Some text. </p>
The style color:red tells the browser that any text inside if the p tags should be red.
You can find a list of CSS styles here.