# CSS

CSS stands for Cascading Style Sheets.

CSS describes how HTML elements are to be displayed.

defined by www.w3schools.com (opens new window)

# How to write CSS

  • There are many ways to write CSS. However, Two of them will be described.

# External Style Sheet



 

+-- index.html
+-- profile.jpg
+-- style.css
1
2
3

index.html

...
<head>
    ...
    <link rel="stylesheet" href="style.css">
</head>
...
1
2
3
4
5
6

# Inline Style

index.html

...
<h1 style="color: red;">HelloWorld</h1>
...
1
2
3