SlideShare a Scribd company logo
AN INTRO TO
HTML & CSS
Shay Howe
November 2011
www.shayhowe.com – @shayhowe
An Intro to HTML & CSS
SHAY HOWE
www.shayhowe.com – @shayhowe
@shayhowe
An Intro to HTML & CSS
WHAT IS DESIGN?
@shayhowe
An Intro to HTML & CSS
WHAT IS DESIGN?
“In most people’s vocabularies, design is a veneer. It’s
interior decorating. It’s the fabric of the curtains, of the
sofa. But to me, nothing could be further from the
meaning of design. Design is the fundamental soul of a
human-made creation that ends up expressing itself in
successive outer layers of the product.”
– Steve Jobs
@shayhowe
An Intro to HTML & CSS
WHAT IS HTML & CSS?
@shayhowe
An Intro to HTML & CSS
HTML
Markup language to give
content structure and
meaning.
@shayhowe
CSS
Presentation language to
give content style and
appearance.
An Intro to HTML & CSS
HTML
Content.
@shayhowe
CSS
Style.
An Intro to HTML & CSS
HTML
Hyper Text Markup Language
@shayhowe
An Intro to HTML & CSS
ELEMENTS, ATTRIBUTES, & TAGS
Elements
body,	
  h1,	
  p,	
  div,	
  strong,	
  em,	
  span
Elements are HTML designators that define certain objects.
Attributes
href="http://shayhowe.com"	
  title="Shay	
  Howe"
Attributes provide additional information to the given element.
Tags
<div	
  id="shayhowe"	
  class="awesome"></div>
Tags encompass elements and their corresponding attributes.
@shayhowe
BLOCK & INLINE ELEMENTS
Block
Block level elements begin on a new line within the document and occupy the full
available width.
Inline
Inline level elements do not begin on a new line and fall into the flow of the document,
maintaing their necessary width.
An Intro to HTML & CSS @shayhowe
header
footer
article
section
aside
div
h1...h6
p
table
form
ul,	
  ol,	
  li
dl,	
  dt,	
  dd
span
a
strong
em
img
br
input
abbr
An Intro to HTML & CSS
DOCUMENT STRUCTURE
<!DOCTYPE	
  html>
<html>
	
  	
  <head>
	
  	
  	
  	
  <title>Hello	
  World</title>
	
  	
  </head>
	
  	
  <body>
	
  	
  	
  	
  <h1>Hello	
  World</h1>
	
  	
  	
  	
  <p>This	
  is	
  a	
  website.</p>
	
  	
  </body>
</html>
@shayhowe
An Intro to HTML & CSS
QUIZ
@shayhowe
An Intro to HTML & CSS
SAMPLE NAVIGATION HTML
<ul	
  id="social">
	
  	
  <li	
  class="tumblr">
	
  	
  	
  	
  <a	
  href="http://blog.codeacademy.org">
	
  	
  	
  	
  	
  	
  Code	
  Academy	
  Tumblr	
  Blog
	
  	
  	
  	
  </a>
	
  	
  </li>
	
  	
  <li	
  class="mail">
	
  	
  	
  	
  <a	
  href="mailto:contact@codeacademy.org">
	
  	
  	
  	
  	
  	
  Email	
  Code	
  Academy
	
  	
  	
  	
  </a>
	
  	
  </li>
	
  	
  <li	
  class="twitter">
	
  	
  	
  	
  <a	
  href="http://twitter.com/#!/codeacademy">
	
  	
  	
  	
  	
  	
  Code	
  Academy	
  Twitter
	
  	
  	
  	
  </a>
	
  	
  </li>
	
  	
  ...
</ul>
@shayhowe
An Intro to HTML & CSS
SAMPLE NAVIGATION CSS
ul#social	
  {
	
  	
  list-­‐style:	
  none;	
  }
ul#social	
  li	
  {
	
  	
  float:	
  left;
	
  	
  margin:	
  12px	
  0	
  0	
  0;
	
  	
  padding:	
  0	
  3px;	
  }
ul#social	
  li	
  a	
  {
	
  	
  background:	
  url("icons.png")	
  0	
  0	
  no-­‐repeat;
	
  	
  display:	
  block;
	
  	
  height:	
  17px;
	
  	
  text-­‐indent:	
  -­‐9999px;
	
  	
  width:	
  16px;	
  }
ul#social	
  li.tumblr	
  a	
  {
	
  	
  background-­‐position:	
  0	
  -­‐64px;	
  }
ul#social	
  li.mail	
  a	
  {
	
  	
  background-­‐position:	
  0	
  -­‐81px;	
  }
ul#social	
  li.twitter	
  a	
  {
	
  	
  background-­‐position:	
  0	
  -­‐98px;	
  }
@shayhowe
An Intro to HTML & CSS
TAGS
<ul	
  id="social">
	
  	
  <li	
  class="tumblr">
	
  	
  	
  	
  <a	
  href="http://blog.codeacademy.org">
	
  	
  	
  	
  	
  	
  Code	
  Academy	
  Tumblr	
  Blog
	
  	
  	
  	
  </a>
	
  	
  </li>
	
  	
  <li	
  class="mail">
	
  	
  	
  	
  <a	
  href="mailto:contact@codeacademy.org">
	
  	
  	
  	
  	
  	
  Email	
  Code	
  Academy
	
  	
  	
  	
  </a>
	
  	
  </li>
	
  	
  <li	
  class="twitter">
	
  	
  	
  	
  <a	
  href="http://twitter.com/#!/codeacademy">
	
  	
  	
  	
  	
  	
  Code	
  Academy	
  Twitter
	
  	
  	
  	
  </a>
	
  	
  </li>
	
  	
  ...
</ul>
@shayhowe
An Intro to HTML & CSS
ELEMENTS
<ul	
  id="social">
	
  	
  <li	
  class="tumblr">
	
  	
  	
  	
  <a	
  href="http://blog.codeacademy.org">
	
  	
  	
  	
  	
  	
  Code	
  Academy	
  Tumblr	
  Blog
	
  	
  	
  	
  </a>
	
  	
  </li>
	
  	
  <li	
  class="mail">
	
  	
  	
  	
  <a	
  href="mailto:contact@codeacademy.org">
	
  	
  	
  	
  	
  	
  Email	
  Code	
  Academy
	
  	
  	
  	
  </a>
	
  	
  </li>
	
  	
  <li	
  class="twitter">
	
  	
  	
  	
  <a	
  href="http://twitter.com/#!/codeacademy">
	
  	
  	
  	
  	
  	
  Code	
  Academy	
  Twitter
	
  	
  	
  	
  </a>
	
  	
  </li>
	
  	
  ...
</ul>
@shayhowe
An Intro to HTML & CSS
ATTRIBUTES
<ul	
  id="social">
	
  	
  <li	
  class="tumblr">
	
  	
  	
  	
  <a	
  href="http://blog.codeacademy.org">
	
  	
  	
  	
  	
  	
  Code	
  Academy	
  Tumblr	
  Blog
	
  	
  	
  	
  </a>
	
  	
  </li>
	
  	
  <li	
  class="mail">
	
  	
  	
  	
  <a	
  href="mailto:contact@codeacademy.org">
	
  	
  	
  	
  	
  	
  Email	
  Code	
  Academy
	
  	
  	
  	
  </a>
	
  	
  </li>
	
  	
  <li	
  class="twitter">
	
  	
  	
  	
  <a	
  href="http://twitter.com/#!/codeacademy">
	
  	
  	
  	
  	
  	
  Code	
  Academy	
  Twitter
	
  	
  	
  	
  </a>
	
  	
  </li>
	
  	
  ...
