SlideShare a Scribd company logo
1 of 57
Implementing
  Awesome
An HTML5/CSS3 Workshop



    Shoshi Roberts
       @Shoshizilla
Hi, I’m Shoshi!
I work For




 mintdigital.com
I Do...
What IS


HTML5?
What IS


HTML5?
Tons of New
 Elements
Layout
<header>      <hgroup>


<nav>

                         <aside>
 <section>

  <article>




<footer>
Text: Elements

<abbr title=“Oh My God”>OMG</abbr>

<small>Good for legalese</small>

<address>555 Sector 5, Planet Earth</address>

<time>April, 1 2050</time>
Text: Formatting

<strong>   = Importance (bold)

<b>        = Stylistically Different

<em>       = Emphasis (italic)

<i>        = Alternate Voice or Mood
MEDIA: Video
<video src="cat.mp4" width="480" height="320"
       type="video/mp4" controls preload></video>
MEDIA: AuDIO
<audio src="cake.mp3" type="audio/mpeg" autoplay></audio>
Semantic
        Hierarchy
<h1>Page Title</h1>

<section>

  <h1>Section Title</h1>

  ...

</section>
Links Just Got
   Awesome
<a href=“/the-future.html”>

  <div>

       <p>Yep, this validates now.</p>

  </div>

</a>
Forms Are
Our Friends
Form: Inputs
<input type=“password”>
            “search”
            “number”
            “range”
            “color”
            “tel”
            “email”
            “url”
            “date”, “week”, “datetime-local”, ...
            “file”
Form: Attributes
<input type=“text” placeholder=“Holding your place...”>
Form: Attributes
<input type=“text” maxlength=“140”>

<input type=“text” required>

<form novalidate>
What Can I
   Use Now?
Updating an Existing Document
Change your
          DOctype

                 <!DOCTYPE html>


                      VS

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">
<head>


</head>
Cleaner Charset

         <meta charset=”utf-8”>


                  VS

<meta http-equiv="content-type"
      content="text/html; charset=utf-8">
Less is More

<link href=”stylesheet.css” rel=”stylesheet”
      type=”text/css”>
<body>




</body>
Have Fun With
New Elements

     <header> ... </header>


Or for More Compatibility


 <div class=”header”> ... </div>
Less is Still
        More

<script src=”script.js”
        type=”text/javascript”></script>



 Please don’t put me in the <head>.
What About
Older BrowSers?
HTML5Shim/v
code.google.com/p/html5shim/
ModerniZR
 modernizr.com
Experiences
   Will Be
  Different
Just make Sure they’re usable
But Wait!
 There’s More...
Other Awesome
  Features
Stay Up TO Date

html5rocks.com

developers.whatwg.org
CSS3
More Than A Box
<div class=”box”>
  <p>
    I&rsquo;m a box!
  </p>
</div>
div.box {
 width: 250px;
 padding: 135px 25px;
    margin: 60px auto;
 background: #FFF;
 color: #444;
}
div.box p {
    text-align: center;
}
div.box {
      -moz-border-radius:    30px;
      -webkit-border-radius: 30px;
    border-radius:           30px;
}
div.box {
      -moz-border-radius:    300px;
      -webkit-border-radius: 300px;
    border-radius:           300px;
}
Vendor Prefixes
  element {
        -moz-property:    x;
        -webkit-property: x;
        -o-property:      x;
        -ms-property:     x;
      property:           x;
  }
ACCessibility
    caniuse.com
div.box {
    border-top-left-radius: 10px;
    border-bottom-right-radius:     120px;
}
div.box {
    background: #DDD;
    text-shadow: 0 1px 1px #FFF;
}
div.box {
    background: #DDD;
    background: rgba(255,255,255,0.75);
    /*                  r,   g,   b,   a */
}
div.box {
    background: #DDD;
    background: linear-gradient(top, #FFF 0%, #777 100%);
}
div.box {
    background: #DDD;
    background: radial-gradient(
                  rgba(255, 255, 255, 1) 0%,
                  rgba(255, 255, 255, 0) 70%);
}
div.box {
    box-shadow: 10px 10px 0 #FA0;
}
div.box {
    box-shadow: inset 0 0 15px #000;
}
div.box:before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    width: 300px;
    height: 300px;
    z-index: -1;
    background:
      rgba(255,221,0,0.5);
}
div.box {
    position: relative;
}
div.box:after {
    content: '';
    position: absolute;
    top: 30px;
    left: 30px;
    width: 300px;
    height: 300px;
    z-index: -2;
    background:
      rgba(255,165,0,0.5);
}
Animations!
div.box:after {
    animation-name:                  rotate;
    animation-duration:              0.6s;
    animation-iteration-count:       infinite;
    animation-timing-function:       linear;
}
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
Workshop
Make The Most Awesome Box
       (or non-box}


   Want Starter COde?
       bit.ly/pygotham
