Monday | Tuesday | Wednesday | Thursday | Friday | |
---|---|---|---|---|---|
9:00 | sleep | CompSci 110 | breakfast | CompSci 110 | running |
10:00 | breakfast | CompSci 108 | free | CompSci 108 | |
11:00 | |||||
12:00 | lunch | lunch | lunch | lunch | lunch |
1:00 | free | free | free | free | free |
2:00 | |||||
3:00 | |||||
4:00 | |||||
5:00 |
Monday Tuesday Wednesday Thursday Friday 9:00 sleep CompSci 110 breakfast CompSci 110 running 10:00 breakfast CompSci 108 free CompSci 108 11:00 12:00 lunch lunch lunch lunch lunch 1:00 free free free free free 2:00 3:00 4:00 5:00
Note, this example embeds the style sheet inside the HTML file using the style
tag. It is a better practive to keep the HTML and the CSS in separate files, since it makes it easier to use the same style sheet for multiple HTML files or to have multiple styles for the same HTML page. To use a separate CSS file, include this line in the head
of your HTML file:
<link href="my_style_sheet.css" type="text/css" rel="stylesheet" media="screen" />
Note, the style
tag should be included in the head
of the HTML page or be the first tag after body
.
For more detail on the options available when using Cascading Style Sheets, see these resources: