SlideShare a Scribd company logo
1 of 149
Download to read offline
Beginner & Intermediate Guide
                                  to HTML5/CSS3 In Drupal
                                                By Kendall Totten
                                                   @starryeyez024

                                                     #HTML5CSS3




                                             http://t.co/VssZle71


Thursday, December 8, 2011                                          1
Thursday, December 8, 2011   2
BROUGHT TO YOU BY
                             THE GOOD FOLKS AT




                                 DO DRUPAL RIGHT


Thursday, December 8, 2011                          2
About Me
     • Bachelors in Communication
           Technology & Graphic Design
           from Eastern Michigan
           University
     • Drupal Designer & Theme
           Specialist at Mediacurrent
     • Working in the Drupal space
           for about 3 years
     • Working with Drupal since
           version 5

                                         Kendall Totten

Thursday, December 8, 2011                                3
About Me
     • Bachelors in Communication
           Technology & Graphic Design
           from Eastern Michigan
           University
     • Drupal Designer & Theme
           Specialist at Mediacurrent
     • Working in the Drupal space
           for about 3 years
     • Working with Drupal since
           version 5

                                         Kendall Totten

Thursday, December 8, 2011                                3
What will you learn?




Thursday, December 8, 2011      4
What will you learn?
        HTML5                       CSS3
        • Semantic Web              • Text in Columns
        • Microformats              • Transitions 
        • Real Life applications    • CSS3Pie
        • Tactics to enhance        • Using SVG
          compatibility             • The future of CSS
        • Enhance UX                • How CSS3 can help you
        • Semantic image captions     design for mobile
        • The Omega Theme
        • HTML5 Themes and
          Modules
        • How to start using
          HTML5 Today!

Thursday, December 8, 2011                                    4
Thursday, December 8, 2011   5
What is
                             HTML5?

Thursday, December 8, 2011              5
Thursday, December 8, 2011   6
Thursday, December 8, 2011   6
Web




Thursday, December 8, 2011   6
Web




                                         HTML
                                          4.01

                             Flash
                                       Help
                                                 Browser
                                                 Support
                             Plugins




Thursday, December 8, 2011                                 6
Web                                              HTML5




                                         HTML
                                          4.01

                             Flash
                                       Help
                                                 Browser
                                                 Support
                             Plugins




Thursday, December 8, 2011                                         6
Next generation of HTML
           The latest version of HTML known as
           HTML5, a set of capabilities that gives
           web designers and developers the ability
           to create the next generation of great
           online applications.

     “Upgrading” to HTML5 can be as simple as
     changing your doctype.
      

     <!DOCTYPE html>
     and resetting your stylesheet:

     http://html5doctor.com
     html-5-reset-stylesheet


Thursday, December 8, 2011                            7
A Better Blend




Thursday, December 8, 2011   8
A Better Blend

                             HTML5   CSS3   JS




Thursday, December 8, 2011                       8
Who Cares?




Thursday, December 8, 2011   9
Who Cares?




Thursday, December 8, 2011   9
From Dries
      "I believe in HTML5 enough that I wanted to make it one of the
      top 5 initiatives for Drupal 8; and switch Drupal's default
      doctype from XHTML to HTML5. This is the fifth official Drupal
      8 initiative after the Configuration Management, Design,Web
      Services and Multilingual initiatives."

                                                   — Dries Buytaert




Thursday, December 8, 2011                                             10
HTML5 Fallout
      • Change Doctype
      • Start using Outliner
      • Use Header, Section,
        Footer, and Nav Tags
      • Start thinking about
        Semantics Markup




Thursday, December 8, 2011     11
HTML5 Fallout
      • Change Doctype
      • Start using Outliner
      • Use Header, Section,
        Footer, and Nav Tags
      • Start thinking about
        Semantics Markup




Thursday, December 8, 2011     11
HTML5 Elements




Thursday, December 8, 2011   12
HTML5 Elements
     Head                    Sections   Grouping     Tables
     doctype                 body       p            table
     html                    article    hr           caption
     head                    nav        pre          thead
     title                              blockquote   tbody
                             aside
     base                               ol           tfoot
                             section    ul           tr
     link
     meta                    header     li           th
     style                   footer     dl, dt, dd   td
     script                  h1-h6      figure        col
     noscript                hgroup     figcaption    colgroup
                             address    div


Thursday, December 8, 2011                                      12
http://html5doctor.com/wp-content/uploads/HTML5Doctor-sectioning-flowchart.pdf

Thursday, December 8, 2011                                                                                   13
http://html5doctor.com/wp-content/uploads/HTML5Doctor-sectioning-flowchart.pdf

Thursday, December 8, 2011                                                                                   13
HTML5 Elements




Thursday, December 8, 2011   14
HTML5 Elements
     Forms                   Embedded   Text-level
     form                    img        a            var
     fieldset                 iframe     em
     legend                  embed      strong
                                                     mark
     label                   object     i, b         bdi
     input                   param      u            bdo
     button                  video      s            ruby, rt, rp
     select                  audio      small        span
     datalist                           abbr         br
                             source
     optgroup                           q
                             canvas     cite
                                                     Interactive
     option
                             track      dfn          details
     textarea
                             map        sub, sup     summary
     keygen
                             area       time         command
     output
                                        code         menu
     progress
     meter                              kbd
                                                     Edits
                                        samp         del, ins
                                        wbr
Thursday, December 8, 2011                                          14
Thursday, December 8, 2011   15
HTML5
                       Semantics

Thursday, December 8, 2011           15
Getting information off the Internet is
                             like taking a drink from a fire hydrant. 
                                                     —Mitchell Kapor




Thursday, December 8, 2011                                              16
The Missing Link




Thursday, December 8, 2011   17
The Missing Link




Thursday, December 8, 2011   17
What is Semantic Web?


               "The Semantic Web is a web that is
               able to describe things in a way that
                   computers can understand."


                             Source: http://www.w3schools.com/semweb/default.asp



Thursday, December 8, 2011                                                         18
Semantic Benefits
      By making the web understandable to machines:
      • Programs and web sites can exchange information
      • Search engines can return more relevant information in results
      • Data compilers can combine data from different datasets to
        find new and astounding things, like weather data or stock
        market info.




Thursday, December 8, 2011                                               19
Semantic Benefits
      By making the web understandable to machines:
      • Programs and web sites can exchange information
      • Search engines can return more relevant information in results
      • Data compilers can combine data from different datasets to
        find new and astounding things, like weather data or stock
        market info.




                             I love Drupal.

Thursday, December 8, 2011                                               19
Semantic Benefits
      By making the web understandable to machines:
      • Programs and web sites can exchange information
      • Search engines can return more relevant information in results
      • Data compilers can combine data from different datasets to
        find new and astounding things, like weather data or stock
        market info.




                             I love Drupal.

Thursday, December 8, 2011                                               19
Thursday, December 8, 2011   20
HTML5
                             Structure

Thursday, December 8, 2011               20
HTML5 Structure




Thursday, December 8, 2011   21
HTML5 Structure
                                    <header>
                                     <nav>

                             <section>
                             <article>         <aside>
                             <article>

                                   <footer>


Thursday, December 8, 2011                               21
<header> </hgroup>
       <article>
         <header>                         Wrong Way
             <h1>My best blog post</h1>
         </header>
       </article>

       OR

       <header>
         <hgroup>
           <h1>My best blog post</h1>
         </hgroup>
         <p>by Rich Clark</p>
       </header>




Thursday, December 8, 2011                            22
<header></hgroup>
      <header>
        <hgroup>
       
       
           <h1>The reality dysfunction</h1>
           <h2>Space is not the only void</h2>
                                                  Right Way
        </hgroup>
        <p>By Richard Clark</p>
        <p><time datetime="2011-03-20">
        March 20th, 2011</time></p>
      </header>

      <article>
        <header>
            <h1>Title of this article</h1>
            <p>By Richard Clark</p>
        </header>
        <p>...Lorem Ipsum dolor set amet...</p>
      </article>


Thursday, December 8, 2011                                    23
<section>
      <section id="wrapper">
        <header>
          <h1>My super duper page</h1>
        </header>                        Wrong Way
          <section id="main">
            Section Content
          </section>

          <section id="secondary">
            Secondary Content
          </section>

      <section id="footer">
        <footer>
           Footer Content
        </footer>
      </section>




Thursday, December 8, 2011                           24
<section>
        <div id="wrapper">
         <article>
             <header>
                <h1>Document Outlines</h1>
                                                    Right Way
                Header Content
             </header>
             <section id="what-are-outlines">
             <h2>What are document outlines?</h2>
                 ...content
             </section>
             <section id="outlines-in-html4">
             <h2>Outlines in HTML4</h2>
                 ...content
             </section>
         </article>
         <footer>
            Footer Content
         </footer>
        </div>

Thursday, December 8, 2011                                      25
Use An Outliner Tool
    • Use to group content into logical category or
         sections

    • With very few exceptions, section should not
         be used if there is no natural heading for it.

    • Section should not be used like aside or nav
         containers just to position content

    • Check your work in a HTML5 Outliner Tool



Thursday, December 8, 2011                                26
Outliner Output
       http://gsnedders.html5.org/outliner




Thursday, December 8, 2011                   27
Quick Tip
         • “<body>” is already a wrapper and can be
                hacked to achieve some pretty remarkable layout
                and clean code! It can have a height, width,
                border, drop-shadow; you name it. 

         • HTML5 Does not require you to actually include
                the “<body>” tag.




Thursday, December 8, 2011                                        28
<nav>
      The following shouldnʼt be
      enclosed by <nav>
       • Pagination controls
                                     Wrong Way
       • Social links
       • Tags on a blog post
       • Categories on a blog post
       • Tertiary navigation
       • Fat footers




Thursday, December 8, 2011                       29
Semantic Captions
    A caption is the definition of an image

    Use Figure to enclose the image and the
    Figure Caption, and use some CSS3 to add a
    nice slide in effect.
    http://css-tricks.com/examples/SlideinCaptions/

    <figure>
         <img src="yay.jpg" alt="">
         <figcaption class="from-left">
             yay!!!
         </figcaption>
    </figure>




Thursday, December 8, 2011                            30
Code Sample

    <figure>

        <img src="/kookaburra.jpg" alt="Kooaburra">
        <img src="/pelican.jpg" alt="Pelican stood on the beach">
        <img src="/lorikeet.jpg" alt="Cheeky looking Rainbow Lorikeet">

        <figcaption>Australian Birds. From left to right, Kookburra, Pelican
            and Rainbow Lorikeet. Originals by
            <a href="http://www.flickr.com/photos/rclark/">Richard Clark</a>
         </figcaption>

    </figure>




Thursday, December 8, 2011                                                    31
Code Sample

    <figure>

        <img src="/kookaburra.jpg" alt="Kooaburra">
        <img src="/pelican.jpg" alt="Pelican stood on the beach">
        <img src="/lorikeet.jpg" alt="Cheeky looking Rainbow Lorikeet">

        <figcaption>Australian Birds. From left to right, Kookburra, Pelican
            and Rainbow Lorikeet. Originals by
            <a href="http://www.flickr.com/photos/rclark/">Richard Clark</a>
         </figcaption>

    </figure>




Thursday, December 8, 2011                                                    31
Thursday, December 8, 2011   32
Microdata vs.
               Microformats

Thursday, December 8, 2011                   32
Thursday, December 8, 2011   33
Thursday, December 8, 2011   33
Microdata & Microformats
      •      Your web pages have an underlying meaning that people understand
             when they read the web pages.
      •      But search engines have a limited understanding of what is being
             discussed on those pages. 
      •      Microdata is a set of tags, introduced with HTML5, that allows you to
             do this.




                                       http://schema.org

Thursday, December 8, 2011                                                           34
Microdata & Microformats
      •      Your web pages have an underlying meaning that people understand
             when they read the web pages.
      •      But search engines have a limited understanding of what is being
             discussed on those pages. 
      •      Microdata is a set of tags, introduced with HTML5, that allows you to
             do this.




                                       http://schema.org

Thursday, December 8, 2011                                                           34
Thursday, December 8, 2011   35
HTML5 &
                             Microdata

