Web Design Bootcamp

day 01
with Aslam Najeebdeen
About me
Aslam Najeebdeen
@aslamnd
Why I’m here today?
Help people
Make friends
Have Fun
Agenda
•

HTML 5

•

CSS 3

•

CSS Frameworks

•

SASS & Compass
HTML 5
What is hTML 5?

Not revolution it’s an evolution
WHY HTML5?
•

Backword compatibility

•

Error parsing
New Features
•

Semantic elements and attributes

•

Support for audio and video

•

Reduce the need of 3rd party plugins

•

Detailed algorithms for parsing errors

•

Built in APIs to help web application
.”

“

HTML5 is a brand

– Michael Mahemoff, Software as She Developed
what isn’t HTML5?
•

Web Sockets

•

Geolocations

•

SVG

•

CSS3 transitions

•

CSS @font-face
“

If you think something is
HTML5, it probably isn't. Don't
worry though, even the W3C is
confused.
@whathtml5isnot
Demo
<!DOCTYPE html>

<html>

<head>

<meta charset="UTF-8">

<title>Document</title>

</head>

<body>
<%= yield %>

<h1>Hello World</h1>

</body>
</html>

layout.erb

index.html

index.html.erb
New Structural
<tags>
Section tag
<section></section>
“The section element represent a generic section of a
document or application. A section, in this context, is a
thematic groups of content, typically with a heading…”

<section> tag is not a replacement for <div> tag
Article tag
<article></article>
“The article element represents a self-contained
composition in a document, page, application, or site
and that is intended to be independently distributable
or reusable, in syndication

e.g: a blog entry, newspaper article, forum post, blog
comments or any other independent item of content
aside tag
<aside></aside>
Represents a section of a page that consists of content
that is tangentially related to the content around the
aside element, and which could be considered separate
from that content.

e.g: sidebar content, polls, quotes, relation navigations
Aside tag
!
!

<article>

<aside>

<aside>
header tag
<header></header>
Represents a a group of introductory or navigational
aids. A header element is intended to usually contain the
section’s heading (an h1 - h6 element or an hgroup
element), but this not required. The header element can
also be used to wrap a section’s table of contents, a
search form or any relevant logos.”
Note: a document can contain multiple headers
header tag
<header>

<header>
!
!

<article>
<aside>
<header>
!
!

<article>
Hgroup tag
<hgroup></hgroup>
Represents the heading of a section. This element is
used to group a set of h1-h6 elements when the heading
has multiple levels, such as subheadings, alternative
titles, or tag lines.
footer tag
<footer></footer>
“Represents a footer for it’s nearest ancestor sectioning
content or sectioning root element. Typically contains
information about its section such as who wrote it, links
to related documents, copyright data, and the like”

Note: a document can contain multiple footers
Footer tag
<header>
<header>
<article>
<footer>
<aside>
<header>
<article>
<footer>
<footer>
Nav tag
<nav></nav>
“Represents a section of a page that links to other pages
or to parts within the page: a section with navigation
links.”

Note: only to be used in major navigation block.
Other NEW
<tags>
content tags
<video>
<audio>
<figure>
<embed>
<canvas>
Application focus tags
<meter>
<time>
<progress>
<details>
<command>
<menu>
Deprecated
<tags>
presentational tags
<basefont>
<big>
<center>
<font>
<s>
<strike>
<tt>
<u>
Accessibility concerns
<frame>
<frameset>
<noframe>
Out of date tags
<dir>
<applet>
<acronym>
<isindex>
CSS
declaration
selector

property

value

h1 { font-size: 3.2em; }
CSS Rule
•

Selectors - http://goo.gl/ZdvQj

•

Properties and values: http://goo.gl/
wzNdc
Units
Units
px

pixels

vw

viewport width

em

ems

vh

viewport height

rem

root ems

vmin

viewport minimum

ex

exes

vmax

viewport maximum

gd

grids

ch

character
ems

1em

100% default browser font size = 16px
A relative unit of measurement
calculating ems
target size / default size = # of ems

20px = 20 / 16 = 1.25em
ems
h1{
font-size: 2em;
padding-bottom: 1em;
background: red;
}

2em = 2 x base font size (16px) = 32px
1em = 2 x font size (32px) = 32px

demo
Better way to calculate ems?
What if we can make the base font size to 10px?

10/16 = .625em
why rem (root ems)?
<div class=“featured”>
<h1>Hello World</h1>
</div>
.featured {
font-size: 2em;
}

2em = 2 x base font size (16px) = 32px

!

.featured h1 {
font-size: 2em;
}

2em = 2 x font size (32px) = 64px

!

.featured h1 {
font-size: 2rem;
}

2em = 2 x base font size (16px) = 32px

http://goo.gl/85fhM

demo
viewport measurements
http://goo.gl/Vxm7J
Understanding
the Box model
Web Design Bootcamp - Day1
Box model
margin
padding

