1. Understand purpose of CSS
2. Strong core concepts of CSS
3. Ability to change how websites look on your computer
Password: cheehuei
use an anonymous name
Content
Presentation
Interactivity
HTML
CSS
JS
OPEN UP CHROME DEV TOOLS
1. Open Chrome
2. Go to google.com
3a) WINDOWS: Press CTRL+SHIFT+C
3b) MAC: Press CMD+SHIFT+C
| Tag | Name |
|---|---|
| <head> | Head (all meta information goes here) |
| <body> | Body (all content goes here) |
| <h1>, <h2>, ... ,<h6> | Header 1, Header 2, etc |
| <p> | Paragraph |
| <a> | Anchor (for links) |
| <div> | Division |
<div class="classy" id="special-snowflake"></div>TAG: div
CLASS: .classy
ID: #special-snowflake
Number of IDs
Number of Classes
Number of Tags
div.hi.even-more-hi {
background-color: orange;
}
div.hi {
background-color: blue;
}
<div class="hi even-more-hi" id="hello"></div>HTML
CSS
div.hi.even-more-hi<div class="hi even-more-hi" id="hello"></div>id
class
tag
0
2
1
div.hi
id
class
tag
0
1
1
div.hi.even-more-hi
div.hi.even-more-hi {
background-color: orange;
}
#hello {
background-color: blue;
}
<div class="hi even-more-hi" id="hello"></div>HTML
CSS
div.hi.even-more-hi<div class="hi even-more-hi" id="hello"></div>id
class
tag
0
2
1
#helloid
class
tag
1
0
0
#hello
.hi p {
color: orange;
}
div p {
color: blue;
}
<div class="hi even-more-hi" id="hello">
<p id="super-important-text">Filler!</p>
</div>HTML
CSS
.hi p.hi pid
class
tag
0
1
1
div pid
class
tag
0
0
2
<div class="hi even-more-hi" id="hello">
<p id="super-important-text">Filler!</p>
</div>div.hi.even-more-hi p {
color: orange;
}
p#super-important-text {
color: blue;
}
<div class="hi even-more-hi" id="hello">
<p id="super-important-text">Filler!</p>
</div>HTML
CSS
div.hi.even-more-hi pid
class
tag
0
2
2
p#super-important-textid
class
tag
1
0
1
<div class="hi even-more-hi" id="hello">
<p id="super-important-text">Filler!</p>
</div>
p#super-important-text
codecademy.com (free)
codeschool.com (paid)
yustynn_panicker@mymail.sutd.edu.sg
End
end