Thursday, December 8, 2011               35
Microdata
     Global Attributes:
     •      itemscope – Creates the Item and indicates that descendants of this
            element contain information about it.
     •      itemprop – Indicates that its containing tag holds the value of the specified
            item property. The properties name and value context are described by the
            items vocabulary.
     •      itemtype – A valid URL of a vocabulary that describes the item and its
            properties context.
     •      itemid – Indicates a unique identifier of the item.
     •      itemref – Properties that are not descendants of the element with the
            itemscope attribute can be associated with the item using this attribute.
            Provides a list of id's of elements with additional properties elsewhere in the
            document.



Thursday, December 8, 2011                                                                    36
Microdata
           <div itemscope itemtype="http://data-vocabulary.org/Event">

        <a itemprop="url" href="http://www.example.com/events/spinaltap" >
          <span itemprop="summary" >Spinal Tap</span>
       </a>
       <img itemprop="photo" src="spinal_tap.jpg" />
          <span itemprop="description" >
             After their highly-publicized search for a new drummer,
             Spinal Tap kicks off their latest comeback tour.
          </span>
     When:
          <time itemprop="startDate" datetime="2015-10-15T19:00-08:00">
             Oct 15, 7:00PM </time>—
          <time itemprop="endDate" datetime="2015-10-15T19:00-08:00">
             Oct 15, 9:00PM </time>
     Where:
          <span itemprop="location" itemscope itemtype="http://data-vocabulary.org/Organization">
          <span itemprop="name" >Warfield Theatre</span>
          <span itemprop="ocality" >San Francisco</span>
     </div>


                                         http://schema.org/Event
Thursday, December 8, 2011                                                                          37
Microdata
           <div itemscope itemtype="http://data-vocabulary.org/Event">

        <a itemprop="url" href="http://www.example.com/events/spinaltap" >
          <span itemprop="summary" >Spinal Tap</span>
       </a>
       <img itemprop="photo" src="spinal_tap.jpg" />
          <span itemprop="description" >
             After their highly-publicized search for a new drummer,
             Spinal Tap kicks off their latest comeback tour.
          </span>
     When:
          <time itemprop="startDate" datetime="2015-10-15T19:00-08:00">
             Oct 15, 7:00PM </time>—
          <time itemprop="endDate" datetime="2015-10-15T19:00-08:00">
             Oct 15, 9:00PM </time>
     Where:
          <span itemprop="location" itemscope itemtype="http://data-vocabulary.org/Organization">
          <span itemprop="name" >Warfield Theatre</span>
          <span itemprop="ocality" >San Francisco</span>
     </div>


                                         http://schema.org/Event
Thursday, December 8, 2011                                                                          37
Microdata Module




                                         Rich Snippets Testing Tool
                             http://www.google.com/webmasters/tools/richsnippets

Thursday, December 8, 2011                                                         38
Microdata Module




                                         Rich Snippets Testing Tool
                             http://www.google.com/webmasters/tools/richsnippets

Thursday, December 8, 2011                                                         38
Thursday, December 8, 2011   39
HTML5 &
               Microformats

Thursday, December 8, 2011             39
Microformats
         •      Used on web pages to describe a specific type of information —for
                example, a review, an event, a product, a business, or a person.

         •      In general, microformats use the class attribute in HTML tags
                (often <span> or <div>) to assign brief and descriptive names to
                entities and their properties.




Thursday, December 8, 2011                                                         40
Microformats
         •      Used on web pages to describe a specific type of information —for
                example, a review, an event, a product, a business, or a person.

         •      In general, microformats use the class attribute in HTML tags
                (often <span> or <div>) to assign brief and descriptive names to
                entities and their properties.




Thursday, December 8, 2011                                                         40
Code Sample
     <div>
       <a href="http://www.example.com/events/spinaltap" class="url summary">Spinal Tap</a>
          <img src="spinal_tap.jpg" class="photo" />
          <span class="description">
            After their highly-publicized search for a new drummer, Spinal Tap kicks off their
            latest comeback tour with a San Francisco show.
          </span> When:
          <span class="dtstart"> Oct 15, 7:00PM<span class="value-title" title="2015-10-15T19:00-08:00"></span>
          <span class="dtend"> 9:00PM<span class="value-title" title="2015-10-15T21:00-08:00"></span> </span>
          Where:
          <div class="location vcard">
            <span class="fn org">Warfield Theatre</span>,
            <span class="adr">
            <span class="street-address">982 Market St</span>,
            <span class="locality">San Francisco</span>,
            <span class="region">CA</span> </span>
            <span class="geo">
               <span class="latitude">
                  <span class="value-title" title="37.774929" ></span>
               </span>
            </span>
          </div>
     </div>



Thursday, December 8, 2011                                                                                        41
hCard
       • hCard uses a class of fn (meaning Full Name) to identify a
             name. As is this case there’s no element surrounding my name,
             we can just use a span. 

       • <div class="bio vcard"> <h3>About the author</h3>
             <p><span class="fn">Kendall Totten</span> is a web
             developer...

       • At <a class="org" href="http://www.mediacurrent.com/">
             Mediacurrent</a> she works on Drupal Theming and Front-End
             Development. Kendall keeps a <a class="url" href="http://
             www.kendallsdesign.com/">personal weblog</a> covering
             web development issues and themes.</p> </div>


Thursday, December 8, 2011                                                   42
Thursday, December 8, 2011   43
Thursday, December 8, 2011   43
Microformat Tools
      • Microformat biz card creator:
             http://microformats.org/code/hcard/creator

      • hReview Creator
             http://microformats.org/code/hreview/creator

      • hCalendar Creator
             http://microformats.org/code/hcalendar/creator




Thursday, December 8, 2011                                    44
Thursday, December 8, 2011   45
HTML5
                             Themes

Thursday, December 8, 2011            45
Drupal Themes
         • AdaptiveTheme
         • Genesis
         • Omega
         • Gamma (Omega sub theme)
         • HTML5 Base
         • Beta (Omega sub theme)
         • Boron
         • Zentropy
         • Plink

           http://www.qemist.us/content/acquiacom-and-omega-theme-getting-down-brass-tacks

Thursday, December 8, 2011                                                                   46
Drupal Themes
         • AdaptiveTheme
         • Genesis
         • Omega
         • Gamma (Omega sub theme)
         • HTML5 Base
         • Beta (Omega sub theme)
         • Boron
         • Zentropy
         • Plink

           http://www.qemist.us/content/acquiacom-and-omega-theme-getting-down-brass-tacks

Thursday, December 8, 2011                                                                   46
The Winners Table




                             http://www.digett.com/blog/06/29/2011/html5-base-starter-themes-drupal-7

Thursday, December 8, 2011                                                                              47
The Winners Table




                             http://www.digett.com/blog/06/29/2011/html5-base-starter-themes-drupal-7

Thursday, December 8, 2011                                                                              47
Delta Module
     • Delta allows you, via the Context module to make
           duplicates of your theme settings (templates) for any
           context on your site.
     •     This gives you the ability to use these templates as a
           reaction in Context.
           </awesomesauce>




Thursday, December 8, 2011                                          48
JS for your Theme
     •     Modernizr - modernizr-1.6.min.js
               •     Download from: http://www.modernizr.com/
     •     IE6 ping fix - dd_belatedpng.js
               •     Download from: http://www.dillerdesign.com/experiment/
                     DD_belatedPNG/
     •     HTML5 Shim -html5.js (comes included with Omega!)
               •     Download from: http://code.google.com/p/html5shim/
     •     Media-size responsive images - respond.js
               •     Download from: https://github.com/scottjehl/Respond#readme




Thursday, December 8, 2011                                                        49
Thursday, December 8, 2011   50
HTML5
                             Modules

Thursday, December 8, 2011             50
Drupal Modules
     There are 26 HTML5 based modules for Drupal 6 and 22 for
     Drupal 7. Some of them are still in development.
     •      HTML5 Tools (your secret weapon!)
     •      Elements
     •      Video - most popular HTML5 based module
            for both Drupal 6 and 7
     •      VideoJS
     •      Media: Vimeo
     •      Media: Archive
     •      Aloha HTML5 Editor
     •      Plupload Integration
     •      MediaFront
     •      JPlayer


Thursday, December 8, 2011                                      51
Drupal Modules
     There are 26 HTML5 based modules for Drupal 6 and 22 for
     Drupal 7. Some of them are still in development.
     •      HTML5 Tools (your secret weapon!)
     •      Elements
     •      Video - most popular HTML5 based module
            for both Drupal 6 and 7
     •      VideoJS
     •      Media: Vimeo
     •      Media: Archive
     •      Aloha HTML5 Editor
     •      Plupload Integration
     •      MediaFront
     •      JPlayer


Thursday, December 8, 2011                                      51
Video Module
     Video module allows you to upload video in any format, play video in any
     format, transcode video to h246, Theora, VP8 using FFMPEG , automatically
     creates video thumbnails, use video thumbnails in video node teaser, Very
     reliable API for converting videos and auto thumbnailing, can be used as an
     all-in-one video solution for Drupal.




                                 http://drupal.org/project/video


Thursday, December 8, 2011                                                         52
More HTML5 Tools
     Features you can find in the
     Drupal 7 version:
     •     Support for the html5shiv plugin (for older
           browsers)
     •     Support for the innershiv plugin
     •     Support for Google Chrome Frame
     •     Adds new elements for use in the Views
           module
     •     Support for the html5 doctype with or without
           RDF.
     •     Make new Elements available in the Views UI
     •     Tons of other forms and markup changes.



Thursday, December 8, 2011                                 53
More HTML5 Tools
     Features you can find in the
     Drupal 7 version:
     •     Support for the html5shiv plugin (for older
           browsers)
     •     Support for the innershiv plugin
     •     Support for Google Chrome Frame
     •     Adds new elements for use in the Views
           module
     •     Support for the html5 doctype with or without
           RDF.
     •     Make new Elements available in the Views UI
     •     Tons of other forms and markup changes.



Thursday, December 8, 2011                                 53
HTML5 Tools Module
     Override Drupal's Forms with HTML5 markup
     •     Site information
     •     Search block
     •     Search form
     •     User registration: url, email, telephone
     •     Contact forms
     •     Table select widget




                                  yoursite.com/admin/config/markup/html5-tools


Thursday, December 8, 2011                                                      54
HTML5 Tools Module
     Simplify <HEAD> Markup
     •     Simplify doctype and add html5shiv
     •     Simplify style tags
     •     Simplify javascript tags
     •     Simplify meta tags
     •     Add Google Chrome Frame headers
     •     Adds the X-UA-Compatible: IE=Edge,chrome=1 headers for IE
           browsers. This will not prompt the user to install Google Chrome
           Frame, it will just use it if available.




                                  yoursite.com/admin/config/markup/html5-tools


Thursday, December 8, 2011                                                      55
HTML5 Tools Module
     HTML5 Tools: Convert other variables
     •     Alter publication date markup
     •     If one of these is not working, it might be because your theme is
           overriding what is specified here. Themes always get the last say in
           how something is outputted. Check your theme's template.php file.




                                 yoursite.com/admin/config/markup/html5-tools


Thursday, December 8, 2011                                                       56
Thursday, December 8, 2011   57
Code Sample
       <meta http-equiv="X-UA-Compatible" content="chrome=1" />


       <IfModule mod_setenvif.c>
           <IfModule mod_headers.c>
               BrowserMatch chromeframe gcf
               Header append X-UA-Compatible "chrome=1" env=gcf
           </IfModule>
       </IfModule>




Thursday, December 8, 2011                                        58
Seamless Integration




Thursday, December 8, 2011   59
Thursday, December 8, 2011   60
HTML5 &
                              SVG

Thursday, December 8, 2011             60
SVG
     Scalable Vector Graphics
     (SVG) is a new graphics file
     format and Web development
     language based on XML.
     SVG enables Web developers
     and designers to create
     dynamically generated, high-
     quality graphics from real-time
     data with precise structural
     and visual control.

                             http://svg-wow.org/camera/camera.xhtml