Questions?
A Special
  Thanks To:
PAM
Gloria
PYGotham
Mint Digital
Happy Hacking!

   Shoshi Roberts
      @Shoshizilla

More Related Content

What's hot

High Performance Front-End Development
High Performance Front-End DevelopmentHigh Performance Front-End Development
High Performance Front-End Development
drywallbmb
 
Cssbestpracticesjstyleguidejandtips 150830184202-lva1-app6892
Cssbestpracticesjstyleguidejandtips 150830184202-lva1-app6892Cssbestpracticesjstyleguidejandtips 150830184202-lva1-app6892
Cssbestpracticesjstyleguidejandtips 150830184202-lva1-app6892
Deepak Sharma
 
SASS is more than LESS
SASS is more than LESSSASS is more than LESS
SASS is more than LESS
Itai Koren
 
Cascading Style Sheets
Cascading Style SheetsCascading Style Sheets
Cascading Style Sheets
Senthil Kumar
 
Sass: The Future of Stylesheets
Sass: The Future of StylesheetsSass: The Future of Stylesheets
Sass: The Future of Stylesheets
chriseppstein
 
JS.Chi CSS Animations
JS.Chi CSS AnimationsJS.Chi CSS Animations
JS.Chi CSS Animations
Justin Meyer
 
CSSプリプロセッサの取扱説明書
CSSプリプロセッサの取扱説明書CSSプリプロセッサの取扱説明書
CSSプリプロセッサの取扱説明書
拓樹 谷
 

What's hot (20)

High Performance Front-End Development
High Performance Front-End DevelopmentHigh Performance Front-End Development
High Performance Front-End Development
 
Lesson 02
Lesson 02Lesson 02
Lesson 02
 
Cssbestpracticesjstyleguidejandtips 150830184202-lva1-app6892
Cssbestpracticesjstyleguidejandtips 150830184202-lva1-app6892Cssbestpracticesjstyleguidejandtips 150830184202-lva1-app6892
Cssbestpracticesjstyleguidejandtips 150830184202-lva1-app6892
 
CSS and image optimization
CSS and image optimizationCSS and image optimization
CSS and image optimization
 
Rapid and Responsive - UX to Prototype with Bootstrap
Rapid and Responsive - UX to Prototype with BootstrapRapid and Responsive - UX to Prototype with Bootstrap
Rapid and Responsive - UX to Prototype with Bootstrap
 
DBIx::Skinnyと仲間たち
DBIx::Skinnyと仲間たちDBIx::Skinnyと仲間たち
DBIx::Skinnyと仲間たち
 
SASS is more than LESS
SASS is more than LESSSASS is more than LESS
SASS is more than LESS
 
Post GoGaRuco 2010 hack day at Pivotal Labs : HTML5 & CSS3
Post GoGaRuco 2010 hack day at Pivotal Labs : HTML5 & CSS3Post GoGaRuco 2010 hack day at Pivotal Labs : HTML5 & CSS3
Post GoGaRuco 2010 hack day at Pivotal Labs : HTML5 & CSS3
 
How to look like a model? MongoDB for Rails apps
How to look like a model? MongoDB for Rails appsHow to look like a model? MongoDB for Rails apps
How to look like a model? MongoDB for Rails apps
 
CSS Walktrough Internship Course
CSS Walktrough Internship CourseCSS Walktrough Internship Course
CSS Walktrough Internship Course
 
Cascading Style Sheets
Cascading Style SheetsCascading Style Sheets
Cascading Style Sheets
 
Sass: The Future of Stylesheets
Sass: The Future of StylesheetsSass: The Future of Stylesheets
Sass: The Future of Stylesheets
 
