SlideShare una empresa de Scribd logo
1 de 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

Más contenido relacionado

La actualidad más candente

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プリプロセッサの取扱説明書
拓樹 谷
 

La actualidad más candente (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 a 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 a 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
 

Último

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Último (20)

DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
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
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
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
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 

Implementing Awesome: An HTML5/CSS3 Workshop