Thursday, December 8, 2011                                            61
SVG
     Scalable Vector Graphics
     (SVG) is a new graphics file
     format and Web development
     language based on XML.
     SVG enables Web developers
     and designers to create
     dynamically generated, high-
     quality graphics from real-time
     data with precise structural
     and visual control.

                             http://svg-wow.org/camera/camera.xhtml



Thursday, December 8, 2011                                            61
SVG Benefits
     •     Compatibility
           SVG is text based and works seamlessly with current Web
           technologies like HTML, GIF, JPEG, PNG, SMIL, ASP, JSP,
           and JavaScript.


     •     Quality
           Graphics created in SVG can be scaled without loss of quality
           across various platforms and devices. SVG can be used on
           the Web, in print and even on portable devices while retaining
           full quality.




                             http://www.w3schools.com/svg/tryit.asp?filename=trysvg_animatemotion2



Thursday, December 8, 2011                                                                          62
SVG Links
     •      Change stylesheets: http://svg-wow.org/alternate-stylesheet/
            alternate-stylesheet.xhtml
     •      Punchout: http://webtypographyforthelonely.com/punchout
     •      Colinate: http://webtypographyforthelonely.com/coolinate
     •      SVG JS helper: http://raphaeljs.com/
     •      http://svg-wow.org/
     •      http://svg-wow.org/camera/camera.xhtml




Thursday, December 8, 2011                                                 63
SVG Links
     •      Change stylesheets: http://svg-wow.org/alternate-stylesheet/
            alternate-stylesheet.xhtml
     •      Punchout: http://webtypographyforthelonely.com/punchout
     •      Colinate: http://webtypographyforthelonely.com/coolinate
     •      SVG JS helper: http://raphaeljs.com/
     •      http://svg-wow.org/
     •      http://svg-wow.org/camera/camera.xhtml




Thursday, December 8, 2011                                                 63
HTML5 Links
     •     http://diveintohtml5.org/
     •     http://html5doctor.com
     •     http://code.google.com/p/html5shiv/
     •     http://www.google.com/chromeframe?prefersystemlevel=true
     •     HTML5 Quick Reference Guide PDF: http://bit.ly/1WaBME
     •     http://groups.drupal.org/html5
     •     http://html5gallery.com/
     •     http://code.google.com/chrome/chromeframe/
     •     http://html5test.com/
     •     http://www.smashingmagazine.com/2009/07/06/html-5-cheat-sheet-pdf/
     •     http://html5demos.com
     •     http://woork.blogspot.com/2009/09/html-5-visual-cheat-sheet-by-
           woork.html
     •     http://www.threestyles.com/tutorials/html5-rocks-my-socks-off/


Thursday, December 8, 2011                                                      64
Thursday, December 8, 2011   65
Theme With
                             CSS3
Thursday, December 8, 2011                65
Thursday, December 8, 2011   66
The Compatibility Battle




Thursday, December 8, 2011                          66
CSS Warrior
     PIE (progressive internet explorer) makes Internet
     Explorer 6-9 capable of rendering several of the most useful
     CSS3 decoration features:
     •     border-radius
     •     box-shadow
     •     border-image
     •     multiple background images
     •     linear-gradient as background image




      http://drupal.org/project/css3pie


Thursday, December 8, 2011                                          67
CSS Warrior
     PIE (progressive internet explorer) makes Internet
     Explorer 6-9 capable of rendering several of the most useful
     CSS3 decoration features:
     •     border-radius
     •     box-shadow
     •     border-image
     •     multiple background images
     •     linear-gradient as background image




      http://drupal.org/project/css3pie


Thursday, December 8, 2011                                          67
Are We There Yet?




                             http://caniuse.com


Thursday, December 8, 2011                        68
Are We There Yet?




                             http://caniuse.com


Thursday, December 8, 2011                        68
Thursday, December 8, 2011   69
Do Websites
                          Look
                             need to

              Exactlythe Same
               in Every
                        Browser
Thursday, December 8, 2011             69
http://dowebsitesneedtolookexactlythesameineverybrowser.com/
Thursday, December 8, 2011                                                                  70
NO
                             http://dowebsitesneedtolookexactlythesameineverybrowser.com/
Thursday, December 8, 2011                                                                  70
Modernizr
     •     Better yet, use Irish's modernizr, “an open source, MIT-
           licensed JavaScript library that detects (browser) support for
           many HTML5 & CSS3 features”
           (http://diveintohtml5.org/detect.html)
     •     If you prefer, you can build your own modernizr
           script,choosing just the elements you want to use to keep
           your script small, download your customized library, and add it
           to the head of your theme's page template files with:<script
           src="(path-to)modernizr.min.js"></script>
     •     In Drupal 6, this would be page.tpl.php and in Drupal 7,
           html.tpl.php. Read the full instructions here.




Thursday, December 8, 2011                                                   71
Modernizr Features
     What does Modernizr do?
     •      It will replace that class with the class “js” which allows you to
            know, in your CSS, whether or not JavaScript is enabled.


            <html class="js canvas canvastext no-geolocation rgba hsla
            multiplebgs borderimage borderradius boxshadow opacity
            cssanimations csscolumns cssgradients cssreflections
            csstransforms csstransforms3d csstransitions video audio
            localstorage sessionstorage no-webworkers
            no-applicationcache fontface">



                             http://www.alistapart.com/articles/taking-advantage-of-html5-and-css3-with-modernizr


Thursday, December 8, 2011                                                                                          72
Modernizr Features
     •     applicationCache    •   @font-face
     •     border-image:       •   Geolocation API
     •     border-radius:      •   hsla()
     •     box-shadow:         •   HTML5 Audio
     •     Canvas              •   HTML5 Video
     •     Canvas Text         •   Input Attributes
     •     CSS 2D Transforms   •   Input Types
     •     CSS 3D Transforms   •   localStorage
     •     CSS Animations      •   Multiple backgrounds
     •     CSS Columns         •   opacity:
     •     CSS Gradients       •   rgba()
     •     CSS Reflections      •   sessionStorage
     •     CSS Transitions     •   Web Workers




Thursday, December 8, 2011                                73
Modernizr Features
     •     applicationCache    •   @font-face
     •     border-image:       •   Geolocation API
     •     border-radius:      •   hsla()
     •     box-shadow:         •   HTML5 Audio
     •     Canvas              •   HTML5 Video
     •     Canvas Text         •   Input Attributes
     •     CSS 2D Transforms   •   Input Types
     •     CSS 3D Transforms   •   localStorage
     •     CSS Animations      •   Multiple backgrounds
     •     CSS Columns         •   opacity:
     •     CSS Gradients       •   rgba()
     •     CSS Reflections      •   sessionStorage
     •     CSS Transitions     •   Web Workers




Thursday, December 8, 2011                                73
Modernizr Example
           .borderradius #content {
           border: 1px solid #141414;
           -webkit-border-radius: 12px;
            -moz-border-radius: 12px;
           border-radius: 12px; }


           .boxshadow #content {
           border: none;
           -webkit-box-shadow: #141414 3px 3px 6px;
           -moz-box-shadow: #141414 3px 3px 6px;
           box-shadow: #141414 3px 3px 6px; }


                                    http://css-tricks.com/6731-css-media-queries


Thursday, December 8, 2011                                                         74
Thursday, December 8, 2011   75
CSS3
         Media Queries

Thursday, December 8, 2011          75
Thursday, December 8, 2011   76
Thursday, December 8, 2011   76
CSS Media Queries




Thursday, December 8, 2011   77
CSS Media Queries




                             http://css-tricks.com/6731-css-media-queries


Thursday, December 8, 2011                                                  78
CSS Media Queries




                             http://css-tricks.com/6731-css-media-queries


Thursday, December 8, 2011                                                  78
Code Sample
      <!DOCTYPE html>
      <html>
      <head>
          <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
          <title>Resolution Dependent Layout</title>
          <link rel="stylesheet" type="text/css" href="css/style.css">
          <link rel="stylesheet" media="screen and (max-width: 700px)" href="css/narrow.css">
          <link rel="stylesheet" media="screen and (min-width: 701px) and (max-width: 900px)"
      href="css/medium.css">
          <link rel="stylesheet" media="screen and (min-width: 901px)" href="css/wide.css">

      </head>
      <body>
          <div id="page-wrap">
              <div id="header">Header</div>             
              <div id="main-content">Content</div>                 
              <div id="secondary-one">Secondary</div>
              <div id="secondary-two">Extra</div>               
          </div>   
      </body>
      </html>



                             http://css-tricks.com/6206-resolution-specific-stylesheets
                                    http://css-tricks.com/6731-css-media-queries


Thursday, December 8, 2011                                                                      79
Code Sample
      @media print {
         body { font-size: 10pt }
       }
       @media screen {
         body { font-size: 13px }
       }
       @media screen, print {
         body { line-height: 1.2 }
       }




                             http://css-tricks.com/6206-resolution-specific-stylesheets
                                    http://css-tricks.com/6731-css-media-queries


Thursday, December 8, 2011                                                               80
Thursday, December 8, 2011   81
CSS3
                             Fonts

Thursday, December 8, 2011           81
CSS3 @Fonts
       •     Import directly from the Google Webfonts API:
       @import url(http://fonts.googleapis.com/css?family=Alike+Angular);




                                http://css-tricks.com/6731-css-media-queries


Thursday, December 8, 2011                                                     82
CSS3 @Fonts
       • Hinting (for IE)
       • Font hinting is the use of instructions to adjust the display of an
             outline font so that it lines up with a rasterized grid. At small
             screen sizes, hinting is critical for producing clear, legible text for
             human readers.




                             http://readableweb.com/font-hinting-explained-by-a-font-design-master/

Thursday, December 8, 2011                                                                            83
Thursday, December 8, 2011   84
CSS3
            Backgrounds

Thursday, December 8, 2011          84
http://leaverou.me/css3patterns/#tartan


Thursday, December 8, 2011                                             85
Tablecloth


                              http://leaverou.me/css3patterns/#tartan


Thursday, December 8, 2011                                              85
http://leaverou.me/css3patterns/#carbon-fibre


Thursday, December 8, 2011                                                  86
Carbon Fiber


                               http://leaverou.me/css3patterns/#carbon-fibre


Thursday, December 8, 2011                                                    86
http://leaverou.me/css3patterns/#tartan


Thursday, December 8, 2011                                             87
Tartan


                             http://leaverou.me/css3patterns/#tartan


Thursday, December 8, 2011                                             87
Code Sample
      #tablecloth {
        background-color:white;
        background-image: linear-gradient(0, rgba(200,0,0,.5) 50%, transparent 50%),
        linear-gradient(rgba(200,0,0,.5) 50%, transparent 50%);
        background-size:50px 50px;
      }

      #carbon-fiber {
        radial-gradient(black 15%, transparent 16%) 0 0,
        radial-gradient(black 15%, transparent 16%) 8px 8px,
        radial-gradient(rgba(255,255,255,.1) 15%, transparent 20%) 0 1px,
        radial-gradient(rgba(255,255,255,.1) 15%, transparent 20%) 8px 9px;
        background-color:#282828;
        background-size:16px 16px;
      }

      #tartan {
        background-color: hsl(2, 57%, 40%); background-image: repeating-linear-gradient(transparent, transparent 50px, rgba(0,0,0,.4) 50px, rgba(0,0,0,.4)
        53px, transparent 53px, transparent 63px, rgba(0,0,0,.4) 63px, rgba(0,0,0,.4) 66px, transparent 66px, transparent 116px, rgba(0,0,0,.5) 116px, rgba
        (0,0,0,.5) 166px, rgba(255,255,255,.2) 166px, rgba(255,255,255,.2) 169px, rgba(0,0,0,.5) 169px, rgba(0,0,0,.5) 179px, rgba(255,255,255,.2) 179px,
        rgba(255,255,255,.2) 182px, rgba(0,0,0,.5) 182px, rgba(0,0,0,.5) 232px, transparent 232px), repeating-linear-gradient(180deg, transparent,
        transparent 50px, rgba(0,0,0,.4) 50px, rgba(0,0,0,.4) 53px, transparent 53px, transparent 63px, rgba(0,0,0,.4) 63px, rgba(0,0,0,.4) 66px, transparent
        66px, transparent 116px, rgba(0,0,0,.5) 116px, rgba(0,0,0,.5) 166px, rgba(255,255,255,.2) 166px, rgba(255,255,255,.2) 169px, rgba(0,0,0,.5) 169px,
        rgba(0,0,0,.5) 179px, rgba(255,255,255,.2) 179px, rgba(255,255,255,.2) 182px, rgba(0,0,0,.5) 182px, rgba(0,0,0,.5) 232px, transparent
        232px),repeating-linear-gradient(-35deg, transparent, transparent 2px, rgba(0,0,0,.2) 2px, rgba(0,0,0,.2) 3px, transparent 3px, transparent 5px, rgba
        (0,0,0,.2) 5px);
      }



                                                    http://css-tricks.com/6731-css-media-queries
                                                            http://leaverou.me/css3patterns


