Classes & IDs
HTML has classes and IDs to make elements
easier to distin uish
Classes are more generic, like a box, button etc.
IDs are very specific and must be used with caution
Slide 9
Slide 9 text
Basic example
HTML is as simple as ABC
Slide 10
Slide 10 text
Basic example
…which actually is
Slide 11
Slide 11 text
Box model
HTML elements always behave like boxes
the most important thing about HTML
it will help you get to the next level
required to make a solid structure
required to debug HTML
Slide 12
Slide 12 text
Box model
Here’s the previous example. See the boxes?
Slide 13
Slide 13 text
Box model
Here’s the previous example. See the boxes?
Slide 14
Slide 14 text
disappointed.
this pa e looks bad.
Slide 15
Slide 15 text
What is CSS
Cascadin
Style
Seets
It’s what makes your HTML beautiful.
Slide 16
Slide 16 text
Basic CSS rules
CSS consists of rules, like this one
h1 {color: black; text-align:center;}
selector declaration #1 declaration #2
Slide 17
Slide 17 text
Basic CSS rules
Some details about CSS rules
selector defines what HTML element to target
declarations in a block, defined by brackets{...}
declaration have a property and a value
Slide 18
Slide 18 text
CSS selectors
CSS selectors are used to tar et specific HTML
elements with rules
h1 {...}
This is a title
p {...}
This is a paragraph
.active{...}
.active{...}
#signup{...}
Slide 19
Slide 19 text
IT’S A
TRAP!
Slide 20
Slide 20 text
Never, ever, ever, ever
use IDs in your CSS!
Seriously, don’t do this. It’s messy.
You’ll end with super stron selectors that
you can’t override.
Slide 21
Slide 21 text
Tools you’ll need
A competent text-editor
Sublime Text 2 - highly recommended text-editor
Developer’s tools
Firebug is recommended, for Firefox & Chrome
A crappy computer
Nothing fancy, you probably already have one
Slide 22
Slide 22 text
Tools you’ll need
Wamp Server
Very basic web server for your PC
Goo le search
Remember, Google has the answer to your problem
Slide 23
Slide 23 text
Resources to read
Mozilla Developer Network
The best web library out there
http://developer.mozilla.org/en-US/
CSS Tricks
Your CSS buddy - you can find anything here
http://www.css-tricks.com/
Slide 24
Slide 24 text
Resources to read
Github
The biggest source code hosting site
http://github.com/edu
Codecademy
You can learn code by doing
http://www.codecademy.com