The CSS box model describes the rectangular boxes that
are generated for elements in the document tree and laid
out according to the visual formatting model.

600px

700px

demo
Resolving
Conflicts
“

If you have lot’s of !important in
your stylesheet, you are doing
it wrong!
– Author Unknown
Things you should master
Cascade
Inheritance
Specificity
Cascade

•

Last style applies
wins

demo
Inheritance
•

Child always wins

•

Organize the basic
and default styles
for top level
elements

demo
Specificity
selector

Inline

ID

class

elements

specificity

body

0

0

0

1

1

div p

0

0

0

2

2

.author

0

0

1

0

10

#container

0

1

0

0

100

#featured div

0

1

0

1

101

<div
style=“background:
red;”>

1

0

0

0

1000

demo
Specificity

•

Keep specificity as
low as possible

demo
General rules of thumb

Avoid local and inline styles
Colors
hexadecimal

#FFFF00
#FF0
demo
RGB
rgb(255,23,54)
rgb(90%,10%,30%)

demo
hsl
hsl(0-360,%,%)

demo
Tools
•

Adobe Kuler - http://kuler.adobe.com

•

ColorSchemer Studio (Mac/Windows)

•

ColorSnapper (Mac)

•

Alfred Color plugin
Cross browser issues

•

Avoid Hacks as much as possible

•

Use conditional comments
Meet Modernizr

demo
CSS Frameworks

demo
CSS Reset

•

Eric Mayer’s reset

•

YUI Reset

•

Normalize

demo
“

I don’t want to take styles effects for granted[…] It
makes me think just that little bit harder about the
semantics of my document. With the reset in place, I
don’t pick strong because the design call for
boldfacing. Instead, I pick the right element whether
it’s strong or em or b or h3 or whatever - and then
style it as needed

– Eric Meyer, Reset Reasoning
Please don’t do this!
* {
margin: 0;
padding: 0;
}
CSS GRIDS
DEMO

demo
Sass & Compass

demo
keep in touch
Twitter: @aslamnd
Facebook: /aslamnajeebdeen
Email: aslamnajeem@gmail.com
Blog: http://aslamnajeebdeen.com




More Related Content

PPTX
Basics of Front End Web Dev PowerPoint
KEY
Artdm171 Week4 Tags
PPTX
HTML 5 Fundamental
PPTX
Introduction to HTML and CSS
PDF
Modular HTML & CSS Workshop
PDF
Modular HTML & CSS Turbo Workshop
PPTX
HTML Semantic Tags
PDF
Html css crash course may 11th, atlanta
Basics of Front End Web Dev PowerPoint
Artdm171 Week4 Tags
HTML 5 Fundamental
Introduction to HTML and CSS
Modular HTML & CSS Workshop
Modular HTML & CSS Turbo Workshop
HTML Semantic Tags
Html css crash course may 11th, atlanta

What's hot (20)

PDF
Html:css crash course (4:5)
KEY
Fronttechnieken met HTML5 en de Slice-template
PPTX
Web 102 INtro to CSS
PPT
Please dont touch-3.6-jsday
PDF
CSS Best practice
PDF
Thinkful - Frontend Crash Course - Intro to HTML/CSS
PDF
Code &amp; design your first website (3:16)
PDF
HTML5 & CSS3 Flag
PDF
Efficient, maintainable CSS
PDF
Code & Design your first website 4/18
PPTX
Web 101 intro to html
PDF
Layout with CSS
PDF
HTML5+CSS3 (入門編)
PDF
Introduction to Html by Ankitkumar Singh
PPTX
Make Your Site Faster: How to Improve Front-End Performance Strategy
PPTX
HTML, CSS, JavaScript for beginners
KEY
Slow kinda sucks
PDF
Prototyping w/HTML5 and CSS3
PPTX
Rapid and Responsive - UX to Prototype with Bootstrap
PPSX
Session Two css
Html:css crash course (4:5)
Fronttechnieken met HTML5 en de Slice-template
Web 102 INtro to CSS
Please dont touch-3.6-jsday
CSS Best practice
Thinkful - Frontend Crash Course - Intro to HTML/CSS
Code &amp; design your first website (3:16)
HTML5 & CSS3 Flag
Efficient, maintainable CSS
Code & Design your first website 4/18
Web 101 intro to html
Layout with CSS
HTML5+CSS3 (入門編)
Introduction to Html by Ankitkumar Singh
Make Your Site Faster: How to Improve Front-End Performance Strategy
HTML, CSS, JavaScript for beginners
Slow kinda sucks
Prototyping w/HTML5 and CSS3
Rapid and Responsive - UX to Prototype with Bootstrap
Session Two css
Ad

Similar to Web Design Bootcamp - Day1 (20)