Thursday, December 8, 2011                                                                                                                                      88
CSS Columns
       Lorem ipsum dolor sit      Duis autem vel eum          luptatum zzril delenit     Investigationes
       amet, consectetuer         iriure dolor in             augue duis dolore te       demonstraverunt
       adipiscing elit, sed       hendrerit in vulputate      feugait nulla facilisi.    lectores legere me
       diam nonummy nibh          velit esse molestie         Nam liber tempor cum       lius quod ii legunt
       euismod tincidunt ut       consequat, vel illum        soluta nobis eleifend      saepius.
       laoreet dolore magna       dolore eu feugiat nulla     option congue nihil
       aliquam erat volutpat.     facilisis at vero eros et   imperdiet doming id
       Ut wisi enim ad minim      accumsan et iusto           quod mazim placerat
       veniam, quis nostrud       odio dignissim qui          facer possim assum.
       exerci tation              blandit praesent 
       ullamcorper suscipit                                   Typi non habent
       lobortis nisl ut aliquip   Accumsan et iusto           claritatem insitam; est
       ex ea commodo              odio dignissim qui          usus legentis in iis qui
       consequat.                 blandit praesent            facit eorum claritatem.




                              http://www.netmagazine.com/features/future-css-layouts
                                      http://www.makeuseof.com/dir/csstextwrap

Thursday, December 8, 2011                                                                                     89
Code Sample
      .newspaper
      {
          -webkit-columns: 100px 2; /* Safari and Chrome */
          -moz-column-gap: 40px; /* Firefox */
          -webkit-column-gap: 40px; /* Safari and Chrome */
          columns: 200px 4;
          column-gap: 40px;
      }




                                         http://css-tricks.com/6731-css-media-queries


Thursday, December 8, 2011                                                              90
CSS Layouts




                             http://www.netmagazine.com/features/future-css-layouts
                                     http://www.makeuseof.com/dir/csstextwrap

Thursday, December 8, 2011                                                            91
CSS Layouts




                             http://www.netmagazine.com/features/future-css-layouts
                                     http://www.makeuseof.com/dir/csstextwrap

Thursday, December 8, 2011                                                            91
CSS3 Links
     •     http://adaptive-images.com/
     •     http://htmlref.labs.oreilly.com/beta/#elements
     •     http://css3pie.com
     •     http://www.modernizr.com
     •     http://html5readiness.com/
     •     http://caniuse.com/
     •     http://html5doctor.com/how-to-get-html5-working-in-ie-and-firefox-2/
     •     http://css-tricks.com/




Thursday, December 8, 2011                                                       92
Thursday, December 8, 2011   93
Thank You!

Thursday, December 8, 2011      93

More Related Content

What's hot

EECI2009 - From Design to Dynamic - Rapid ExpressionEngine Development
EECI2009 - From Design to Dynamic - Rapid ExpressionEngine DevelopmentEECI2009 - From Design to Dynamic - Rapid ExpressionEngine Development
EECI2009 - From Design to Dynamic - Rapid ExpressionEngine DevelopmentFortySeven Media
 
Introduction to html 5
Introduction to html 5Introduction to html 5
Introduction to html 5Sayed Ahmed
 
The Future of the Web: HTML5
The Future of the Web: HTML5The Future of the Web: HTML5
The Future of the Web: HTML5Derek Bender
 
Essential Javascript -- A Javascript &lt;b>Tutorial&lt;/b>
Essential Javascript -- A Javascript &lt;b>Tutorial&lt;/b>Essential Javascript -- A Javascript &lt;b>Tutorial&lt;/b>
Essential Javascript -- A Javascript &lt;b>Tutorial&lt;/b>tutorialsruby
 
Getting Started with HTML5 in Tech Com (STC 2012)
Getting Started with HTML5 in Tech Com (STC 2012)Getting Started with HTML5 in Tech Com (STC 2012)
Getting Started with HTML5 in Tech Com (STC 2012)Peter Lubbers
 
HTML5 introduction for beginners
HTML5 introduction for beginnersHTML5 introduction for beginners
HTML5 introduction for beginnersVineeth N Krishnan
 
HTML CSS JavaScript jQuery Training
HTML CSS JavaScript jQuery TrainingHTML CSS JavaScript jQuery Training
HTML CSS JavaScript jQuery Trainingubshreenath
 
HTML5 Smart Markup for Smarter Websites [FoWD NYC 2011]
HTML5 Smart Markup for Smarter Websites [FoWD NYC 2011]HTML5 Smart Markup for Smarter Websites [FoWD NYC 2011]
HTML5 Smart Markup for Smarter Websites [FoWD NYC 2011]Aaron Gustafson
 
Standardization in W3C
Standardization in W3CStandardization in W3C
Standardization in W3CJonathan Jeon
 
Front End Development | Introduction
Front End Development | IntroductionFront End Development | Introduction
Front End Development | IntroductionJohnTaieb
 
Introduction to HTML5
Introduction to HTML5Introduction to HTML5
Introduction to HTML5Gil Fink
 
HTML5--The 30,000' View (A fast-paced overview of HTML5)
HTML5--The 30,000' View (A fast-paced overview of HTML5)HTML5--The 30,000' View (A fast-paced overview of HTML5)
HTML5--The 30,000' View (A fast-paced overview of HTML5)Peter Lubbers
 

What's hot (19)

Webcomponents v2
Webcomponents v2Webcomponents v2
Webcomponents v2
 
EECI2009 - From Design to Dynamic - Rapid ExpressionEngine Development
EECI2009 - From Design to Dynamic - Rapid ExpressionEngine DevelopmentEECI2009 - From Design to Dynamic - Rapid ExpressionEngine Development
EECI2009 - From Design to Dynamic - Rapid ExpressionEngine Development
 
Web Standards
Web StandardsWeb Standards
Web Standards
 
Introduccion a HTML5
Introduccion a HTML5Introduccion a HTML5
Introduccion a HTML5
 
Introduction to html 5
Introduction to html 5Introduction to html 5
Introduction to html 5
 
The Future of the Web: HTML5
The Future of the Web: HTML5The Future of the Web: HTML5
The Future of the Web: HTML5
 
HTML5
HTML5HTML5
HTML5
 
Html5 Basics
Html5 BasicsHtml5 Basics
Html5 Basics
 
Essential Javascript -- A Javascript &lt;b>Tutorial&lt;/b>
Essential Javascript -- A Javascript &lt;b>Tutorial&lt;/b>Essential Javascript -- A Javascript &lt;b>Tutorial&lt;/b>
Essential Javascript -- A Javascript &lt;b>Tutorial&lt;/b>
 
Getting Started with HTML5 in Tech Com (STC 2012)
Getting Started with HTML5 in Tech Com (STC 2012)Getting Started with HTML5 in Tech Com (STC 2012)
Getting Started with HTML5 in Tech Com (STC 2012)
 
HTML5 introduction for beginners
HTML5 introduction for beginnersHTML5 introduction for beginners
HTML5 introduction for beginners
 
HTML CSS JavaScript jQuery Training
HTML CSS JavaScript jQuery TrainingHTML CSS JavaScript jQuery Training
HTML CSS JavaScript jQuery Training
 
Html 5 introduction
Html 5 introductionHtml 5 introduction
Html 5 introduction
 
Web Standards
Web StandardsWeb Standards
Web Standards
 
HTML5 Smart Markup for Smarter Websites [FoWD NYC 2011]
HTML5 Smart Markup for Smarter Websites [FoWD NYC 2011]HTML5 Smart Markup for Smarter Websites [FoWD NYC 2011]
HTML5 Smart Markup for Smarter Websites [FoWD NYC 2011]
 
Standardization in W3C
Standardization in W3CStandardization in W3C
Standardization in W3C
 
Front End Development | Introduction
Front End Development | IntroductionFront End Development | Introduction
Front End Development | Introduction
 
Introduction to HTML5
Introduction to HTML5Introduction to HTML5
Introduction to HTML5
 
HTML5--The 30,000' View (A fast-paced overview of HTML5)
HTML5--The 30,000' View (A fast-paced overview of HTML5)HTML5--The 30,000' View (A fast-paced overview of HTML5)
HTML5--The 30,000' View (A fast-paced overview of HTML5)
 

Viewers also liked

Curso HTML5 - Temario
Curso HTML5 - TemarioCurso HTML5 - Temario
Curso HTML5 - Temariopastilla5
 
Introducción a HTML5 y CSS3 AWGR
Introducción a HTML5 y CSS3 AWGRIntroducción a HTML5 y CSS3 AWGR
Introducción a HTML5 y CSS3 AWGRvalgreens
 
Manual css3 DesarrolloWeb
Manual css3 DesarrolloWebManual css3 DesarrolloWeb
Manual css3 DesarrolloWebWalter Carmona
 
DIAPOSITIVAS HTLM Y HTML 5
DIAPOSITIVAS HTLM Y HTML 5DIAPOSITIVAS HTLM Y HTML 5
DIAPOSITIVAS HTLM Y HTML 5jeilobe
 
Introducción a Etiquetas HTML 5
Introducción a Etiquetas HTML 5Introducción a Etiquetas HTML 5
Introducción a Etiquetas HTML 5Joaquin Lara Sierra
 
HTML5 & CSS3 refresher for mobile apps
HTML5 & CSS3 refresher for mobile appsHTML5 & CSS3 refresher for mobile apps
HTML5 & CSS3 refresher for mobile appsIvano Malavolta
 
Introducción a HTML5 y CSS3
Introducción a HTML5 y CSS3Introducción a HTML5 y CSS3
Introducción a HTML5 y CSS3Paradigma Digital
 
Html5 y css3: Introducción y aplicación desde hoy
Html5 y css3: Introducción y aplicación desde hoyHtml5 y css3: Introducción y aplicación desde hoy
Html5 y css3: Introducción y aplicación desde hoyParadigma Digital
 

Viewers also liked (14)

Curso HTML5 - Temario
Curso HTML5 - TemarioCurso HTML5 - Temario
Curso HTML5 - Temario
 
How to Get More Traffic to your Blog
How to Get More Traffic to your BlogHow to Get More Traffic to your Blog
How to Get More Traffic to your Blog
 
Introducción a HTML5 y CSS3 AWGR
Introducción a HTML5 y CSS3 AWGRIntroducción a HTML5 y CSS3 AWGR
Introducción a HTML5 y CSS3 AWGR
 
Manual css3 DesarrolloWeb
Manual css3 DesarrolloWebManual css3 DesarrolloWeb
Manual css3 DesarrolloWeb
 
DIAPOSITIVAS HTLM Y HTML 5
DIAPOSITIVAS HTLM Y HTML 5DIAPOSITIVAS HTLM Y HTML 5
DIAPOSITIVAS HTLM Y HTML 5
 
Ejemplos paginas html
Ejemplos paginas htmlEjemplos paginas html
Ejemplos paginas html
 
Sitio web html
Sitio web htmlSitio web html
Sitio web html
 
HTML5 y CSS3
HTML5 y CSS3HTML5 y CSS3
HTML5 y CSS3
 
Introducción a Etiquetas HTML 5
Introducción a Etiquetas HTML 5Introducción a Etiquetas HTML 5
Introducción a Etiquetas HTML 5
 