</ul>
@shayhowe
An Intro to HTML & CSS
ID & CLASS
<ul	
  id="social">
	
  	
  <li	
  class="tumblr">
	
  	
  	
  	
  <a	
  href="http://blog.codeacademy.org">
	
  	
  	
  	
  	
  	
  Code	
  Academy	
  Tumblr	
  Blog
	
  	
  	
  	
  </a>
	
  	
  </li>
	
  	
  <li	
  class="mail">
	
  	
  	
  	
  <a	
  href="mailto:contact@codeacademy.org">
	
  	
  	
  	
  	
  	
  Email	
  Code	
  Academy
	
  	
  	
  	
  </a>
	
  	
  </li>
	
  	
  <li	
  class="twitter">
	
  	
  	
  	
  <a	
  href="http://twitter.com/#!/codeacademy">
	
  	
  	
  	
  	
  	
  Code	
  Academy	
  Twitter
	
  	
  	
  	
  </a>
	
  	
  </li>
	
  	
  ...
</ul>
@shayhowe
An Intro to HTML & CSS
REFERENCING A CSS FILE
<!DOCTYPE	
  html>
<html>
	
  	
  <head>
	
  	
  	
  	
  <title>Hello	
  World</title>
	
  	
  	
  	
  <link	
  rel="stylesheet"	
  href="file.css">
	
  	
  </head>
	
  	
  <body>
	
  	
  	
  	
  <h1>Hello	
  World</h1>
	
  	
  	
  	
  <p>This	
  is	
  a	
  website.</p>
	
  	
  </body>
</html>
@shayhowe
An Intro to HTML & CSS
CSS
Cascading Style Sheets
@shayhowe
An Intro to HTML & CSS
SELECTOR, PROPERTY, VALUE
Selector
h1	
  {
	
  	
  font:	
  bold	
  16px/24px	
  Arial,	
  sans-­‐serif;	
  }
A selector determines which element to apply style to.
Property
h1	
  {
	
  	
  font:	
  bold	
  16px/24px	
  Arial,	
  sans-­‐serif;	
  }
A property is the style that will be applied to the element.
Value
h1	
  {
	
  	
  font:	
  bold	
  16px/24px	
  Arial,	
  sans-­‐serif;	
  }
A value is the determines the behavior of a property.
@shayhowe
An Intro to HTML & CSS
RULE SETS & DECLARATIONS
Rule Set
h1	
  {
	
  	
  font:	
  bold	
  16px/24px	
  Arial,	
  sans-­‐serif;	
  }
A rule set includes a selector and all corresponding declarations.
Declarations
h1	
  {
	
  	
  font:	
  bold	
  16px/24px	
  Arial,	
  sans-­‐serif;	
  }
Declarations are individual lines of CSS within a rule set.
@shayhowe
An Intro to HTML & CSS
ELEMENT, ID, & CLASS SELECTORS
Element Selector
h1	
  {
	
  	
  font:	
  bold	
  16px/24px	
  Arial,	
  sans-­‐serif;	
  }
An element selector targets and element by its name.
ID Selector
#logo	
  {
	
  	
  background:	
  url("logo.png")	
  0	
  0	
  no-­‐repeat;	
  }
An ID selector targets and element by its ID. ID’s are to be reserved to one a page.
Class Selector
.column	
  {
	
  	
  width:	
  200px;	
  }
A class selector targets and element by its class. Classes may appear multiple times
within a page.
@shayhowe
An Intro to HTML & CSS
QUIZ
@shayhowe
An Intro to HTML & CSS
QUIZ
ul#social	
  {
	
  	
  list-­‐style:	
  none;	
  }
ul#social	
  li	
  {
	
  	
  float:	
  left;
	
  	
  margin:	
  12px	
  0	
  0	
  0;
	
  	
  padding:	
  0	
  3px;	
  }
ul#social	
  li	
  a	
  {
	
  	
  background:	
  url("icons.png")	
  0	
  0	
  no-­‐repeat;
	
  	
  display:	
  block;
	
  	
  height:	
  17px;
	
  	
  text-­‐indent:	
  -­‐9999px;
	
  	
  width:	
  16px;	
  }
ul#social	
  li.tumblr	
  a	
  {
	
  	
  background-­‐position:	
  0	
  -­‐64px;	
  }
ul#social	
  li.mail	
  a	
  {
	
  	
  background-­‐position:	
  0	
  -­‐81px;	
  }
ul#social	
  li.twitter	
  a	
  {
	
  	
  background-­‐position:	
  0	
  -­‐98px;	
  }
@shayhowe
An Intro to HTML & CSS
SELECTORS
ul#social	
  {
	
  	
  list-­‐style:	
  none;	
  }
ul#social	
  li	
  {
	
  	
  float:	
  left;
	
  	
  margin:	
  12px	
  0	
  0	
  0;
	
  	
  padding:	
  0	
  3px;	
  }
ul#social	
  li	
  a	
  {
	
  	
  background:	
  url("icons.png")	
  0	
  0	
  no-­‐repeat;
	
  	
  display:	
  block;
	
  	
  height:	
  17px;
	
  	
  text-­‐indent:	
  -­‐9999px;
	
  	
  width:	
  16px;	
  }
ul#social	
  li.tumblr	
  a	
  {
	
  	
  background-­‐position:	
  0	
  -­‐64px;	
  }
ul#social	
  li.mail	
  a	
  {
	
  	
  background-­‐position:	
  0	
  -­‐81px;	
  }
ul#social	
  li.twitter	
  a	
  {
	
  	
  background-­‐position:	
  0	
  -­‐98px;	
  }
@shayhowe
An Intro to HTML & CSS
PROPERTIES
ul#social	
  {
	
  	
  list-­‐style:	
  none;	
  }
ul#social	
  li	
  {
	
  	
  float:	
  left;
	
  	
  margin:	
  12px	
  0	
  0	
  0;
	
  	
  padding:	
  0	
  3px;	
  }
ul#social	
  li	
  a	
  {
	
  	
  background:	
  url("icons.png")	
  0	
  0	
  no-­‐repeat;
	
  	
  display:	
  block;
	
  	
  height:	
  17px;
	
  	
  text-­‐indent:	
  -­‐9999px;
	
  	
  width:	
  16px;	
  }
ul#social	
  li.tumblr	
  a	
  {
	
  	
  background-­‐position:	
  0	
  -­‐64px;	
  }
ul#social	
  li.mail	
  a	
  {
	
  	
  background-­‐position:	
  0	
  -­‐81px;	
  }
ul#social	
  li.twitter	
  a	
  {
	
  	
  background-­‐position:	
  0	
  -­‐98px;	
  }
@shayhowe
An Intro to HTML & CSS
VALUES
ul#social	
  {
	
  	
  list-­‐style:	
  none;	
  }
ul#social	
  li	
  {
	
  	
  float:	
  left;
	
  	
  margin:	
  12px	
  0	
  0	
  0;
	
  	
  padding:	
  0	
  3px;	
  }
ul#social	
  li	
  a	
  {
	
  	
  background:	
  url("icons.png")	
  0	
  0	
  no-­‐repeat;
	
  	
  display:	
  block;
	
  	
  height:	
  17px;
	
  	
  text-­‐indent:	
  -­‐9999px;
	
  	
  width:	
  16px;	
  }
ul#social	
  li.tumblr	
  a	
  {
	
  	
  background-­‐position:	
  0	
  -­‐64px;	
  }