KEY
Artdm171 Week5 Css
KEY
ARTDM 171, Week 5: CSS
PPTX
Rapid HTML Prototyping with Bootstrap 4
PPTX
Web Engineering - Introduction to CSS
PDF
GDI Seattle Intermediate HTML and CSS Class 1
PDF
Introduction to HTML and CSS
PPTX
WEBSITE DESIGN AND DEVELOPMENT WITH CASCADING STYLE SHEETS(CSS)
PPTX
INTRODUCTION CODING - THE HTML AND CSS.pptx
PPTX
Workshop 2 Slides.pptx
PPT
SDP_-_Module_4.ppt
PPTX
Unitegergergegegegetgegegegegegeg-2-CSS.pptx
PDF
Web Design for Literary Theorists II: Overview of CSS (v 1.0)
PPT
Html5 css3
PDF
Pfnp slides
PPTX
Introduction to Web Development.pptx
PPTX
Introduction to Web Development.pptx
PPTX
Introduction to Web Development.pptx
PPT
CSS Training in Bangalore
PPTX
Web technologies-course 03.pptx
Artdm171 Week5 Css
ARTDM 171, Week 5: CSS
Rapid HTML Prototyping with Bootstrap 4
Web Engineering - Introduction to CSS
GDI Seattle Intermediate HTML and CSS Class 1
Introduction to HTML and CSS
WEBSITE DESIGN AND DEVELOPMENT WITH CASCADING STYLE SHEETS(CSS)
INTRODUCTION CODING - THE HTML AND CSS.pptx
Workshop 2 Slides.pptx
SDP_-_Module_4.ppt
Unitegergergegegegetgegegegegegeg-2-CSS.pptx
Web Design for Literary Theorists II: Overview of CSS (v 1.0)
Html5 css3
Pfnp slides
Introduction to Web Development.pptx
Introduction to Web Development.pptx
Introduction to Web Development.pptx
CSS Training in Bangalore
Web technologies-course 03.pptx
Ad

Recently uploaded (20)

PDF
Transform-Your-Factory-with-AI-Driven-Quality-Engineering.pdf
PPTX
Build automations faster and more reliably with UiPath ScreenPlay
PDF
The-2025-Engineering-Revolution-AI-Quality-and-DevOps-Convergence.pdf
PDF
Data Virtualization in Action: Scaling APIs and Apps with FME
PDF
Transform-Quality-Engineering-with-AI-A-60-Day-Blueprint-for-Digital-Success.pdf
PDF
Transform-Your-Streaming-Platform-with-AI-Driven-Quality-Engineering.pdf
PDF
substrate PowerPoint Presentation basic one
PDF
Dell Pro Micro: Speed customer interactions, patient processing, and learning...
PDF
A hybrid framework for wild animal classification using fine-tuned DenseNet12...
PDF
“The Future of Visual AI: Efficient Multimodal Intelligence,” a Keynote Prese...
PDF
Planning-an-Audit-A-How-To-Guide-Checklist-WP.pdf
PDF
Co-training pseudo-labeling for text classification with support vector machi...
PDF
IT-ITes Industry bjjbnkmkhkhknbmhkhmjhjkhj
PDF
SaaS reusability assessment using machine learning techniques
PDF
Accessing-Finance-in-Jordan-MENA 2024 2025.pdf
PDF
Lung cancer patients survival prediction using outlier detection and optimize...
PDF
Auditboard EB SOX Playbook 2023 edition.
PDF
Introduction to MCP and A2A Protocols: Enabling Agent Communication
PDF
Transform-Your-Supply-Chain-with-AI-Driven-Quality-Engineering.pdf
PDF
LMS bot: enhanced learning management systems for improved student learning e...
Transform-Your-Factory-with-AI-Driven-Quality-Engineering.pdf
Build automations faster and more reliably with UiPath ScreenPlay
The-2025-Engineering-Revolution-AI-Quality-and-DevOps-Convergence.pdf
Data Virtualization in Action: Scaling APIs and Apps with FME
Transform-Quality-Engineering-with-AI-A-60-Day-Blueprint-for-Digital-Success.pdf
Transform-Your-Streaming-Platform-with-AI-Driven-Quality-Engineering.pdf
substrate PowerPoint Presentation basic one
Dell Pro Micro: Speed customer interactions, patient processing, and learning...
A hybrid framework for wild animal classification using fine-tuned DenseNet12...
“The Future of Visual AI: Efficient Multimodal Intelligence,” a Keynote Prese...
Planning-an-Audit-A-How-To-Guide-Checklist-WP.pdf
Co-training pseudo-labeling for text classification with support vector machi...
IT-ITes Industry bjjbnkmkhkhknbmhkhmjhjkhj
SaaS reusability assessment using machine learning techniques
Accessing-Finance-in-Jordan-MENA 2024 2025.pdf
Lung cancer patients survival prediction using outlier detection and optimize...
Auditboard EB SOX Playbook 2023 edition.
Introduction to MCP and A2A Protocols: Enabling Agent Communication
Transform-Your-Supply-Chain-with-AI-Driven-Quality-Engineering.pdf
LMS bot: enhanced learning management systems for improved student learning e...

Web Design Bootcamp - Day1