HTML5 & CSS3 refresher for mobile apps
HTML5 & CSS3 refresher for mobile appsHTML5 & CSS3 refresher for mobile apps
HTML5 & CSS3 refresher for mobile apps
 
Planificacion sitio Web educativo
Planificacion sitio Web educativoPlanificacion sitio Web educativo
Planificacion sitio Web educativo
 
Practice exam php
Practice exam phpPractice exam php
Practice exam php
 
Introducción a HTML5 y CSS3
Introducción a HTML5 y CSS3Introducción a HTML5 y CSS3
Introducción a HTML5 y CSS3
 
Html5 y css3: Introducción y aplicación desde hoy
Html5 y css3: Introducción y aplicación desde hoyHtml5 y css3: Introducción y aplicación desde hoy
Html5 y css3: Introducción y aplicación desde hoy
 

Similar to HTML5 & CSS3 in Drupal (on the Bayou)

Chapter 2 introduction to html5
Chapter 2 introduction to html5Chapter 2 introduction to html5
Chapter 2 introduction to html5nobel mujuji
 
www.webre24h.com - [O`reilly] html and xhtml. pocket reference, 4th ed. - [...
www.webre24h.com - [O`reilly]   html and xhtml. pocket reference, 4th ed. - [...www.webre24h.com - [O`reilly]   html and xhtml. pocket reference, 4th ed. - [...
www.webre24h.com - [O`reilly] html and xhtml. pocket reference, 4th ed. - [...webre24h
 
Is it time to start using HTML 5
Is it time to start using HTML 5Is it time to start using HTML 5
Is it time to start using HTML 5Ravi Raj
 
Theming Drupal 6 - An Introduction to the Basics
Theming Drupal 6 - An Introduction to the BasicsTheming Drupal 6 - An Introduction to the Basics
Theming Drupal 6 - An Introduction to the BasicsErik Baldwin
 
HTML 5, CSS3 and ASP.NET Best Practices by Example
HTML 5, CSS3 and ASP.NET Best Practices by ExampleHTML 5, CSS3 and ASP.NET Best Practices by Example
HTML 5, CSS3 and ASP.NET Best Practices by ExampleDarren Sim
 
Introduction to HTML5 and CSS3 (revised)
Introduction to HTML5 and CSS3 (revised)Introduction to HTML5 and CSS3 (revised)
Introduction to HTML5 and CSS3 (revised)Joseph Lewis
 
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...ijceronline
 
Html5 today
Html5 todayHtml5 today
Html5 todayRoy Yu
 
HTML5 New Tags
HTML5 New TagsHTML5 New Tags
HTML5 New TagsDucat
 
The Difference between HTML, XHTML & HTML5 for Beginners
The Difference between HTML, XHTML & HTML5 for BeginnersThe Difference between HTML, XHTML & HTML5 for Beginners
The Difference between HTML, XHTML & HTML5 for BeginnersRasin Bekkevold
 
Manual en Dive Into html5
Manual en Dive Into html5Manual en Dive Into html5
Manual en Dive Into html5Erik Gur
 

Similar to HTML5 & CSS3 in Drupal (on the Bayou) (20)

Html5
Html5Html5
Html5
 
Chapter 2 introduction to html5
Chapter 2 introduction to html5Chapter 2 introduction to html5
Chapter 2 introduction to html5
 
HTML 5
HTML 5HTML 5
HTML 5
 
www.webre24h.com - [O`reilly] html and xhtml. pocket reference, 4th ed. - [...
www.webre24h.com - [O`reilly]   html and xhtml. pocket reference, 4th ed. - [...www.webre24h.com - [O`reilly]   html and xhtml. pocket reference, 4th ed. - [...
www.webre24h.com - [O`reilly] html and xhtml. pocket reference, 4th ed. - [...
 
Is it time to start using HTML 5
Is it time to start using HTML 5Is it time to start using HTML 5
Is it time to start using HTML 5
 
HTML5 Introduction – Features and Resources for HTML5
HTML5 Introduction – Features and Resources for HTML5HTML5 Introduction – Features and Resources for HTML5
HTML5 Introduction – Features and Resources for HTML5
 
Theming Drupal 6 - An Introduction to the Basics
Theming Drupal 6 - An Introduction to the BasicsTheming Drupal 6 - An Introduction to the Basics
Theming Drupal 6 - An Introduction to the Basics
 
HTML 5, CSS3 and ASP.NET Best Practices by Example
HTML 5, CSS3 and ASP.NET Best Practices by ExampleHTML 5, CSS3 and ASP.NET Best Practices by Example
HTML 5, CSS3 and ASP.NET Best Practices by Example
 
Html 5
Html 5Html 5
Html 5
 
wt mod1.pdf
wt mod1.pdfwt mod1.pdf
wt mod1.pdf
 
Introduction to HTML5 and CSS3 (revised)
Introduction to HTML5 and CSS3 (revised)Introduction to HTML5 and CSS3 (revised)
Introduction to HTML5 and CSS3 (revised)
 
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
 
HTML5 and XHTML2
HTML5 and XHTML2HTML5 and XHTML2
HTML5 and XHTML2
 
Html5
Html5Html5
Html5
 
Html5 Flyover
Html5 FlyoverHtml5 Flyover
Html5 Flyover
 
Html5 today
Html5 todayHtml5 today
Html5 today
 
HTML5 New Tags
HTML5 New TagsHTML5 New Tags
HTML5 New Tags
 
The Difference between HTML, XHTML & HTML5 for Beginners
The Difference between HTML, XHTML & HTML5 for BeginnersThe Difference between HTML, XHTML & HTML5 for Beginners
The Difference between HTML, XHTML & HTML5 for Beginners
 
Manual en Dive Into html5
Manual en Dive Into html5Manual en Dive Into html5
Manual en Dive Into html5
 
HTML5 and Joomla! 2.5 Template
HTML5 and Joomla! 2.5 TemplateHTML5 and Joomla! 2.5 Template
HTML5 and Joomla! 2.5 Template
 

More from Mediacurrent

Penn State News: Pivoting to Decoupled Drupal with Gatsby
Penn State News: Pivoting to Decoupled Drupal with GatsbyPenn State News: Pivoting to Decoupled Drupal with Gatsby
Penn State News: Pivoting to Decoupled Drupal with GatsbyMediacurrent
 
Evolving How We Measure Digital Success in Higher Ed
Evolving How We Measure Digital Success in Higher EdEvolving How We Measure Digital Success in Higher Ed
Evolving How We Measure Digital Success in Higher EdMediacurrent
 
Penn State scales static Drupal to new heights
Penn State scales static Drupal to new heightsPenn State scales static Drupal to new heights
Penn State scales static Drupal to new heightsMediacurrent
 
Delivering Meaningful Digital Experiences in Higher Ed
Delivering Meaningful Digital Experiences in Higher EdDelivering Meaningful Digital Experiences in Higher Ed
Delivering Meaningful Digital Experiences in Higher EdMediacurrent
 
Content Strategy: Building Connections with Your Audience
Content Strategy: Building Connections with Your AudienceContent Strategy: Building Connections with Your Audience
Content Strategy: Building Connections with Your AudienceMediacurrent
 
Decoupled Drupal and Gatsby in the Real World
Decoupled Drupal and Gatsby in the Real WorldDecoupled Drupal and Gatsby in the Real World
Decoupled Drupal and Gatsby in the Real WorldMediacurrent
 
A Better Way to Build and Manage Sites with Rain for Drupal 9
A Better Way to Build and Manage Sites with Rain for Drupal 9A Better Way to Build and Manage Sites with Rain for Drupal 9
A Better Way to Build and Manage Sites with Rain for Drupal 9Mediacurrent
 
Drupal Security: What You Need to Know
Drupal Security: What You Need to KnowDrupal Security: What You Need to Know
Drupal Security: What You Need to KnowMediacurrent
 
Leveraging Design Systems to Streamline Web Projects
Leveraging Design Systems to Streamline Web ProjectsLeveraging Design Systems to Streamline Web Projects
Leveraging Design Systems to Streamline Web ProjectsMediacurrent
 
Reimagining Your Higher Ed Web Strategy
Reimagining Your Higher Ed Web StrategyReimagining Your Higher Ed Web Strategy
Reimagining Your Higher Ed Web StrategyMediacurrent
 
How to Digitally Transform Higher Ed with Drupal
How to Digitally Transform Higher Ed with DrupalHow to Digitally Transform Higher Ed with Drupal
How to Digitally Transform Higher Ed with DrupalMediacurrent
 
Is my website accessible? Common mistakes (and how to fix them)
Is my website accessible? Common mistakes (and how to fix them)Is my website accessible? Common mistakes (and how to fix them)
Is my website accessible? Common mistakes (and how to fix them)Mediacurrent
 
Managing Images In Large Scale Drupal 8 & 9 Websites
Managing Images In Large Scale Drupal 8 & 9 WebsitesManaging Images In Large Scale Drupal 8 & 9 Websites
Managing Images In Large Scale Drupal 8 & 9 WebsitesMediacurrent
 
Paragraphs v Layout Builder - The Final Showdown
Paragraphs v Layout Builder - The Final ShowdownParagraphs v Layout Builder - The Final Showdown
Paragraphs v Layout Builder - The Final ShowdownMediacurrent
 
MagMutual.com: On the JAMStack with Gatsby and Drupal 8
 MagMutual.com: On the JAMStack with Gatsby and Drupal 8 MagMutual.com: On the JAMStack with Gatsby and Drupal 8
MagMutual.com: On the JAMStack with Gatsby and Drupal 8Mediacurrent
 
Creating an Organizational Culture of Giving Back to Drupal
Creating an Organizational Culture of Giving Back to DrupalCreating an Organizational Culture of Giving Back to Drupal
Creating an Organizational Culture of Giving Back to DrupalMediacurrent
 
Level Up Your Team: Front-End Development Best Practices
Level Up Your Team: Front-End Development Best PracticesLevel Up Your Team: Front-End Development Best Practices
Level Up Your Team: Front-End Development Best PracticesMediacurrent
 
Best Practices for Moving to Drupal 9
Best Practices for Moving to Drupal 9Best Practices for Moving to Drupal 9
Best Practices for Moving to Drupal 9Mediacurrent
 
How to Prove Marketing ROI: Overcoming Digital Marketing Challenges
How to Prove Marketing ROI: Overcoming Digital Marketing ChallengesHow to Prove Marketing ROI: Overcoming Digital Marketing Challenges
How to Prove Marketing ROI: Overcoming Digital Marketing ChallengesMediacurrent
 
Prepare Your Drupal 9 Action Plan
Prepare Your Drupal 9 Action Plan Prepare Your Drupal 9 Action Plan
Prepare Your Drupal 9 Action Plan Mediacurrent
 

More from Mediacurrent (20)

Penn State News: Pivoting to Decoupled Drupal with Gatsby
Penn State News: Pivoting to Decoupled Drupal with GatsbyPenn State News: Pivoting to Decoupled Drupal with Gatsby
Penn State News: Pivoting to Decoupled Drupal with Gatsby
 
Evolving How We Measure Digital Success in Higher Ed
Evolving How We Measure Digital Success in Higher EdEvolving How We Measure Digital Success in Higher Ed
Evolving How We Measure Digital Success in Higher Ed
 
Penn State scales static Drupal to new heights
Penn State scales static Drupal to new heightsPenn State scales static Drupal to new heights
Penn State scales static Drupal to new heights
 
Delivering Meaningful Digital Experiences in Higher Ed
Delivering Meaningful Digital Experiences in Higher EdDelivering Meaningful Digital Experiences in Higher Ed
Delivering Meaningful Digital Experiences in Higher Ed
 
Content Strategy: Building Connections with Your Audience
Content Strategy: Building Connections with Your AudienceContent Strategy: Building Connections with Your Audience
Content Strategy: Building Connections with Your Audience
 
Decoupled Drupal and Gatsby in the Real World
Decoupled Drupal and Gatsby in the Real WorldDecoupled Drupal and Gatsby in the Real World
Decoupled Drupal and Gatsby in the Real World
 
A Better Way to Build and Manage Sites with Rain for Drupal 9
A Better Way to Build and Manage Sites with Rain for Drupal 9A Better Way to Build and Manage Sites with Rain for Drupal 9
A Better Way to Build and Manage Sites with Rain for Drupal 9
 
Drupal Security: What You Need to Know
Drupal Security: What You Need to KnowDrupal Security: What You Need to Know
Drupal Security: What You Need to Know
 
Leveraging Design Systems to Streamline Web Projects
Leveraging Design Systems to Streamline Web ProjectsLeveraging Design Systems to Streamline Web Projects
Leveraging Design Systems to Streamline Web Projects
 
Reimagining Your Higher Ed Web Strategy
Reimagining Your Higher Ed Web StrategyReimagining Your Higher Ed Web Strategy
Reimagining Your Higher Ed Web Strategy
 
How to Digitally Transform Higher Ed with Drupal
How to Digitally Transform Higher Ed with DrupalHow to Digitally Transform Higher Ed with Drupal
How to Digitally Transform Higher Ed with Drupal
 
Is my website accessible? Common mistakes (and how to fix them)
Is my website accessible? Common mistakes (and how to fix them)Is my website accessible? Common mistakes (and how to fix them)
Is my website accessible? Common mistakes (and how to fix them)
 
Managing Images In Large Scale Drupal 8 & 9 Websites
Managing Images In Large Scale Drupal 8 & 9 WebsitesManaging Images In Large Scale Drupal 8 & 9 Websites
Managing Images In Large Scale Drupal 8 & 9 Websites
 
Paragraphs v Layout Builder - The Final Showdown
Paragraphs v Layout Builder - The Final ShowdownParagraphs v Layout Builder - The Final Showdown
Paragraphs v Layout Builder - The Final Showdown
 
MagMutual.com: On the JAMStack with Gatsby and Drupal 8
 MagMutual.com: On the JAMStack with Gatsby and Drupal 8 MagMutual.com: On the JAMStack with Gatsby and Drupal 8
MagMutual.com: On the JAMStack with Gatsby and Drupal 8
 
Creating an Organizational Culture of Giving Back to Drupal
Creating an Organizational Culture of Giving Back to DrupalCreating an Organizational Culture of Giving Back to Drupal
Creating an Organizational Culture of Giving Back to Drupal
 
Level Up Your Team: Front-End Development Best Practices
Level Up Your Team: Front-End Development Best PracticesLevel Up Your Team: Front-End Development Best Practices
Level Up Your Team: Front-End Development Best Practices
 
Best Practices for Moving to Drupal 9
Best Practices for Moving to Drupal 9Best Practices for Moving to Drupal 9
Best Practices for Moving to Drupal 9
 
How to Prove Marketing ROI: Overcoming Digital Marketing Challenges
How to Prove Marketing ROI: Overcoming Digital Marketing ChallengesHow to Prove Marketing ROI: Overcoming Digital Marketing Challenges
How to Prove Marketing ROI: Overcoming Digital Marketing Challenges
 
Prepare Your Drupal 9 Action Plan
Prepare Your Drupal 9 Action Plan Prepare Your Drupal 9 Action Plan
Prepare Your Drupal 9 Action Plan
 

Recently uploaded

Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 

Recently uploaded (20)

Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 

HTML5 & CSS3 in Drupal (on the Bayou)

  • 1. Beginner & Intermediate Guide to HTML5/CSS3 In Drupal By Kendall Totten @starryeyez024 #HTML5CSS3 http://t.co/VssZle71 Thursday, December 8, 2011 1
  • 3. BROUGHT TO YOU BY THE GOOD FOLKS AT DO DRUPAL RIGHT Thursday, December 8, 2011 2
  • 4. About Me • Bachelors in Communication Technology & Graphic Design from Eastern Michigan University • Drupal Designer & Theme Specialist at Mediacurrent • Working in the Drupal space for about 3 years • Working with Drupal since version 5 Kendall Totten Thursday, December 8, 2011 3
  • 5. About Me • Bachelors in Communication Technology & Graphic Design from Eastern Michigan University • Drupal Designer & Theme Specialist at Mediacurrent • Working in the Drupal space for about 3 years • Working with Drupal since version 5 Kendall Totten Thursday, December 8, 2011 3
  • 6. What will you learn? Thursday, December 8, 2011 4
  • 7. What will you learn? HTML5 CSS3 • Semantic Web • Text in Columns • Microformats • Transitions  • Real Life applications • CSS3Pie • Tactics to enhance • Using SVG compatibility  • The future of CSS • Enhance UX  • How CSS3 can help you • Semantic image captions design for mobile • The Omega Theme • HTML5 Themes and Modules • How to start using HTML5 Today! Thursday, December 8, 2011 4
  • 9. What is HTML5? Thursday, December 8, 2011 5
  • 13. Web HTML 4.01 Flash Help Browser Support Plugins Thursday, December 8, 2011 6
  • 14. Web HTML5 HTML 4.01 Flash Help Browser Support Plugins Thursday, December 8, 2011 6
  • 15. Next generation of HTML The latest version of HTML known as HTML5, a set of capabilities that gives web designers and developers the ability to create the next generation of great online applications. “Upgrading” to HTML5 can be as simple as changing your doctype.   <!DOCTYPE html> and resetting your stylesheet: http://html5doctor.com html-5-reset-stylesheet Thursday, December 8, 2011 7
  • 16. A Better Blend Thursday, December 8, 2011 8
  • 17. A Better Blend HTML5 CSS3 JS Thursday, December 8, 2011 8
  • 20. From Dries "I believe in HTML5 enough that I wanted to make it one of the top 5 initiatives for Drupal 8; and switch Drupal's default doctype from XHTML to HTML5. This is the fifth official Drupal 8 initiative after the Configuration Management, Design,Web Services and Multilingual initiatives." — Dries Buytaert Thursday, December 8, 2011 10
  • 21. HTML5 Fallout • Change Doctype • Start using Outliner • Use Header, Section, Footer, and Nav Tags • Start thinking about Semantics Markup Thursday, December 8, 2011 11
  • 22. HTML5 Fallout • Change Doctype • Start using Outliner • Use Header, Section, Footer, and Nav Tags • Start thinking about Semantics Markup Thursday, December 8, 2011 11
  • 24. HTML5 Elements Head Sections Grouping Tables doctype body p table html article hr caption head nav pre thead title blockquote tbody aside base ol tfoot section ul tr link meta header li th style footer dl, dt, dd td script h1-h6 figure col noscript hgroup figcaption colgroup address div Thursday, December 8, 2011 12
  • 28. HTML5 Elements Forms Embedded Text-level form img a var fieldset iframe em legend embed strong mark label object i, b bdi input param u bdo button video s ruby, rt, rp select audio small span datalist abbr br source optgroup q canvas cite Interactive option track dfn details textarea map sub, sup summary keygen area time command output code menu progress meter kbd Edits samp del, ins wbr Thursday, December 8, 2011 14
  • 30. HTML5 Semantics Thursday, December 8, 2011 15
  • 31. Getting information off the Internet is like taking a drink from a fire hydrant.  —Mitchell Kapor Thursday, December 8, 2011 16
  • 32. The Missing Link Thursday, December 8, 2011 17
  • 33. The Missing Link Thursday, December 8, 2011 17
  • 34. What is Semantic Web? "The Semantic Web is a web that is able to describe things in a way that computers can understand." Source: http://www.w3schools.com/semweb/default.asp Thursday, December 8, 2011 18
  • 35. Semantic Benefits By making the web understandable to machines: • Programs and web sites can exchange information • Search engines can return more relevant information in results • Data compilers can combine data from different datasets to find new and astounding things, like weather data or stock market info. Thursday, December 8, 2011 19
  • 36. Semantic Benefits By making the web understandable to machines: • Programs and web sites can exchange information • Search engines can return more relevant information in results • Data compilers can combine data from different datasets to find new and astounding things, like weather data or stock market info. I love Drupal. Thursday, December 8, 2011 19
  • 37. Semantic Benefits By making the web understandable to machines: • Programs and web sites can exchange information • Search engines can return more relevant information in results • Data compilers can combine data from different datasets to find new and astounding things, like weather data or stock market info. I love Drupal. Thursday, December 8, 2011 19
  • 39. HTML5 Structure Thursday, December 8, 2011 20
  • 41. HTML5 Structure <header> <nav> <section> <article> <aside> <article> <footer> Thursday, December 8, 2011 21
  • 42. <header> </hgroup> <article> <header> Wrong Way <h1>My best blog post</h1> </header> </article> OR <header> <hgroup> <h1>My best blog post</h1> </hgroup> <p>by Rich Clark</p> </header> Thursday, December 8, 2011 22
  • 43. <header></hgroup> <header> <hgroup>     <h1>The reality dysfunction</h1> <h2>Space is not the only void</h2> Right Way </hgroup> <p>By Richard Clark</p> <p><time datetime="2011-03-20"> March 20th, 2011</time></p> </header> <article> <header> <h1>Title of this article</h1> <p>By Richard Clark</p> </header> <p>...Lorem Ipsum dolor set amet...</p> </article> Thursday, December 8, 2011 23
  • 44. <section> <section id="wrapper"> <header> <h1>My super duper page</h1> </header> Wrong Way <section id="main"> Section Content </section> <section id="secondary"> Secondary Content </section> <section id="footer"> <footer> Footer Content </footer> </section> Thursday, December 8, 2011 24
  • 45. <section> <div id="wrapper"> <article> <header> <h1>Document Outlines</h1> Right Way Header Content </header> <section id="what-are-outlines"> <h2>What are document outlines?</h2> ...content </section> <section id="outlines-in-html4"> <h2>Outlines in HTML4</h2> ...content </section> </article> <footer> Footer Content </footer> </div> Thursday, December 8, 2011 25
  • 46. Use An Outliner Tool • Use to group content into logical category or sections • With very few exceptions, section should not be used if there is no natural heading for it. • Section should not be used like aside or nav containers just to position content • Check your work in a HTML5 Outliner Tool Thursday, December 8, 2011 26
  • 47. Outliner Output http://gsnedders.html5.org/outliner Thursday, December 8, 2011 27
  • 48. Quick Tip • “<body>” is already a wrapper and can be hacked to achieve some pretty remarkable layout and clean code! It can have a height, width, border, drop-shadow; you name it.  • HTML5 Does not require you to actually include the “<body>” tag. Thursday, December 8, 2011 28
  • 49. <nav> The following shouldnʼt be enclosed by <nav> • Pagination controls Wrong Way • Social links • Tags on a blog post • Categories on a blog post • Tertiary navigation • Fat footers Thursday, December 8, 2011 29
  • 50. Semantic Captions A caption is the definition of an image Use Figure to enclose the image and the Figure Caption, and use some CSS3 to add a nice slide in effect. http://css-tricks.com/examples/SlideinCaptions/ <figure>      <img src="yay.jpg" alt="">      <figcaption class="from-left">          yay!!!      </figcaption> </figure> Thursday, December 8, 2011 30
  • 51. Code Sample <figure>     <img src="/kookaburra.jpg" alt="Kooaburra">     <img src="/pelican.jpg" alt="Pelican stood on the beach">     <img src="/lorikeet.jpg" alt="Cheeky looking Rainbow Lorikeet">     <figcaption>Australian Birds. From left to right, Kookburra, Pelican         and Rainbow Lorikeet. Originals by         <a href="http://www.flickr.com/photos/rclark/">Richard Clark</a>      </figcaption> </figure> Thursday, December 8, 2011 31
  • 52. Code Sample <figure>     <img src="/kookaburra.jpg" alt="Kooaburra">     <img src="/pelican.jpg" alt="Pelican stood on the beach">     <img src="/lorikeet.jpg" alt="Cheeky looking Rainbow Lorikeet">     <figcaption>Australian Birds. From left to right, Kookburra, Pelican         and Rainbow Lorikeet. Originals by         <a href="http://www.flickr.com/photos/rclark/">Richard Clark</a>      </figcaption> </figure> Thursday, December 8, 2011 31
  • 54. Microdata vs. Microformats Thursday, December 8, 2011 32
  • 57. Microdata & Microformats • Your web pages have an underlying meaning that people understand when they read the web pages. • But search engines have a limited understanding of what is being discussed on those pages.  • Microdata is a set of tags, introduced with HTML5, that allows you to do this. http://schema.org Thursday, December 8, 2011 34
  • 58. Microdata & Microformats • Your web pages have an underlying meaning that people understand when they read the web pages. • But search engines have a limited understanding of what is being discussed on those pages.  • Microdata is a set of tags, introduced with HTML5, that allows you to do this. http://schema.org Thursday, December 8, 2011 34
  • 60. HTML5 & Microdata Thursday, December 8, 2011 35
  • 61. Microdata Global Attributes: • itemscope – Creates the Item and indicates that descendants of this element contain information about it. • itemprop – Indicates that its containing tag holds the value of the specified item property. The properties name and value context are described by the items vocabulary. • itemtype – A valid URL of a vocabulary that describes the item and its properties context. • itemid – Indicates a unique identifier of the item. • itemref – Properties that are not descendants of the element with the itemscope attribute can be associated with the item using this attribute. Provides a list of id's of elements with additional properties elsewhere in the document. Thursday, December 8, 2011 36
  • 62. Microdata <div itemscope itemtype="http://data-vocabulary.org/Event"> <a itemprop="url" href="http://www.example.com/events/spinaltap" > <span itemprop="summary" >Spinal Tap</span> </a> <img itemprop="photo" src="spinal_tap.jpg" /> <span itemprop="description" > After their highly-publicized search for a new drummer, Spinal Tap kicks off their latest comeback tour. </span> When: <time itemprop="startDate" datetime="2015-10-15T19:00-08:00"> Oct 15, 7:00PM </time>— <time itemprop="endDate" datetime="2015-10-15T19:00-08:00"> Oct 15, 9:00PM </time> Where: <span itemprop="location" itemscope itemtype="http://data-vocabulary.org/Organization"> <span itemprop="name" >Warfield Theatre</span> <span itemprop="ocality" >San Francisco</span> </div> http://schema.org/Event Thursday, December 8, 2011 37
  • 63. Microdata <div itemscope itemtype="http://data-vocabulary.org/Event"> <a itemprop="url" href="http://www.example.com/events/spinaltap" > <span itemprop="summary" >Spinal Tap</span> </a> <img itemprop="photo" src="spinal_tap.jpg" /> <span itemprop="description" > After their highly-publicized search for a new drummer, Spinal Tap kicks off their latest comeback tour. </span> When: <time itemprop="startDate" datetime="2015-10-15T19:00-08:00"> Oct 15, 7:00PM </time>— <time itemprop="endDate" datetime="2015-10-15T19:00-08:00"> Oct 15, 9:00PM </time> Where: <span itemprop="location" itemscope itemtype="http://data-vocabulary.org/Organization"> <span itemprop="name" >Warfield Theatre</span> <span itemprop="ocality" >San Francisco</span> </div> http://schema.org/Event Thursday, December 8, 2011 37
  • 64. Microdata Module Rich Snippets Testing Tool http://www.google.com/webmasters/tools/richsnippets Thursday, December 8, 2011 38
  • 65. Microdata Module Rich Snippets Testing Tool http://www.google.com/webmasters/tools/richsnippets Thursday, December 8, 2011 38
  • 67. HTML5 & Microformats Thursday, December 8, 2011 39
  • 68. Microformats • Used on web pages to describe a specific type of information —for example, a review, an event, a product, a business, or a person. • In general, microformats use the class attribute in HTML tags (often <span> or <div>) to assign brief and descriptive names to entities and their properties. Thursday, December 8, 2011 40
  • 69. Microformats • Used on web pages to describe a specific type of information —for example, a review, an event, a product, a business, or a person. • In general, microformats use the class attribute in HTML tags (often <span> or <div>) to assign brief and descriptive names to entities and their properties. Thursday, December 8, 2011 40
  • 70. Code Sample <div> <a href="http://www.example.com/events/spinaltap" class="url summary">Spinal Tap</a> <img src="spinal_tap.jpg" class="photo" /> <span class="description"> After their highly-publicized search for a new drummer, Spinal Tap kicks off their latest comeback tour with a San Francisco show. </span> When: <span class="dtstart"> Oct 15, 7:00PM<span class="value-title" title="2015-10-15T19:00-08:00"></span> <span class="dtend"> 9:00PM<span class="value-title" title="2015-10-15T21:00-08:00"></span> </span> Where: <div class="location vcard"> <span class="fn org">Warfield Theatre</span>, <span class="adr"> <span class="street-address">982 Market St</span>, <span class="locality">San Francisco</span>, <span class="region">CA</span> </span> <span class="geo"> <span class="latitude"> <span class="value-title" title="37.774929" ></span> </span> </span> </div> </div> Thursday, December 8, 2011 41
  • 71. hCard • hCard uses a class of fn (meaning Full Name) to identify a name. As is this case there’s no element surrounding my name, we can just use a span.  • <div class="bio vcard"> <h3>About the author</h3> <p><span class="fn">Kendall Totten</span> is a web developer... • At <a class="org" href="http://www.mediacurrent.com/"> Mediacurrent</a> she works on Drupal Theming and Front-End Development. Kendall keeps a <a class="url" href="http:// www.kendallsdesign.com/">personal weblog</a> covering web development issues and themes.</p> </div> Thursday, December 8, 2011 42
  • 74. Microformat Tools • Microformat biz card creator: http://microformats.org/code/hcard/creator • hReview Creator http://microformats.org/code/hreview/creator • hCalendar Creator http://microformats.org/code/hcalendar/creator Thursday, December 8, 2011 44
  • 76. HTML5 Themes Thursday, December 8, 2011 45
  • 77. Drupal Themes • AdaptiveTheme • Genesis • Omega • Gamma (Omega sub theme) • HTML5 Base • Beta (Omega sub theme) • Boron • Zentropy • Plink http://www.qemist.us/content/acquiacom-and-omega-theme-getting-down-brass-tacks Thursday, December 8, 2011 46
  • 78. Drupal Themes • AdaptiveTheme • Genesis • Omega • Gamma (Omega sub theme) • HTML5 Base • Beta (Omega sub theme) • Boron • Zentropy • Plink http://www.qemist.us/content/acquiacom-and-omega-theme-getting-down-brass-tacks Thursday, December 8, 2011 46
  • 79. The Winners Table http://www.digett.com/blog/06/29/2011/html5-base-starter-themes-drupal-7 Thursday, December 8, 2011 47
  • 80. The Winners Table http://www.digett.com/blog/06/29/2011/html5-base-starter-themes-drupal-7 Thursday, December 8, 2011 47
  • 81. Delta Module • Delta allows you, via the Context module to make duplicates of your theme settings (templates) for any context on your site. • This gives you the ability to use these templates as a reaction in Context. </awesomesauce> Thursday, December 8, 2011 48
  • 82. JS for your Theme • Modernizr - modernizr-1.6.min.js • Download from: http://www.modernizr.com/ • IE6 ping fix - dd_belatedpng.js • Download from: http://www.dillerdesign.com/experiment/ DD_belatedPNG/ • HTML5 Shim -html5.js (comes included with Omega!) • Download from: http://code.google.com/p/html5shim/ • Media-size responsive images - respond.js • Download from: https://github.com/scottjehl/Respond#readme Thursday, December 8, 2011 49
  • 84. HTML5 Modules Thursday, December 8, 2011 50
  • 85. Drupal Modules There are 26 HTML5 based modules for Drupal 6 and 22 for Drupal 7. Some of them are still in development. • HTML5 Tools (your secret weapon!) • Elements • Video - most popular HTML5 based module for both Drupal 6 and 7 • VideoJS • Media: Vimeo • Media: Archive • Aloha HTML5 Editor • Plupload Integration • MediaFront • JPlayer Thursday, December 8, 2011 51
  • 86. Drupal Modules There are 26 HTML5 based modules for Drupal 6 and 22 for Drupal 7. Some of them are still in development. • HTML5 Tools (your secret weapon!) • Elements • Video - most popular HTML5 based module for both Drupal 6 and 7 • VideoJS • Media: Vimeo • Media: Archive • Aloha HTML5 Editor • Plupload Integration • MediaFront • JPlayer Thursday, December 8, 2011 51
  • 87. Video Module Video module allows you to upload video in any format, play video in any format, transcode video to h246, Theora, VP8 using FFMPEG , automatically creates video thumbnails, use video thumbnails in video node teaser, Very reliable API for converting videos and auto thumbnailing, can be used as an all-in-one video solution for Drupal. http://drupal.org/project/video Thursday, December 8, 2011 52
  • 88. More HTML5 Tools Features you can find in the Drupal 7 version: • Support for the html5shiv plugin (for older browsers) • Support for the innershiv plugin • Support for Google Chrome Frame • Adds new elements for use in the Views module • Support for the html5 doctype with or without RDF. • Make new Elements available in the Views UI • Tons of other forms and markup changes. Thursday, December 8, 2011 53
  • 89. More HTML5 Tools Features you can find in the Drupal 7 version: • Support for the html5shiv plugin (for older browsers) • Support for the innershiv plugin • Support for Google Chrome Frame • Adds new elements for use in the Views module • Support for the html5 doctype with or without RDF. • Make new Elements available in the Views UI • Tons of other forms and markup changes. Thursday, December 8, 2011 53
  • 90. HTML5 Tools Module Override Drupal's Forms with HTML5 markup • Site information • Search block • Search form • User registration: url, email, telephone • Contact forms • Table select widget yoursite.com/admin/config/markup/html5-tools Thursday, December 8, 2011 54
  • 91. HTML5 Tools Module Simplify <HEAD> Markup • Simplify doctype and add html5shiv • Simplify style tags • Simplify javascript tags • Simplify meta tags • Add Google Chrome Frame headers • Adds the X-UA-Compatible: IE=Edge,chrome=1 headers for IE browsers. This will not prompt the user to install Google Chrome Frame, it will just use it if available. yoursite.com/admin/config/markup/html5-tools Thursday, December 8, 2011 55
  • 92. HTML5 Tools Module HTML5 Tools: Convert other variables • Alter publication date markup • If one of these is not working, it might be because your theme is overriding what is specified here. Themes always get the last say in how something is outputted. Check your theme's template.php file. yoursite.com/admin/config/markup/html5-tools Thursday, December 8, 2011 56
  • 94. Code Sample <meta http-equiv="X-UA-Compatible" content="chrome=1" /> <IfModule mod_setenvif.c> <IfModule mod_headers.c> BrowserMatch chromeframe gcf Header append X-UA-Compatible "chrome=1" env=gcf </IfModule> </IfModule> Thursday, December 8, 2011 58
  • 97. HTML5 & SVG Thursday, December 8, 2011 60
  • 98. SVG Scalable Vector Graphics (SVG) is a new graphics file format and Web development language based on XML. SVG enables Web developers and designers to create dynamically generated, high- quality graphics from real-time data with precise structural and visual control. http://svg-wow.org/camera/camera.xhtml Thursday, December 8, 2011 61
  • 99. SVG Scalable Vector Graphics (SVG) is a new graphics file format and Web development language based on XML. SVG enables Web developers and designers to create dynamically generated, high- quality graphics from real-time data with precise structural and visual control. http://svg-wow.org/camera/camera.xhtml Thursday, December 8, 2011 61
  • 100. SVG Benefits • Compatibility SVG is text based and works seamlessly with current Web technologies like HTML, GIF, JPEG, PNG, SMIL, ASP, JSP, and JavaScript. • Quality Graphics created in SVG can be scaled without loss of quality across various platforms and devices. SVG can be used on the Web, in print and even on portable devices while retaining full quality. http://www.w3schools.com/svg/tryit.asp?filename=trysvg_animatemotion2 Thursday, December 8, 2011 62
  • 101. SVG Links • Change stylesheets: http://svg-wow.org/alternate-stylesheet/ alternate-stylesheet.xhtml • Punchout: http://webtypographyforthelonely.com/punchout • Colinate: http://webtypographyforthelonely.com/coolinate • SVG JS helper: http://raphaeljs.com/ • http://svg-wow.org/ • http://svg-wow.org/camera/camera.xhtml Thursday, December 8, 2011 63
  • 102. SVG Links • Change stylesheets: http://svg-wow.org/alternate-stylesheet/ alternate-stylesheet.xhtml • Punchout: http://webtypographyforthelonely.com/punchout • Colinate: http://webtypographyforthelonely.com/coolinate • SVG JS helper: http://raphaeljs.com/ • http://svg-wow.org/ • http://svg-wow.org/camera/camera.xhtml Thursday, December 8, 2011 63
  • 103. HTML5 Links • http://diveintohtml5.org/ • http://html5doctor.com • http://code.google.com/p/html5shiv/ • http://www.google.com/chromeframe?prefersystemlevel=true • HTML5 Quick Reference Guide PDF: http://bit.ly/1WaBME • http://groups.drupal.org/html5 • http://html5gallery.com/ • http://code.google.com/chrome/chromeframe/ • http://html5test.com/ • http://www.smashingmagazine.com/2009/07/06/html-5-cheat-sheet-pdf/ • http://html5demos.com • http://woork.blogspot.com/2009/09/html-5-visual-cheat-sheet-by- woork.html • http://www.threestyles.com/tutorials/html5-rocks-my-socks-off/ Thursday, December 8, 2011 64
  • 105. Theme With CSS3 Thursday, December 8, 2011 65
  • 107. The Compatibility Battle Thursday, December 8, 2011 66
  • 108. CSS Warrior PIE (progressive internet explorer) makes Internet Explorer 6-9 capable of rendering several of the most useful CSS3 decoration features: • border-radius • box-shadow • border-image • multiple background images • linear-gradient as background image http://drupal.org/project/css3pie Thursday, December 8, 2011 67
  • 109. CSS Warrior PIE (progressive internet explorer) makes Internet Explorer 6-9 capable of rendering several of the most useful CSS3 decoration features: • border-radius • box-shadow • border-image • multiple background images • linear-gradient as background image http://drupal.org/project/css3pie Thursday, December 8, 2011 67
  • 110. Are We There Yet? http://caniuse.com Thursday, December 8, 2011 68
  • 111. Are We There Yet? http://caniuse.com Thursday, December 8, 2011 68
  • 113. Do Websites Look need to Exactlythe Same in Every Browser Thursday, December 8, 2011 69
  • 115. NO http://dowebsitesneedtolookexactlythesameineverybrowser.com/ Thursday, December 8, 2011 70
  • 116. Modernizr • Better yet, use Irish's modernizr, “an open source, MIT- licensed JavaScript library that detects (browser) support for many HTML5 & CSS3 features” (http://diveintohtml5.org/detect.html) • If you prefer, you can build your own modernizr script,choosing just the elements you want to use to keep your script small, download your customized library, and add it to the head of your theme's page template files with:<script src="(path-to)modernizr.min.js"></script> • In Drupal 6, this would be page.tpl.php and in Drupal 7, html.tpl.php. Read the full instructions here. Thursday, December 8, 2011 71
  • 117. Modernizr Features What does Modernizr do? • It will replace that class with the class “js” which allows you to know, in your CSS, whether or not JavaScript is enabled. <html class="js canvas canvastext no-geolocation rgba hsla multiplebgs borderimage borderradius boxshadow opacity cssanimations csscolumns cssgradients cssreflections csstransforms csstransforms3d csstransitions video audio localstorage sessionstorage no-webworkers no-applicationcache fontface"> http://www.alistapart.com/articles/taking-advantage-of-html5-and-css3-with-modernizr Thursday, December 8, 2011 72
  • 118. Modernizr Features • applicationCache • @font-face • border-image: • Geolocation API • border-radius: • hsla() • box-shadow: • HTML5 Audio • Canvas • HTML5 Video • Canvas Text • Input Attributes • CSS 2D Transforms • Input Types • CSS 3D Transforms • localStorage • CSS Animations • Multiple backgrounds • CSS Columns • opacity: • CSS Gradients • rgba() • CSS Reflections • sessionStorage • CSS Transitions • Web Workers Thursday, December 8, 2011 73
  • 119. Modernizr Features • applicationCache • @font-face • border-image: • Geolocation API • border-radius: • hsla() • box-shadow: • HTML5 Audio • Canvas • HTML5 Video • Canvas Text • Input Attributes • CSS 2D Transforms • Input Types • CSS 3D Transforms • localStorage • CSS Animations • Multiple backgrounds • CSS Columns • opacity: • CSS Gradients • rgba() • CSS Reflections • sessionStorage • CSS Transitions • Web Workers Thursday, December 8, 2011 73
  • 120. Modernizr Example .borderradius #content { border: 1px solid #141414; -webkit-border-radius: 12px; -moz-border-radius: 12px; border-radius: 12px; } .boxshadow #content { border: none; -webkit-box-shadow: #141414 3px 3px 6px; -moz-box-shadow: #141414 3px 3px 6px; box-shadow: #141414 3px 3px 6px; } http://css-tricks.com/6731-css-media-queries Thursday, December 8, 2011 74
  • 122. CSS3 Media Queries Thursday, December 8, 2011 75
  • 125. CSS Media Queries Thursday, December 8, 2011 77
  • 126. CSS Media Queries http://css-tricks.com/6731-css-media-queries Thursday, December 8, 2011 78
  • 127. CSS Media Queries http://css-tricks.com/6731-css-media-queries Thursday, December 8, 2011 78
  • 128. Code Sample <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Resolution Dependent Layout</title> <link rel="stylesheet" type="text/css" href="css/style.css"> <link rel="stylesheet" media="screen and (max-width: 700px)" href="css/narrow.css"> <link rel="stylesheet" media="screen and (min-width: 701px) and (max-width: 900px)" href="css/medium.css"> <link rel="stylesheet" media="screen and (min-width: 901px)" href="css/wide.css"> </head> <body> <div id="page-wrap">     <div id="header">Header</div>                  <div id="main-content">Content</div>                      <div id="secondary-one">Secondary</div>     <div id="secondary-two">Extra</div>                    </div>    </body> </html> http://css-tricks.com/6206-resolution-specific-stylesheets http://css-tricks.com/6731-css-media-queries Thursday, December 8, 2011 79
  • 129. Code Sample @media print { body { font-size: 10pt } } @media screen { body { font-size: 13px } } @media screen, print { body { line-height: 1.2 } } http://css-tricks.com/6206-resolution-specific-stylesheets http://css-tricks.com/6731-css-media-queries Thursday, December 8, 2011 80
  • 131. CSS3 Fonts Thursday, December 8, 2011 81
  • 132. CSS3 @Fonts • Import directly from the Google Webfonts API: @import url(http://fonts.googleapis.com/css?family=Alike+Angular); http://css-tricks.com/6731-css-media-queries Thursday, December 8, 2011 82
  • 133. CSS3 @Fonts • Hinting (for IE) • Font hinting is the use of instructions to adjust the display of an outline font so that it lines up with a rasterized grid. At small screen sizes, hinting is critical for producing clear, legible text for human readers. http://readableweb.com/font-hinting-explained-by-a-font-design-master/ Thursday, December 8, 2011 83
  • 135. CSS3 Backgrounds Thursday, December 8, 2011 84
  • 137. Tablecloth http://leaverou.me/css3patterns/#tartan Thursday, December 8, 2011 85
  • 139. Carbon Fiber http://leaverou.me/css3patterns/#carbon-fibre Thursday, December 8, 2011 86
  • 141. Tartan http://leaverou.me/css3patterns/#tartan Thursday, December 8, 2011 87
  • 142. Code Sample #tablecloth { background-color:white; background-image: linear-gradient(0, rgba(200,0,0,.5) 50%, transparent 50%), linear-gradient(rgba(200,0,0,.5) 50%, transparent 50%); background-size:50px 50px; } #carbon-fiber { radial-gradient(black 15%, transparent 16%) 0 0, radial-gradient(black 15%, transparent 16%) 8px 8px, radial-gradient(rgba(255,255,255,.1) 15%, transparent 20%) 0 1px, radial-gradient(rgba(255,255,255,.1) 15%, transparent 20%) 8px 9px; background-color:#282828; background-size:16px 16px; } #tartan { background-color: hsl(2, 57%, 40%); background-image: repeating-linear-gradient(transparent, transparent 50px, rgba(0,0,0,.4) 50px, rgba(0,0,0,.4) 53px, transparent 53px, transparent 63px, rgba(0,0,0,.4) 63px, rgba(0,0,0,.4) 66px, transparent 66px, transparent 116px, rgba(0,0,0,.5) 116px, rgba (0,0,0,.5) 166px, rgba(255,255,255,.2) 166px, rgba(255,255,255,.2) 169px, rgba(0,0,0,.5) 169px, rgba(0,0,0,.5) 179px, rgba(255,255,255,.2) 179px, rgba(255,255,255,.2) 182px, rgba(0,0,0,.5) 182px, rgba(0,0,0,.5) 232px, transparent 232px), repeating-linear-gradient(180deg, transparent, transparent 50px, rgba(0,0,0,.4) 50px, rgba(0,0,0,.4) 53px, transparent 53px, transparent 63px, rgba(0,0,0,.4) 63px, rgba(0,0,0,.4) 66px, transparent 66px, transparent 116px, rgba(0,0,0,.5) 116px, rgba(0,0,0,.5) 166px, rgba(255,255,255,.2) 166px, rgba(255,255,255,.2) 169px, rgba(0,0,0,.5) 169px, rgba(0,0,0,.5) 179px, rgba(255,255,255,.2) 179px, rgba(255,255,255,.2) 182px, rgba(0,0,0,.5) 182px, rgba(0,0,0,.5) 232px, transparent 232px),repeating-linear-gradient(-35deg, transparent, transparent 2px, rgba(0,0,0,.2) 2px, rgba(0,0,0,.2) 3px, transparent 3px, transparent 5px, rgba (0,0,0,.2) 5px); } http://css-tricks.com/6731-css-media-queries http://leaverou.me/css3patterns Thursday, December 8, 2011 88
  • 143. CSS Columns Lorem ipsum dolor sit Duis autem vel eum luptatum zzril delenit Investigationes amet, consectetuer iriure dolor in augue duis dolore te demonstraverunt adipiscing elit, sed hendrerit in vulputate feugait nulla facilisi. lectores legere me diam nonummy nibh velit esse molestie Nam liber tempor cum lius quod ii legunt euismod tincidunt ut consequat, vel illum soluta nobis eleifend saepius. laoreet dolore magna dolore eu feugiat nulla option congue nihil aliquam erat volutpat. facilisis at vero eros et imperdiet doming id Ut wisi enim ad minim accumsan et iusto quod mazim placerat veniam, quis nostrud odio dignissim qui facer possim assum. exerci tation blandit praesent  ullamcorper suscipit Typi non habent lobortis nisl ut aliquip Accumsan et iusto claritatem insitam; est ex ea commodo odio dignissim qui usus legentis in iis qui consequat. blandit praesent facit eorum claritatem. http://www.netmagazine.com/features/future-css-layouts http://www.makeuseof.com/dir/csstextwrap Thursday, December 8, 2011 89
  • 144. Code Sample .newspaper {     -webkit-columns: 100px 2; /* Safari and Chrome */     -moz-column-gap: 40px; /* Firefox */     -webkit-column-gap: 40px; /* Safari and Chrome */     columns: 200px 4; column-gap: 40px; } http://css-tricks.com/6731-css-media-queries Thursday, December 8, 2011 90
  • 145. CSS Layouts http://www.netmagazine.com/features/future-css-layouts http://www.makeuseof.com/dir/csstextwrap Thursday, December 8, 2011 91
  • 146. CSS Layouts http://www.netmagazine.com/features/future-css-layouts http://www.makeuseof.com/dir/csstextwrap Thursday, December 8, 2011 91
  • 147. CSS3 Links • http://adaptive-images.com/ • http://htmlref.labs.oreilly.com/beta/#elements • http://css3pie.com • http://www.modernizr.com • http://html5readiness.com/ • http://caniuse.com/ • http://html5doctor.com/how-to-get-html5-working-in-ie-and-firefox-2/ • http://css-tricks.com/ Thursday, December 8, 2011 92