Haml and Sass Introduction
Haml and Sass IntroductionHaml and Sass Introduction
Haml and Sass Introduction
 
JS.Chi CSS Animations
JS.Chi CSS AnimationsJS.Chi CSS Animations
JS.Chi CSS Animations
 
WordPress 3.4 Theme Customizer
WordPress 3.4 Theme CustomizerWordPress 3.4 Theme Customizer
WordPress 3.4 Theme Customizer
 
CSSプリプロセッサの取扱説明書
CSSプリプロセッサの取扱説明書CSSプリプロセッサの取扱説明書
CSSプリプロセッサの取扱説明書
 
Css best practices style guide and tips
Css best practices style guide and tipsCss best practices style guide and tips
Css best practices style guide and tips
 
Css frameworks
Css frameworksCss frameworks
Css frameworks
 
Web Components Revolution
Web Components RevolutionWeb Components Revolution
Web Components Revolution
 
Hello, Canvas.
Hello, Canvas.Hello, Canvas.
Hello, Canvas.
 

Similar to Implementing Awesome: An HTML5/CSS3 Workshop

HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich
HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference ZürichHTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich
HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich
Robert Nyman
 
Blog skins396734
Blog skins396734Blog skins396734
Blog skins396734
pantangmrny
 

Similar to Implementing Awesome: An HTML5/CSS3 Workshop (20)

HTML5
HTML5HTML5
HTML5
 
Presentation html5 css3 by thibaut
Presentation html5 css3 by thibautPresentation html5 css3 by thibaut
Presentation html5 css3 by thibaut
 
Slow kinda sucks
Slow kinda sucksSlow kinda sucks
Slow kinda sucks
 
HTML5, the new buzzword
HTML5, the new buzzwordHTML5, the new buzzword
HTML5, the new buzzword
 
HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich
HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference ZürichHTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich
HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich
 
Html5 intro
Html5 introHtml5 intro
Html5 intro
 
Diazo: Bridging Designers and Programmers
Diazo: Bridging Designers and ProgrammersDiazo: Bridging Designers and Programmers
Diazo: Bridging Designers and Programmers
 
What you need to know bout html5
What you need to know bout html5What you need to know bout html5
What you need to know bout html5
 
CSS3 Takes on the World
CSS3 Takes on the WorldCSS3 Takes on the World
CSS3 Takes on the World
 
Course Tech 2013, Sasha Vodnik, A Crash Course in HTML5
Course Tech 2013, Sasha Vodnik, A Crash Course in HTML5Course Tech 2013, Sasha Vodnik, A Crash Course in HTML5
Course Tech 2013, Sasha Vodnik, A Crash Course in HTML5
 
HTML5 & CSS3 Flag
HTML5 & CSS3 FlagHTML5 & CSS3 Flag
HTML5 & CSS3 Flag
 
SINATRA + HAML + TWITTER
SINATRA + HAML + TWITTERSINATRA + HAML + TWITTER
SINATRA + HAML + TWITTER
 
HTML Web Devlopment presentation css.ppt
HTML Web Devlopment presentation css.pptHTML Web Devlopment presentation css.ppt
HTML Web Devlopment presentation css.ppt
 
css.ppt
css.pptcss.ppt
css.ppt
 
css.ppt
css.pptcss.ppt
css.ppt
 
I Can't Believe It's Not Flash
I Can't Believe It's Not FlashI Can't Believe It's Not Flash
I Can't Believe It's Not Flash
 
HTML5 and CSS3: Exploring Mobile Possibilities - London Ajax Mobile Event
HTML5 and CSS3: Exploring Mobile Possibilities - London Ajax Mobile EventHTML5 and CSS3: Exploring Mobile Possibilities - London Ajax Mobile Event
HTML5 and CSS3: Exploring Mobile Possibilities - London Ajax Mobile Event
 
About Best friends - HTML, CSS and JS
About Best friends - HTML, CSS and JSAbout Best friends - HTML, CSS and JS
About Best friends - HTML, CSS and JS
 
Blog skins396734
Blog skins396734Blog skins396734
Blog skins396734
 
CSS and CSS3
CSS and CSS3CSS and CSS3
CSS and CSS3
 

Recently uploaded

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Recently uploaded (20)

Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 

Implementing Awesome: An HTML5/CSS3 Workshop