ul#social	
  li.mail	
  a	
  {
	
  	
  background-­‐position:	
  0	
  -­‐81px;	
  }
ul#social	
  li.twitter	
  a	
  {
	
  	
  background-­‐position:	
  0	
  -­‐98px;	
  }
@shayhowe
An Intro to HTML & CSS
THE BOX MODEL
@shayhowe
An Intro to HTML & CSS
THE BOX MODEL
div	
  {
	
  	
  border:	
  4px	
  solid	
  #000;
	
  	
  height:	
  300px;
	
  	
  margin:	
  20px;
	
  	
  padding:	
  20px;
	
  	
  width:	
  300px;
}
Breakdown
Total Width = Width + (Margin x 2) + (Border x 2) + (Padding x 2)
388	
  Pixels	
  =	
  300	
  +	
  (20	
  x	
  2)	
  +	
  (4	
  x	
  2)	
  +	
  (20	
  x	
  2)
Total Height = Height + (Margin x 2) + (Border x 2) + (Padding x 2)
388	
  Pixels	
  =	
  300	
  +	
  (20	
  x	
  2)	
  +	
  (4	
  x	
  2)	
  +	
  (20	
  x	
  2)
@shayhowe
An Intro to HTML & CSS
FLOATS
img	
  {
	
  	
  border:	
  1px	
  solid	
  #ccc;
	
  	
  float:	
  right
	
  	
  margin:	
  10px	
  0	
  10px	
  20px;
	
  	
  padding:	
  4px;
}
<p>Ut	
  wisi	
  enin	
  ad	
  minim...</p>
<p><img	
  src="chicago.jpg"	
  alt="Chicago"	
  />
Lorem	
  ipsum	
  dolor	
  sit	
  amet...</p>
<p>Mimimum	
  veniami	
  ex	
  ea	
  con...</p>
@shayhowe
An Intro to HTML & CSS
FLOATS
@shayhowe
An Intro to HTML & CSS
FLOATS & CLEARS
.col	
  {
	
  	
  float:	
  left;
	
  	
  margin:	
  0	
  10px;
	
  	
  width:	
  400px;
}
.clear	
  {
	
  	
  clear:	
  both;
}
<p	
  class="col">Lorem	
  ipsum	
  dolor	
  sit	
  amet...</p>
<p	
  class="col">Con	
  minimim	
  venami	
  quis...</p>
<div	
  class="clear"></div>
<p>Quis	
  nostrud	
  ad	
  nostris	
  pro	
  amat...</p>
@shayhowe
An Intro to HTML & CSS
FLOATS & CLEARS
@shayhowe
An Intro to HTML & CSS
QUESTIONS?
Thank you!
@shayhowe

More Related Content

What's hot

Intro to HTML and CSS - Class 2 Slides
Intro to HTML and CSS - Class 2 SlidesIntro to HTML and CSS - Class 2 Slides
Intro to HTML and CSS - Class 2 Slides
Heather Rock
 
Intro to HTML + CSS
Intro to HTML + CSSIntro to HTML + CSS
Intro to HTML + CSS
Jamal Sinclair O'Garro
 
Introduction to HTML and CSS
Introduction to HTML and CSSIntroduction to HTML and CSS
Introduction to HTML and CSS
Ferdous Mahmud Shaon
 
HTML CSS Best Practices
HTML CSS Best PracticesHTML CSS Best Practices
HTML CSS Best Practices
hoctudau
 
Css.html
Css.htmlCss.html
Web front end development introduction to html css and javascript
Web front end development introduction to html css and javascriptWeb front end development introduction to html css and javascript
Web front end development introduction to html css and javascript
Marc Huang
 
Html & CSS - Best practices 2-hour-workshop
Html & CSS - Best practices 2-hour-workshopHtml & CSS - Best practices 2-hour-workshop
Html & CSS - Best practices 2-hour-workshop
Vero Rebagliatte
 
Introduction to HTML and CSS
Introduction to HTML and CSSIntroduction to HTML and CSS
Introduction to HTML and CSS
Mario Hernandez
 
Web 102 INtro to CSS
Web 102  INtro to CSSWeb 102  INtro to CSS
Web 102 INtro to CSS
Hawkman Academy
 
(Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS (Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS
Dave Kelly
 
Web Typography
Web TypographyWeb Typography
Web Typography
Shawn Calvert
 
Week 2-intro-html
Week 2-intro-htmlWeek 2-intro-html
Week 2-intro-html
Shawn Calvert
 
Introduction of Html/css/js
Introduction of Html/css/jsIntroduction of Html/css/js
Introduction of Html/css/js
Knoldus Inc.
 
HTML und CSS für Designer / HTML & CSS for designers (PUBKON 2014)
HTML und CSS für Designer / HTML & CSS for designers (PUBKON 2014)HTML und CSS für Designer / HTML & CSS for designers (PUBKON 2014)
HTML und CSS für Designer / HTML & CSS for designers (PUBKON 2014)
Michaela Lehr
 
HTML/CSS Lecture 1
HTML/CSS Lecture 1HTML/CSS Lecture 1
HTML/CSS Lecture 1
Lee Lundrigan
 
HTML Lecture Part 1 of 2
HTML Lecture Part 1 of 2HTML Lecture Part 1 of 2
HTML Lecture Part 1 of 2
Sharon Wasden
 
Findability Bliss Through Web Standards
Findability Bliss Through Web StandardsFindability Bliss Through Web Standards
Findability Bliss Through Web Standards
Aarron Walter
 
Css notes
Css notesCss notes
Images on the Web
Images on the WebImages on the Web
Images on the Web
Shawn Calvert
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
Ajay Khatri
 

What's hot (20)

Intro to HTML and CSS - Class 2 Slides
Intro to HTML and CSS - Class 2 SlidesIntro to HTML and CSS - Class 2 Slides
Intro to HTML and CSS - Class 2 Slides
 
Intro to HTML + CSS
Intro to HTML + CSSIntro to HTML + CSS
Intro to HTML + CSS
 
Introduction to HTML and CSS
Introduction to HTML and CSSIntroduction to HTML and CSS
Introduction to HTML and CSS
 
HTML CSS Best Practices
HTML CSS Best PracticesHTML CSS Best Practices
HTML CSS Best Practices
 
Css.html
Css.htmlCss.html
Css.html
 
Web front end development introduction to html css and javascript
Web front end development introduction to html css and javascriptWeb front end development introduction to html css and javascript
Web front end development introduction to html css and javascript
 
Html & CSS - Best practices 2-hour-workshop
Html & CSS - Best practices 2-hour-workshopHtml & CSS - Best practices 2-hour-workshop
Html & CSS - Best practices 2-hour-workshop
 
Introduction to HTML and CSS
Introduction to HTML and CSSIntroduction to HTML and CSS
Introduction to HTML and CSS
 
Web 102 INtro to CSS
Web 102  INtro to CSSWeb 102  INtro to CSS
Web 102 INtro to CSS
 
(Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS (Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS
 
Web Typography
Web TypographyWeb Typography
Web Typography
 
Week 2-intro-html
Week 2-intro-htmlWeek 2-intro-html
Week 2-intro-html
 
Introduction of Html/css/js
Introduction of Html/css/jsIntroduction of Html/css/js
Introduction of Html/css/js
 
HTML und CSS für Designer / HTML & CSS for designers (PUBKON 2014)
HTML und CSS für Designer / HTML & CSS for designers (PUBKON 2014)HTML und CSS für Designer / HTML & CSS for designers (PUBKON 2014)
HTML und CSS für Designer / HTML & CSS for designers (PUBKON 2014)
 
HTML/CSS Lecture 1
HTML/CSS Lecture 1HTML/CSS Lecture 1
HTML/CSS Lecture 1
 
HTML Lecture Part 1 of 2
HTML Lecture Part 1 of 2HTML Lecture Part 1 of 2
HTML Lecture Part 1 of 2
 
Findability Bliss Through Web Standards
Findability Bliss Through Web StandardsFindability Bliss Through Web Standards
Findability Bliss Through Web Standards
 
Css notes
Css notesCss notes
Css notes
 
Images on the Web
Images on the WebImages on the Web
Images on the Web
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 

Viewers also liked

Yes, Designer, You CAN Be a Product Leader
Yes, Designer, You CAN Be a Product LeaderYes, Designer, You CAN Be a Product Leader
Yes, Designer, You CAN Be a Product Leader
Shay Howe
 
Intro to html
Intro to htmlIntro to html
Intro to html
anshuman rahi
 
Intro to Web Development from Bloc.io
Intro to Web Development from Bloc.ioIntro to Web Development from Bloc.io
Intro to Web Development from Bloc.io
Douglas Wright
 
Collaboration Practices
Collaboration PracticesCollaboration Practices
Collaboration Practices
Shay Howe
 
History in HTML
History in HTMLHistory in HTML
History in HTML
Chris Cantwell
 
A history of html
A history of htmlA history of html
Front end development best practices
Front end development best practicesFront end development best practices
Front end development best practices
Karolina Coates
 
Ruby on Rails Presentation
Ruby on Rails PresentationRuby on Rails Presentation
Ruby on Rails Presentation
Michael MacDonald
 
Ruby On Rails Presentation
Ruby On Rails PresentationRuby On Rails Presentation
Ruby On Rails Presentation
ChanHan Hy
 
Html css java script basics All about you need
Html css java script basics All about you needHtml css java script basics All about you need
Html css java script basics All about you need
Dipen Parmar
 
HTML5 Semantics
HTML5 SemanticsHTML5 Semantics
HTML5 Semantics
Shay Howe
 
Mastering CSS3 Selectors
Mastering CSS3 SelectorsMastering CSS3 Selectors
Mastering CSS3 Selectors
Rachel Andrew
 
Smacking Git Around Advanced Git Tricks
Smacking Git Around   Advanced Git TricksSmacking Git Around   Advanced Git Tricks
Smacking Git Around Advanced Git Tricks
railsconf
 
Quality Development with HTML5
Quality Development with HTML5Quality Development with HTML5
Quality Development with HTML5
Shay Howe
 
Introduction to html 5
Introduction to html 5Introduction to html 5
Introduction to html 5
Nir Elbaz
 
Git in a nutshell
Git in a nutshellGit in a nutshell
Git in a nutshell
Pranesh Vittal
 
The git
The gitThe git
Quality Development with CSS3
Quality Development with CSS3Quality Development with CSS3
Quality Development with CSS3
Shay Howe
 
CSS: selectors and the box model
CSS: selectors and the box modelCSS: selectors and the box model
CSS: selectors and the box model
Idan Gazit
 
CSS Selectors
CSS SelectorsCSS Selectors
CSS Selectors
Rachel Andrew
 

Viewers also liked (20)

Yes, Designer, You CAN Be a Product Leader
Yes, Designer, You CAN Be a Product LeaderYes, Designer, You CAN Be a Product Leader
Yes, Designer, You CAN Be a Product Leader
 
Intro to html
Intro to htmlIntro to html
Intro to html
 
Intro to Web Development from Bloc.io
Intro to Web Development from Bloc.ioIntro to Web Development from Bloc.io
Intro to Web Development from Bloc.io
 
Collaboration Practices
Collaboration PracticesCollaboration Practices
Collaboration Practices
 
History in HTML
History in HTMLHistory in HTML
History in HTML
 
A history of html
A history of htmlA history of html
A history of html
 
Front end development best practices
Front end development best practicesFront end development best practices
Front end development best practices
 
Ruby on Rails Presentation
Ruby on Rails PresentationRuby on Rails Presentation
Ruby on Rails Presentation
 
Ruby On Rails Presentation
Ruby On Rails PresentationRuby On Rails Presentation
Ruby On Rails Presentation
 
Html css java script basics All about you need
Html css java script basics All about you needHtml css java script basics All about you need
Html css java script basics All about you need
 
HTML5 Semantics
HTML5 SemanticsHTML5 Semantics
HTML5 Semantics
 
Mastering CSS3 Selectors
Mastering CSS3 SelectorsMastering CSS3 Selectors
Mastering CSS3 Selectors
 
Smacking Git Around Advanced Git Tricks
Smacking Git Around   Advanced Git TricksSmacking Git Around   Advanced Git Tricks
Smacking Git Around Advanced Git Tricks
 
Quality Development with HTML5
Quality Development with HTML5Quality Development with HTML5
Quality Development with HTML5
 
Introduction to html 5
Introduction to html 5Introduction to html 5
Introduction to html 5
 
Git in a nutshell
Git in a nutshellGit in a nutshell
Git in a nutshell
 
The git
The gitThe git
The git
 
Quality Development with CSS3
Quality Development with CSS3Quality Development with CSS3
Quality Development with CSS3
 
CSS: selectors and the box model
CSS: selectors and the box modelCSS: selectors and the box model
CSS: selectors and the box model
 
CSS Selectors
CSS SelectorsCSS Selectors
CSS Selectors
 

Similar to An Intro to HTML & CSS

UI Design with HTML5 & CSS3
UI Design with HTML5 & CSS3UI Design with HTML5 & CSS3
UI Design with HTML5 & CSS3
Shay Howe
 
HTML & CSS 2017
HTML & CSS 2017HTML & CSS 2017
HTML & CSS 2017
Colin Loretz
 
Slow kinda sucks
Slow kinda sucksSlow kinda sucks
Slow kinda sucks
Tim Wright
 
Punch it Up with HTML and CSS
Punch it Up with HTML and CSSPunch it Up with HTML and CSS
Punch it Up with HTML and CSS
mtlgirlgeeks
 
[SUTD GDSC] Intro to HTML and CSS
[SUTD GDSC] Intro to HTML and CSS[SUTD GDSC] Intro to HTML and CSS
[SUTD GDSC] Intro to HTML and CSS
BeckhamWee
 
Css 2c (2) (1) (1) (2)
Css 2c (2) (1) (1) (2)Css 2c (2) (1) (1) (2)
Css 2c (2) (1) (1) (2)
gng542
 
Introduction to HTML5
Introduction to HTML5Introduction to HTML5
Introduction to HTML5
Terry Ryan
 
Modular HTML & CSS
Modular HTML & CSSModular HTML & CSS
Modular HTML & CSS
Shay Howe
 
Class 2: CSS Selectors, Classes & Ids
Class 2: CSS Selectors, Classes & IdsClass 2: CSS Selectors, Classes & Ids
Class 2: CSS Selectors, Classes & Ids
Erika Tarte
 
Html5 elements-Kip Academy
Html5 elements-Kip AcademyHtml5 elements-Kip Academy
Html5 elements-Kip Academy
kip academy
 
2014 HTML und CSS für Designer – Pubkon
2014 HTML und CSS für Designer – Pubkon2014 HTML und CSS für Designer – Pubkon
2014 HTML und CSS für Designer – Pubkon
GeilDanke
 
1 03 - CSS Introduction
1 03 - CSS Introduction1 03 - CSS Introduction
1 03 - CSS Introduction
apnwebdev
 
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Erin M. Kidwell
 
Modular HTML & CSS Turbo Workshop
Modular HTML & CSS Turbo WorkshopModular HTML & CSS Turbo Workshop
Modular HTML & CSS Turbo Workshop
Shay Howe
 
HTML5 & CSS3 Flag
HTML5 & CSS3 FlagHTML5 & CSS3 Flag
HTML5 & CSS3 Flag
Christopher Schmitt
 
Rapid HTML Prototyping with Bootstrap 4
Rapid HTML Prototyping with Bootstrap 4Rapid HTML Prototyping with Bootstrap 4
Rapid HTML Prototyping with Bootstrap 4
UXPA International
 
Modular HTML & CSS Workshop
Modular HTML & CSS WorkshopModular HTML & CSS Workshop
Modular HTML & CSS Workshop
Shay Howe
 
Xlrays online web tutorials
Xlrays online web tutorialsXlrays online web tutorials
Xlrays online web tutorials
Yogesh Gupta
 
Html5 quick-learning-quide
Html5 quick-learning-quideHtml5 quick-learning-quide
Html5 quick-learning-quide
PL dream
 
Html5 quick-learning-quide
Html5 quick-learning-quideHtml5 quick-learning-quide
Html5 quick-learning-quide
Jerry Wijaya
 

Similar to An Intro to HTML & CSS (20)

UI Design with HTML5 & CSS3
UI Design with HTML5 & CSS3UI Design with HTML5 & CSS3
UI Design with HTML5 & CSS3
 
HTML & CSS 2017
HTML & CSS 2017HTML & CSS 2017
HTML & CSS 2017
 
Slow kinda sucks
Slow kinda sucksSlow kinda sucks
Slow kinda sucks
 
Punch it Up with HTML and CSS
Punch it Up with HTML and CSSPunch it Up with HTML and CSS
Punch it Up with HTML and CSS
 
[SUTD GDSC] Intro to HTML and CSS
[SUTD GDSC] Intro to HTML and CSS[SUTD GDSC] Intro to HTML and CSS
[SUTD GDSC] Intro to HTML and CSS
 
Css 2c (2) (1) (1) (2)
Css 2c (2) (1) (1) (2)Css 2c (2) (1) (1) (2)
Css 2c (2) (1) (1) (2)
 
Introduction to HTML5
Introduction to HTML5Introduction to HTML5
Introduction to HTML5
 
Modular HTML & CSS
Modular HTML & CSSModular HTML & CSS
Modular HTML & CSS
 
Class 2: CSS Selectors, Classes & Ids
Class 2: CSS Selectors, Classes & IdsClass 2: CSS Selectors, Classes & Ids
Class 2: CSS Selectors, Classes & Ids
 
Html5 elements-Kip Academy
Html5 elements-Kip AcademyHtml5 elements-Kip Academy
Html5 elements-Kip Academy
 
2014 HTML und CSS für Designer – Pubkon
2014 HTML und CSS für Designer – Pubkon2014 HTML und CSS für Designer – Pubkon
2014 HTML und CSS für Designer – Pubkon
 
1 03 - CSS Introduction
1 03 - CSS Introduction1 03 - CSS Introduction
1 03 - CSS Introduction
 
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
 
Modular HTML & CSS Turbo Workshop
Modular HTML & CSS Turbo WorkshopModular HTML & CSS Turbo Workshop
Modular HTML & CSS Turbo Workshop
 
HTML5 & CSS3 Flag
HTML5 & CSS3 FlagHTML5 & CSS3 Flag
HTML5 & CSS3 Flag
 
Rapid HTML Prototyping with Bootstrap 4
Rapid HTML Prototyping with Bootstrap 4Rapid HTML Prototyping with Bootstrap 4
Rapid HTML Prototyping with Bootstrap 4
 
Modular HTML & CSS Workshop
Modular HTML & CSS WorkshopModular HTML & CSS Workshop
Modular HTML & CSS Workshop
 
Xlrays online web tutorials
Xlrays online web tutorialsXlrays online web tutorials
Xlrays online web tutorials
 
Html5 quick-learning-quide
Html5 quick-learning-quideHtml5 quick-learning-quide
Html5 quick-learning-quide
 
Html5 quick-learning-quide
Html5 quick-learning-quideHtml5 quick-learning-quide
Html5 quick-learning-quide
 

Recently uploaded

一比一原版(爱大毕业证)美国爱荷华大学毕业证如何办理
一比一原版(爱大毕业证)美国爱荷华大学毕业证如何办理一比一原版(爱大毕业证)美国爱荷华大学毕业证如何办理
一比一原版(爱大毕业证)美国爱荷华大学毕业证如何办理
ynrtjotp
 
一比一原版(ututaustin毕业证书)美国德克萨斯大学奥斯汀分校毕业证如何办理
一比一原版(ututaustin毕业证书)美国德克萨斯大学奥斯汀分校毕业证如何办理一比一原版(ututaustin毕业证书)美国德克萨斯大学奥斯汀分校毕业证如何办理
一比一原版(ututaustin毕业证书)美国德克萨斯大学奥斯汀分校毕业证如何办理
yqyquge
 
一比一原版(OU毕业证)美国俄克拉荷马大学毕业证如何办理
一比一原版(OU毕业证)美国俄克拉荷马大学毕业证如何办理一比一原版(OU毕业证)美国俄克拉荷马大学毕业证如何办理
一比一原版(OU毕业证)美国俄克拉荷马大学毕业证如何办理
67n7f53
 
一比一原版南安普顿索伦特大学毕业证Southampton成绩单一模一样
一比一原版南安普顿索伦特大学毕业证Southampton成绩单一模一样一比一原版南安普顿索伦特大学毕业证Southampton成绩单一模一样
一比一原版南安普顿索伦特大学毕业证Southampton成绩单一模一样
3vgr39kx
 
一比一原版(KPU毕业证)加拿大昆特兰理工大学毕业证如何办理
一比一原版(KPU毕业证)加拿大昆特兰理工大学毕业证如何办理一比一原版(KPU毕业证)加拿大昆特兰理工大学毕业证如何办理
一比一原版(KPU毕业证)加拿大昆特兰理工大学毕业证如何办理
kmzsy4kn
 
一比一原版(Brunel毕业证)英国布鲁内尔大学毕业证如何办理
一比一原版(Brunel毕业证)英国布鲁内尔大学毕业证如何办理一比一原版(Brunel毕业证)英国布鲁内尔大学毕业证如何办理
一比一原版(Brunel毕业证)英国布鲁内尔大学毕业证如何办理
ka3y2ukz
 
Intel-Centrino-Mobile-Technology-guidelines
Intel-Centrino-Mobile-Technology-guidelinesIntel-Centrino-Mobile-Technology-guidelines
Intel-Centrino-Mobile-Technology-guidelines
EricHo305923
 
一比一原版(Deakin毕业证书)澳洲迪肯大学毕业证文凭如何办理
一比一原版(Deakin毕业证书)澳洲迪肯大学毕业证文凭如何办理一比一原版(Deakin毕业证书)澳洲迪肯大学毕业证文凭如何办理
一比一原版(Deakin毕业证书)澳洲迪肯大学毕业证文凭如何办理
k4krdgxx
 
UXpert_Report (UALR Mapping Renewal 2022).pdf
UXpert_Report (UALR Mapping Renewal 2022).pdfUXpert_Report (UALR Mapping Renewal 2022).pdf
UXpert_Report (UALR Mapping Renewal 2022).pdf
anthonylin333
 
一比一原版(UVM毕业证)佛蒙特大学毕业证如何办理
一比一原版(UVM毕业证)佛蒙特大学毕业证如何办理一比一原版(UVM毕业证)佛蒙特大学毕业证如何办理
一比一原版(UVM毕业证)佛蒙特大学毕业证如何办理
yeytf
 
一比一原版(Hull毕业证)英国哈珀亚当斯大学毕业证如何办理
一比一原版(Hull毕业证)英国哈珀亚当斯大学毕业证如何办理一比一原版(Hull毕业证)英国哈珀亚当斯大学毕业证如何办理
一比一原版(Hull毕业证)英国哈珀亚当斯大学毕业证如何办理
aonx8o5f
 
一比一原版肯特大学毕业证UKC成绩单一模一样
一比一原版肯特大学毕业证UKC成绩单一模一样一比一原版肯特大学毕业证UKC成绩单一模一样
一比一原版肯特大学毕业证UKC成绩单一模一样
tobbk6s8
 
Rethinking Kållered │ From Big Box to a Reuse Hub: A Transformation Journey ...
Rethinking Kållered │  From Big Box to a Reuse Hub: A Transformation Journey ...Rethinking Kållered │  From Big Box to a Reuse Hub: A Transformation Journey ...
Rethinking Kållered │ From Big Box to a Reuse Hub: A Transformation Journey ...
SirmaDuztepeliler
 
一比一原版(falmouth毕业证书)法尔茅斯大学毕业证如何办理
一比一原版(falmouth毕业证书)法尔茅斯大学毕业证如何办理一比一原版(falmouth毕业证书)法尔茅斯大学毕业证如何办理
一比一原版(falmouth毕业证书)法尔茅斯大学毕业证如何办理
xnhwr8v
 
一比一原版布兰登大学毕业证(BU毕业证书)如何办理
一比一原版布兰登大学毕业证(BU毕业证书)如何办理一比一原版布兰登大学毕业证(BU毕业证书)如何办理
一比一原版布兰登大学毕业证(BU毕业证书)如何办理
wkip62b
 
一比一原版(ucb毕业证书)英国伯明翰大学学院毕业证如何办理
一比一原版(ucb毕业证书)英国伯明翰大学学院毕业证如何办理一比一原版(ucb毕业证书)英国伯明翰大学学院毕业证如何办理
一比一原版(ucb毕业证书)英国伯明翰大学学院毕业证如何办理
qbydc
 
一比一原版(UofT毕业证)加拿大多伦多大学毕业证如何办理
一比一原版(UofT毕业证)加拿大多伦多大学毕业证如何办理一比一原版(UofT毕业证)加拿大多伦多大学毕业证如何办理
一比一原版(UofT毕业证)加拿大多伦多大学毕业证如何办理
bel9p89b
 
一比一原版(ku毕业证书)堪萨斯大学毕业证如何办理
一比一原版(ku毕业证书)堪萨斯大学毕业证如何办理一比一原版(ku毕业证书)堪萨斯大学毕业证如何办理
一比一原版(ku毕业证书)堪萨斯大学毕业证如何办理
9cgw2yj6
 
欧洲杯买球-欧洲杯买球买球网好的网站-欧洲杯买球哪里有正规的买球网站|【​网址​🎉ac123.net🎉​】
欧洲杯买球-欧洲杯买球买球网好的网站-欧洲杯买球哪里有正规的买球网站|【​网址​🎉ac123.net🎉​】欧洲杯买球-欧洲杯买球买球网好的网站-欧洲杯买球哪里有正规的买球网站|【​网址​🎉ac123.net🎉​】
欧洲杯买球-欧洲杯买球买球网好的网站-欧洲杯买球哪里有正规的买球网站|【​网址​🎉ac123.net🎉​】
jafiradnan336
 
一比一原版英国伦敦大学毕业证(London学位证)如何办理
一比一原版英国伦敦大学毕业证(London学位证)如何办理一比一原版英国伦敦大学毕业证(London学位证)如何办理
一比一原版英国伦敦大学毕业证(London学位证)如何办理
k4krdgxx
 

Recently uploaded (20)

一比一原版(爱大毕业证)美国爱荷华大学毕业证如何办理
一比一原版(爱大毕业证)美国爱荷华大学毕业证如何办理一比一原版(爱大毕业证)美国爱荷华大学毕业证如何办理
一比一原版(爱大毕业证)美国爱荷华大学毕业证如何办理
 
一比一原版(ututaustin毕业证书)美国德克萨斯大学奥斯汀分校毕业证如何办理
一比一原版(ututaustin毕业证书)美国德克萨斯大学奥斯汀分校毕业证如何办理一比一原版(ututaustin毕业证书)美国德克萨斯大学奥斯汀分校毕业证如何办理
一比一原版(ututaustin毕业证书)美国德克萨斯大学奥斯汀分校毕业证如何办理
 
一比一原版(OU毕业证)美国俄克拉荷马大学毕业证如何办理
一比一原版(OU毕业证)美国俄克拉荷马大学毕业证如何办理一比一原版(OU毕业证)美国俄克拉荷马大学毕业证如何办理
一比一原版(OU毕业证)美国俄克拉荷马大学毕业证如何办理
 
一比一原版南安普顿索伦特大学毕业证Southampton成绩单一模一样
一比一原版南安普顿索伦特大学毕业证Southampton成绩单一模一样一比一原版南安普顿索伦特大学毕业证Southampton成绩单一模一样
一比一原版南安普顿索伦特大学毕业证Southampton成绩单一模一样
 
一比一原版(KPU毕业证)加拿大昆特兰理工大学毕业证如何办理
一比一原版(KPU毕业证)加拿大昆特兰理工大学毕业证如何办理一比一原版(KPU毕业证)加拿大昆特兰理工大学毕业证如何办理
一比一原版(KPU毕业证)加拿大昆特兰理工大学毕业证如何办理
 
一比一原版(Brunel毕业证)英国布鲁内尔大学毕业证如何办理
一比一原版(Brunel毕业证)英国布鲁内尔大学毕业证如何办理一比一原版(Brunel毕业证)英国布鲁内尔大学毕业证如何办理
一比一原版(Brunel毕业证)英国布鲁内尔大学毕业证如何办理
 
Intel-Centrino-Mobile-Technology-guidelines
Intel-Centrino-Mobile-Technology-guidelinesIntel-Centrino-Mobile-Technology-guidelines
Intel-Centrino-Mobile-Technology-guidelines
 
一比一原版(Deakin毕业证书)澳洲迪肯大学毕业证文凭如何办理
一比一原版(Deakin毕业证书)澳洲迪肯大学毕业证文凭如何办理一比一原版(Deakin毕业证书)澳洲迪肯大学毕业证文凭如何办理
一比一原版(Deakin毕业证书)澳洲迪肯大学毕业证文凭如何办理
 
UXpert_Report (UALR Mapping Renewal 2022).pdf
UXpert_Report (UALR Mapping Renewal 2022).pdfUXpert_Report (UALR Mapping Renewal 2022).pdf
UXpert_Report (UALR Mapping Renewal 2022).pdf
 
一比一原版(UVM毕业证)佛蒙特大学毕业证如何办理
一比一原版(UVM毕业证)佛蒙特大学毕业证如何办理一比一原版(UVM毕业证)佛蒙特大学毕业证如何办理
一比一原版(UVM毕业证)佛蒙特大学毕业证如何办理
 
一比一原版(Hull毕业证)英国哈珀亚当斯大学毕业证如何办理
一比一原版(Hull毕业证)英国哈珀亚当斯大学毕业证如何办理一比一原版(Hull毕业证)英国哈珀亚当斯大学毕业证如何办理
一比一原版(Hull毕业证)英国哈珀亚当斯大学毕业证如何办理
 
一比一原版肯特大学毕业证UKC成绩单一模一样
一比一原版肯特大学毕业证UKC成绩单一模一样一比一原版肯特大学毕业证UKC成绩单一模一样
一比一原版肯特大学毕业证UKC成绩单一模一样
 
Rethinking Kållered │ From Big Box to a Reuse Hub: A Transformation Journey ...
Rethinking Kållered │  From Big Box to a Reuse Hub: A Transformation Journey ...Rethinking Kållered │  From Big Box to a Reuse Hub: A Transformation Journey ...
Rethinking Kållered │ From Big Box to a Reuse Hub: A Transformation Journey ...
 
一比一原版(falmouth毕业证书)法尔茅斯大学毕业证如何办理
一比一原版(falmouth毕业证书)法尔茅斯大学毕业证如何办理一比一原版(falmouth毕业证书)法尔茅斯大学毕业证如何办理
一比一原版(falmouth毕业证书)法尔茅斯大学毕业证如何办理
 
一比一原版布兰登大学毕业证(BU毕业证书)如何办理
一比一原版布兰登大学毕业证(BU毕业证书)如何办理一比一原版布兰登大学毕业证(BU毕业证书)如何办理
一比一原版布兰登大学毕业证(BU毕业证书)如何办理
 
一比一原版(ucb毕业证书)英国伯明翰大学学院毕业证如何办理
一比一原版(ucb毕业证书)英国伯明翰大学学院毕业证如何办理一比一原版(ucb毕业证书)英国伯明翰大学学院毕业证如何办理
一比一原版(ucb毕业证书)英国伯明翰大学学院毕业证如何办理
 
一比一原版(UofT毕业证)加拿大多伦多大学毕业证如何办理
一比一原版(UofT毕业证)加拿大多伦多大学毕业证如何办理一比一原版(UofT毕业证)加拿大多伦多大学毕业证如何办理
一比一原版(UofT毕业证)加拿大多伦多大学毕业证如何办理
 
一比一原版(ku毕业证书)堪萨斯大学毕业证如何办理
一比一原版(ku毕业证书)堪萨斯大学毕业证如何办理一比一原版(ku毕业证书)堪萨斯大学毕业证如何办理
一比一原版(ku毕业证书)堪萨斯大学毕业证如何办理
 
欧洲杯买球-欧洲杯买球买球网好的网站-欧洲杯买球哪里有正规的买球网站|【​网址​🎉ac123.net🎉​】
欧洲杯买球-欧洲杯买球买球网好的网站-欧洲杯买球哪里有正规的买球网站|【​网址​🎉ac123.net🎉​】欧洲杯买球-欧洲杯买球买球网好的网站-欧洲杯买球哪里有正规的买球网站|【​网址​🎉ac123.net🎉​】
欧洲杯买球-欧洲杯买球买球网好的网站-欧洲杯买球哪里有正规的买球网站|【​网址​🎉ac123.net🎉​】
 
一比一原版英国伦敦大学毕业证(London学位证)如何办理
一比一原版英国伦敦大学毕业证(London学位证)如何办理一比一原版英国伦敦大学毕业证(London学位证)如何办理
一比一原版英国伦敦大学毕业证(London学位证)如何办理
 

An Intro to HTML & CSS

  • 1. AN INTRO TO HTML & CSS Shay Howe November 2011 www.shayhowe.com – @shayhowe
  • 2. An Intro to HTML & CSS SHAY HOWE www.shayhowe.com – @shayhowe @shayhowe
  • 3. An Intro to HTML & CSS WHAT IS DESIGN? @shayhowe
  • 4. An Intro to HTML & CSS WHAT IS DESIGN? “In most people’s vocabularies, design is a veneer. It’s interior decorating. It’s the fabric of the curtains, of the sofa. But to me, nothing could be further from the meaning of design. Design is the fundamental soul of a human-made creation that ends up expressing itself in successive outer layers of the product.” – Steve Jobs @shayhowe
  • 5. An Intro to HTML & CSS WHAT IS HTML & CSS? @shayhowe
  • 6. An Intro to HTML & CSS HTML Markup language to give content structure and meaning. @shayhowe CSS Presentation language to give content style and appearance.
  • 7. An Intro to HTML & CSS HTML Content. @shayhowe CSS Style.
  • 8. An Intro to HTML & CSS HTML Hyper Text Markup Language @shayhowe
  • 9. An Intro to HTML & CSS ELEMENTS, ATTRIBUTES, & TAGS Elements body,  h1,  p,  div,  strong,  em,  span Elements are HTML designators that define certain objects. Attributes href="http://shayhowe.com"  title="Shay  Howe" Attributes provide additional information to the given element. Tags <div  id="shayhowe"  class="awesome"></div> Tags encompass elements and their corresponding attributes. @shayhowe
  • 10. BLOCK & INLINE ELEMENTS Block Block level elements begin on a new line within the document and occupy the full available width. Inline Inline level elements do not begin on a new line and fall into the flow of the document, maintaing their necessary width. An Intro to HTML & CSS @shayhowe header footer article section aside div h1...h6 p table form ul,  ol,  li dl,  dt,  dd span a strong em img br input abbr
  • 11. An Intro to HTML & CSS DOCUMENT STRUCTURE <!DOCTYPE  html> <html>    <head>        <title>Hello  World</title>    </head>    <body>        <h1>Hello  World</h1>        <p>This  is  a  website.</p>    </body> </html> @shayhowe
  • 12. An Intro to HTML & CSS QUIZ @shayhowe
  • 13. An Intro to HTML & CSS SAMPLE NAVIGATION HTML <ul  id="social">    <li  class="tumblr">        <a  href="http://blog.codeacademy.org">            Code  Academy  Tumblr  Blog        </a>    </li>    <li  class="mail">        <a  href="mailto:contact@codeacademy.org">            Email  Code  Academy        </a>    </li>    <li  class="twitter">        <a  href="http://twitter.com/#!/codeacademy">            Code  Academy  Twitter        </a>    </li>    ... </ul> @shayhowe
  • 14. An Intro to HTML & CSS SAMPLE NAVIGATION CSS ul#social  {    list-­‐style:  none;  } ul#social  li  {    float:  left;    margin:  12px  0  0  0;    padding:  0  3px;  } ul#social  li  a  {    background:  url("icons.png")  0  0  no-­‐repeat;    display:  block;    height:  17px;    text-­‐indent:  -­‐9999px;    width:  16px;  } ul#social  li.tumblr  a  {    background-­‐position:  0  -­‐64px;  } ul#social  li.mail  a  {    background-­‐position:  0  -­‐81px;  } ul#social  li.twitter  a  {    background-­‐position:  0  -­‐98px;  } @shayhowe
  • 15. An Intro to HTML & CSS TAGS <ul  id="social">    <li  class="tumblr">        <a  href="http://blog.codeacademy.org">            Code  Academy  Tumblr  Blog        </a>    </li>    <li  class="mail">        <a  href="mailto:contact@codeacademy.org">            Email  Code  Academy        </a>    </li>    <li  class="twitter">        <a  href="http://twitter.com/#!/codeacademy">            Code  Academy  Twitter        </a>    </li>    ... </ul> @shayhowe
  • 16. An Intro to HTML & CSS ELEMENTS <ul  id="social">    <li  class="tumblr">        <a  href="http://blog.codeacademy.org">            Code  Academy  Tumblr  Blog        </a>    </li>    <li  class="mail">        <a  href="mailto:contact@codeacademy.org">            Email  Code  Academy        </a>    </li>    <li  class="twitter">        <a  href="http://twitter.com/#!/codeacademy">            Code  Academy  Twitter        </a>    </li>    ... </ul> @shayhowe
  • 17. An Intro to HTML & CSS ATTRIBUTES <ul  id="social">    <li  class="tumblr">        <a  href="http://blog.codeacademy.org">            Code  Academy  Tumblr  Blog        </a>    </li>    <li  class="mail">        <a  href="mailto:contact@codeacademy.org">            Email  Code  Academy        </a>    </li>    <li  class="twitter">        <a  href="http://twitter.com/#!/codeacademy">            Code  Academy  Twitter        </a>    </li>    ... </ul> @shayhowe
  • 18. An Intro to HTML & CSS ID & CLASS <ul  id="social">    <li  class="tumblr">        <a  href="http://blog.codeacademy.org">            Code  Academy  Tumblr  Blog        </a>    </li>    <li  class="mail">        <a  href="mailto:contact@codeacademy.org">            Email  Code  Academy        </a>    </li>    <li  class="twitter">        <a  href="http://twitter.com/#!/codeacademy">            Code  Academy  Twitter        </a>    </li>    ... </ul> @shayhowe
  • 19. An Intro to HTML & CSS REFERENCING A CSS FILE <!DOCTYPE  html> <html>    <head>        <title>Hello  World</title>        <link  rel="stylesheet"  href="file.css">    </head>    <body>        <h1>Hello  World</h1>        <p>This  is  a  website.</p>    </body> </html> @shayhowe
  • 20. An Intro to HTML & CSS CSS Cascading Style Sheets @shayhowe
  • 21. An Intro to HTML & CSS SELECTOR, PROPERTY, VALUE Selector h1  {    font:  bold  16px/24px  Arial,  sans-­‐serif;  } A selector determines which element to apply style to. Property h1  {    font:  bold  16px/24px  Arial,  sans-­‐serif;  } A property is the style that will be applied to the element. Value h1  {    font:  bold  16px/24px  Arial,  sans-­‐serif;  } A value is the determines the behavior of a property. @shayhowe
  • 22. An Intro to HTML & CSS RULE SETS & DECLARATIONS Rule Set h1  {    font:  bold  16px/24px  Arial,  sans-­‐serif;  } A rule set includes a selector and all corresponding declarations. Declarations h1  {    font:  bold  16px/24px  Arial,  sans-­‐serif;  } Declarations are individual lines of CSS within a rule set. @shayhowe
  • 23. An Intro to HTML & CSS ELEMENT, ID, & CLASS SELECTORS Element Selector h1  {    font:  bold  16px/24px  Arial,  sans-­‐serif;  } An element selector targets and element by its name. ID Selector #logo  {    background:  url("logo.png")  0  0  no-­‐repeat;  } An ID selector targets and element by its ID. ID’s are to be reserved to one a page. Class Selector .column  {    width:  200px;  } A class selector targets and element by its class. Classes may appear multiple times within a page. @shayhowe
  • 24. An Intro to HTML & CSS QUIZ @shayhowe
  • 25. An Intro to HTML & CSS QUIZ ul#social  {    list-­‐style:  none;  } ul#social  li  {    float:  left;    margin:  12px  0  0  0;    padding:  0  3px;  } ul#social  li  a  {    background:  url("icons.png")  0  0  no-­‐repeat;    display:  block;    height:  17px;    text-­‐indent:  -­‐9999px;    width:  16px;  } ul#social  li.tumblr  a  {    background-­‐position:  0  -­‐64px;  } ul#social  li.mail  a  {    background-­‐position:  0  -­‐81px;  } ul#social  li.twitter  a  {    background-­‐position:  0  -­‐98px;  } @shayhowe
  • 26. An Intro to HTML & CSS SELECTORS ul#social  {    list-­‐style:  none;  } ul#social  li  {    float:  left;    margin:  12px  0  0  0;    padding:  0  3px;  } ul#social  li  a  {    background:  url("icons.png")  0  0  no-­‐repeat;    display:  block;    height:  17px;    text-­‐indent:  -­‐9999px;    width:  16px;  } ul#social  li.tumblr  a  {    background-­‐position:  0  -­‐64px;  } ul#social  li.mail  a  {    background-­‐position:  0  -­‐81px;  } ul#social  li.twitter  a  {    background-­‐position:  0  -­‐98px;  } @shayhowe
  • 27. An Intro to HTML & CSS PROPERTIES ul#social  {    list-­‐style:  none;  } ul#social  li  {    float:  left;    margin:  12px  0  0  0;    padding:  0  3px;  } ul#social  li  a  {    background:  url("icons.png")  0  0  no-­‐repeat;    display:  block;    height:  17px;    text-­‐indent:  -­‐9999px;    width:  16px;  } ul#social  li.tumblr  a  {    background-­‐position:  0  -­‐64px;  } ul#social  li.mail  a  {    background-­‐position:  0  -­‐81px;  } ul#social  li.twitter  a  {    background-­‐position:  0  -­‐98px;  } @shayhowe
  • 28. An Intro to HTML & CSS VALUES ul#social  {    list-­‐style:  none;  } ul#social  li  {    float:  left;    margin:  12px  0  0  0;    padding:  0  3px;  } ul#social  li  a  {    background:  url("icons.png")  0  0  no-­‐repeat;    display:  block;    height:  17px;    text-­‐indent:  -­‐9999px;    width:  16px;  } ul#social  li.tumblr  a  {    background-­‐position:  0  -­‐64px;  } ul#social  li.mail  a  {    background-­‐position:  0  -­‐81px;  } ul#social  li.twitter  a  {    background-­‐position:  0  -­‐98px;  } @shayhowe
  • 29. An Intro to HTML & CSS THE BOX MODEL @shayhowe
  • 30. An Intro to HTML & CSS THE BOX MODEL div  {    border:  4px  solid  #000;    height:  300px;    margin:  20px;    padding:  20px;    width:  300px; } Breakdown Total Width = Width + (Margin x 2) + (Border x 2) + (Padding x 2) 388  Pixels  =  300  +  (20  x  2)  +  (4  x  2)  +  (20  x  2) Total Height = Height + (Margin x 2) + (Border x 2) + (Padding x 2) 388  Pixels  =  300  +  (20  x  2)  +  (4  x  2)  +  (20  x  2) @shayhowe
  • 31. An Intro to HTML & CSS FLOATS img  {    border:  1px  solid  #ccc;    float:  right    margin:  10px  0  10px  20px;    padding:  4px; } <p>Ut  wisi  enin  ad  minim...</p> <p><img  src="chicago.jpg"  alt="Chicago"  /> Lorem  ipsum  dolor  sit  amet...</p> <p>Mimimum  veniami  ex  ea  con...</p> @shayhowe
  • 32. An Intro to HTML & CSS FLOATS @shayhowe
  • 33. An Intro to HTML & CSS FLOATS & CLEARS .col  {    float:  left;    margin:  0  10px;    width:  400px; } .clear  {    clear:  both; } <p  class="col">Lorem  ipsum  dolor  sit  amet...</p> <p  class="col">Con  minimim  venami  quis...</p> <div  class="clear"></div> <p>Quis  nostrud  ad  nostris  pro  amat...</p> @shayhowe
  • 34. An Intro to HTML & CSS FLOATS & CLEARS @shayhowe
  • 35. An Intro to HTML & CSS QUESTIONS? Thank you! @shayhowe