Front-End Web
Development
Lesson 4
Layout
Agenda
●
●
●
●
●
●

Review (15 minutes)
Classes, IDs, Divs (30 minutes)
HTML5 Structural Elements (20 minutes)
Floats (50 minutes)
How to Start (10 minutes)
Lab Time (45 minutes)
Review
FileZilla & Web Server
Shared Class Web Server
http://studio.generalassemb.ly/FEWDBOS5/
http://studio.generalassemb.ly/fewdbos5/
Box Model
Fashion Blog
Classes, IDs, Divs
With classes and ids we can target specific
elements on a page so that we can manipulate
each uniquely.
Classes, IDs, Divs
Classes, IDs, Divs
Examples:
<div id=”container”></div>
<span class=”bold”></span>
<li id=”current”></li>
Classes, IDs, Divs
IDs are unique
only one ID per page
Classes are not unique
can have multiple classes per page
Classes, IDs, Divs
Floats
Float is a CSS positioning property, used to
layout a web page.
element {
float: left;
float: right;
}
NOTE: there is no float: center;
Classes, IDs, Divs
Let’s build this …
… and see how
floats work
HTML5 Structural Elements
New elements in HTML5:
<header></header>
<nav></nav>
<article></article>
<section></section>
<aside></aside>
<footer></footer>
HTML5 Structural Elements
HTML5 Structural Elements
Assignment:
Replace “old school” divs and IDs page with
HTML5 structural elements
Floats
~ Revisit Wendy G. Bite
~ float image
~ add border
~ add margin and/or padding
How to Start
~ Add two-column layout to Fashion Blog
Lab Time
~ Build out Fashion Blog
Homework
~ Complete Fashion Blog
~ Create index page for your server workspace
~ Sign up for GA Front Row
~ Read A Preview of HTML 5
~ Read CSS Float Theory
~ Read The Difference Between ID and Class

Lesson 04