SlideShare ist ein Scribd-Unternehmen logo
1 von 98
Downloaden Sie, um offline zu lesen
Beginner & Intermediate Guide
     to HTML5/CSS3 In Drupal
              By Kendall Totten (@starryeyez024)
                  & Danté Taylor (@thememaster)

                           Mediacurrent Consultants




 #drupalcampATL

                                                      1
BROUGHT TO YOU BY
THE GOOD FOLKS AT




    DO DRUPAL RIGHT



                       2
About Me
• Bachelor of Fine Arts in
   Graphic Design from
   Savannah College of Art &
   Design (SCAD)
• Creative Director at
   Mediacurrent
• Working in the web space for
   about 12 years
• Working with Drupal since
   version 4.7
• Favorite Drupal Install is
   WatchGMC.com                  Danté Taylor

                                                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

                                                 4
What will you learn?
HTML5
• Semantic Web             • What to look for in Drupal 8 
• Microformats             • Enhancing Adaptive Theme
• Form API                 • HTML5 Themes and
• Real Life applications     Modules
• Tactics to enhance
  compatibility            CSS3
• Enhance UX               • Text in Columns
• How HTML5 can help       • Transitions 
  you design for mobile    • CSS3Pie
• Semantic captions for    • Using SVG
  images                   • The future of CSS



                                                             5
What is
HTML5?

           6
Web                                 HTML5




                  HTML
                   4.01

      Flash
                Help
                          Browser
                          Support
      Plugins




                                            7
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


                                              8
A Better Blend

     HTML5   CSS3   JS




                         9
Who Cares?




             10
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




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




                         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


                                              13
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                             details
textarea
           track      dfn
           map        sub, sup     summary
keygen
           area       time         command
output
                      code         menu
progress
meter                 kbd
                                   Edits
                      samp         del, ins
                      wbr
                                                  14
http://html5doctor.com/wp-content/uploads/HTML5Doctor-sectioning-flowchart.pdf

                                                                                15
HTML5
Semantics

            16
Getting information off the Internet is
like taking a drink from a fire hydrant. 
                           —Mitchell Kapor




                                             17
The Missing Link




                   18
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



                                                           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.




                                                                   20
HTML5
Structure

            21
HTML5 Structure
            <header>
             <nav>

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

           <footer>



                                 22
<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>




                                               23
<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>


                                                        24
<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>




                                               25
<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>

                                                        26
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



                                                   27
Outliner Output
http://gsnedders.html5.org/outliner




                                      28
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.




                                                    29
<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




                                           30
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>




                                                  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>




                                                                          32
Microdata vs.
Microformats

                 33
34
Microdata & Microformats
• Microdata is similar to microformats, in that both extend
  markup to include machine-readable metadata that
  describes web content.
• As such, microdata has become the third contender in the
  "my semantic technology is better than yours" argument that
  has been waging among microformats and RDFa
  proponents.




                                                                35
HTML5 &
Microdata

            36
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.



                                                                                      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

                                                                                               38
Microdata Module




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

                                                          39
Microdata & Microdata
•   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




                              http://schema.org

                                                                            40
HTML5 &
Microformats

               41
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.




                                                                       42
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>



                                                                                                             43
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>


                                                                  44
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




                                                   45
HTML5
Themes

         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

                                                                                  47
The Winners Table




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


                                                                              48
Delta Module
• Delta allows you, via the Context module to make
  duplicates of your theme settings for any context on
  your site. This gives you the ability for alternative
  layouts as a reaction in Context... </
  awesomesauce>




                                                          49
JS for your Theme
•   modernizr-1.6.min.js
     •   Download from: http://www.modernizr.com/
•   dd_belatedpng.js (IE6 ping fix)
     •   Download from: http://www.dillerdesign.com/experiment/
         DD_belatedPNG/
•   html5.js (HTML5Shim)
     •   Download from: http://code.google.com/p/html5shim/
•   respond.js (media-size responsive images)
     •   Download from: https://github.com/scottjehl/Respond#readme




                                                                      50
HTML5
Modules

          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
•   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


                                                           52
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


                                                                              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.
•   Tons of other forms and markup changes.




                                                  54
HTML5 Tools Module
HTML5 Tools: Override Drupal's
Forms with their HTML5 Counterparts
•   Site information
•   Search block
•   Search form
•   User registration
•   Contact forms




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


                                                                      55
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


                                                                         56
HTML5 Tools Module
HTML5 Tools: Convert other variables
•   Alter publication date markup
•   Make new Elements available in the Views UI
•   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


                                                                          57
Google Chrome Frame




       http://www.youtube.com/watch?v=sjW0Bchdj-w


                                                    58
59
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>




                                                           60
Seamless Integration




                       61
HTML5 &
 SVG

          62
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



                                                          63
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



                                                                                   64
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




                                                                   65
HTML5 Links
•   http://diveintohtml5.org/
•   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://molly.com/html5/html5-0709.html
•   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/


                                                                         66
Theme With
CSS3
             67
The Compatibility Battle




                           68
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


                                                               69
Are We There Yet?




         http://caniuse.com


                              70
Do Websites
    need to
            Look
Exactlythe Same
 in Every
          Browser
                    71
NO
http://dowebsitesneedtolookexactlythesameineverybrowser.com/
                                                               72
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.




                                                                      73
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


                                                                                                  74
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




                                                   75
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


                                                                        76
CSS3
Media Queries

                77
78
CSS Media Queries




                    79
CSS Media Queries




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


                                                     80
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


                                                                                                                   81
CSS3
@Keyframes

             82
83
@Keyframe




      http://www.w3.org/TR/css3-animations/

                                              84
Code Sample
div.noc {                                                         @keyframes bounce {
   width:100px; height:100px; background:red;                        from {
   position:relative;                                                   top: 100px;
   animation:mymove 5s infinite;                                         animation-timing-function: ease-out;
   -moz-animation:mymove 5s infinite; /* Firefox */                   }
   -webkit-animation:mymove 5s infinite;                              25% {
   /* Safari and Chrome */                                              top: 50px;
  text-indent: -99999px;                                                animation-timing-function: ease-in;
}                                                                    }
@keyframes mymove {                                                  50% {
   from { top:0px; }                                                    top: 100px;
   to {left:200px;}                                                     animation-timing-function: ease-out;
}                                                                    }
@-moz-keyframes mymove /* Firefox */                                 75% {
{                                                                       top: 75px;
   from { top:0px; }                                                    animation-timing-function: ease-in;
   to { left:200px; }                                                }
}                                                                    to {
@-webkit-keyframes mymove /* Safari and Chrome */                       top: 100px;
{                                                                    }
   from { top:0px; }                                               }
   to { left:200px; }
}


                                   http://css-tricks.com/6731-css-media-queries
                                         http://www.w3.org/TR/css3-animations


                                                                                                               85
CSS3
Fonts

        86
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


                                                                       87
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/

                                                                                     88
CSS3
Backgrounds

              89
Tablecloth


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



                                           90
Carbon Fiber


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


                                                 91
Tartan


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


                                          92
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


                                                                                                                                                          93
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


                                                                                                        94
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


                                                                                  95
CSS Layouts




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


                                                             96
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/




                                                                          97
Thank You!

             98

Weitere ähnliche Inhalte

Was ist angesagt?

HTML5 표준 소개
HTML5 표준 소개HTML5 표준 소개
HTML5 표준 소개Chris
 
Advanced CSS Troubleshooting & Efficiency
Advanced CSS Troubleshooting & EfficiencyAdvanced CSS Troubleshooting & Efficiency
Advanced CSS Troubleshooting & EfficiencyDenise Jacobs
 
Easier and faster Plone theming with Deliverance and xdv
Easier and faster Plone theming with Deliverance and xdvEasier and faster Plone theming with Deliverance and xdv
Easier and faster Plone theming with Deliverance and xdvJazkarta, Inc.
 
Critical Rendering Path - Velocidade também é uma funcionalidade
Critical Rendering Path - Velocidade também é uma funcionalidadeCritical Rendering Path - Velocidade também é uma funcionalidade
Critical Rendering Path - Velocidade também é uma funcionalidadeJoao Lucas Santana
 
Understanding Webkit Rendering
Understanding Webkit RenderingUnderstanding Webkit Rendering
Understanding Webkit RenderingAriya Hidayat
 
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
 
Wordcamp Thessaloniki 2011 The Nextweb
Wordcamp Thessaloniki 2011 The NextwebWordcamp Thessaloniki 2011 The Nextweb
Wordcamp Thessaloniki 2011 The NextwebGeorge Kanellopoulos
 
Python - A Comprehensive Programming Language
Python - A Comprehensive Programming LanguagePython - A Comprehensive Programming Language
Python - A Comprehensive Programming LanguageTsungWei Hu
 
Gordian Knot Presentation (Help Network)
Gordian Knot Presentation (Help Network)Gordian Knot Presentation (Help Network)
Gordian Knot Presentation (Help Network)Jim Osowski
 
Entities 101: Understanding Data Structures in Drupal
Entities 101: Understanding Data Structures in DrupalEntities 101: Understanding Data Structures in Drupal
Entities 101: Understanding Data Structures in DrupalAcquia
 
HTML CSS JavaScript jQuery Training
HTML CSS JavaScript jQuery TrainingHTML CSS JavaScript jQuery Training
HTML CSS JavaScript jQuery Trainingubshreenath
 
How browser engines work?
How browser engines work?How browser engines work?
How browser engines work?haricot
 
Grok Drupal (7) Theming (presented at DrupalCon San Francisco)
Grok Drupal (7) Theming (presented at DrupalCon San Francisco)Grok Drupal (7) Theming (presented at DrupalCon San Francisco)
Grok Drupal (7) Theming (presented at DrupalCon San Francisco)Laura Scott
 
The Days of Web Standards "IA" 20070715
The Days of Web Standards "IA" 20070715The Days of Web Standards "IA" 20070715
The Days of Web Standards "IA" 20070715Takashi Sakamoto
 

Was ist angesagt? (20)

Html 5 and css 3
Html 5 and css 3Html 5 and css 3
Html 5 and css 3
 
HTML5 표준 소개
HTML5 표준 소개HTML5 표준 소개
HTML5 표준 소개
 
Advanced CSS Troubleshooting & Efficiency
Advanced CSS Troubleshooting & EfficiencyAdvanced CSS Troubleshooting & Efficiency
Advanced CSS Troubleshooting & Efficiency
 
Easier and faster Plone theming with Deliverance and xdv
Easier and faster Plone theming with Deliverance and xdvEasier and faster Plone theming with Deliverance and xdv
Easier and faster Plone theming with Deliverance and xdv
 
Critical Rendering Path - Velocidade também é uma funcionalidade
Critical Rendering Path - Velocidade também é uma funcionalidadeCritical Rendering Path - Velocidade também é uma funcionalidade
Critical Rendering Path - Velocidade também é uma funcionalidade
 
Understanding Webkit Rendering
Understanding Webkit RenderingUnderstanding Webkit Rendering
Understanding Webkit Rendering
 
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]
 
Wordcamp Thessaloniki 2011 The Nextweb
Wordcamp Thessaloniki 2011 The NextwebWordcamp Thessaloniki 2011 The Nextweb
Wordcamp Thessaloniki 2011 The Nextweb
 
Word camp nextweb
Word camp nextwebWord camp nextweb
Word camp nextweb
 
Python - A Comprehensive Programming Language
Python - A Comprehensive Programming LanguagePython - A Comprehensive Programming Language
Python - A Comprehensive Programming Language
 
Gordian Knot Presentation (Help Network)
Gordian Knot Presentation (Help Network)Gordian Knot Presentation (Help Network)
Gordian Knot Presentation (Help Network)
 
Entities 101: Understanding Data Structures in Drupal
Entities 101: Understanding Data Structures in DrupalEntities 101: Understanding Data Structures in Drupal
Entities 101: Understanding Data Structures in Drupal
 
Html5 tutorial
Html5 tutorialHtml5 tutorial
Html5 tutorial
 
Html5 - Tutorial
Html5 - TutorialHtml5 - Tutorial
Html5 - Tutorial
 
HTML CSS JavaScript jQuery Training
HTML CSS JavaScript jQuery TrainingHTML CSS JavaScript jQuery Training
HTML CSS JavaScript jQuery Training
 
How browser engines work?
How browser engines work?How browser engines work?
How browser engines work?
 
Intro to CSS3
Intro to CSS3Intro to CSS3
Intro to CSS3
 
Grok Drupal (7) Theming (presented at DrupalCon San Francisco)
Grok Drupal (7) Theming (presented at DrupalCon San Francisco)Grok Drupal (7) Theming (presented at DrupalCon San Francisco)
Grok Drupal (7) Theming (presented at DrupalCon San Francisco)
 
The Days of Web Standards "IA" 20070715
The Days of Web Standards "IA" 20070715The Days of Web Standards "IA" 20070715
The Days of Web Standards "IA" 20070715
 
Up to Speed on HTML 5 and CSS 3
Up to Speed on HTML 5 and CSS 3Up to Speed on HTML 5 and CSS 3
Up to Speed on HTML 5 and CSS 3
 

Andere mochten auch

Introduction to HTML5/CSS3 In Drupal 7
Introduction to HTML5/CSS3 In Drupal 7Introduction to HTML5/CSS3 In Drupal 7
Introduction to HTML5/CSS3 In Drupal 7Mediacurrent
 
HTML5/CSS3 @ Baidu
HTML5/CSS3 @ BaiduHTML5/CSS3 @ Baidu
HTML5/CSS3 @ BaiduZi Bin Cheah
 
谈一谈HTML5/CSS3 @ WebRebuild 2010
谈一谈HTML5/CSS3 @ WebRebuild 2010谈一谈HTML5/CSS3 @ WebRebuild 2010
谈一谈HTML5/CSS3 @ WebRebuild 2010Zi Bin Cheah
 
Codedarmor 2012 - 06/03 - HTML5, CSS3 et Javascript
Codedarmor 2012 - 06/03 - HTML5, CSS3 et JavascriptCodedarmor 2012 - 06/03 - HTML5, CSS3 et Javascript
Codedarmor 2012 - 06/03 - HTML5, CSS3 et Javascriptcodedarmor
 
HTML5 & CSS3 in Drupal (on the Bayou)
HTML5 & CSS3 in Drupal (on the Bayou)HTML5 & CSS3 in Drupal (on the Bayou)
HTML5 & CSS3 in Drupal (on the Bayou)Mediacurrent
 
HTML5 Tags and Elements Tutorial
HTML5 Tags and Elements TutorialHTML5 Tags and Elements Tutorial
HTML5 Tags and Elements TutorialProdigyView
 
HTML5 and CSS3 for Teachers
HTML5 and CSS3 for TeachersHTML5 and CSS3 for Teachers
HTML5 and CSS3 for TeachersJason Hando
 
Introduction to CSS3
Introduction to CSS3Introduction to CSS3
Introduction to CSS3Doris Chen
 
Les balises HTML
Les balises HTMLLes balises HTML
Les balises HTMLNeovov
 
HTML5, CSS3, and JavaScript
HTML5, CSS3, and JavaScriptHTML5, CSS3, and JavaScript
HTML5, CSS3, and JavaScriptZac Gordon
 
HTML5 and CSS3 Refresher
HTML5 and CSS3 RefresherHTML5 and CSS3 Refresher
HTML5 and CSS3 RefresherIvano Malavolta
 
Presentation about html5 css3
Presentation about html5 css3Presentation about html5 css3
Presentation about html5 css3Gopi A
 
Cours d'introduction aux HTML5 & CSS3
Cours d'introduction aux HTML5 & CSS3Cours d'introduction aux HTML5 & CSS3
Cours d'introduction aux HTML5 & CSS3Abel LIFAEFI MBULA
 
Présentation html5
Présentation html5Présentation html5
Présentation html5Kénium
 

Andere mochten auch (20)

Introduction to HTML5/CSS3 In Drupal 7
Introduction to HTML5/CSS3 In Drupal 7Introduction to HTML5/CSS3 In Drupal 7
Introduction to HTML5/CSS3 In Drupal 7
 
HTML5/CSS3 @ Baidu
HTML5/CSS3 @ BaiduHTML5/CSS3 @ Baidu
HTML5/CSS3 @ Baidu
 
Html5/CSS3
Html5/CSS3Html5/CSS3
Html5/CSS3
 
谈一谈HTML5/CSS3 @ WebRebuild 2010
谈一谈HTML5/CSS3 @ WebRebuild 2010谈一谈HTML5/CSS3 @ WebRebuild 2010
谈一谈HTML5/CSS3 @ WebRebuild 2010
 
NEPA BlogCon 2013 - HTML5/CSS3 for Bloggers
NEPA BlogCon 2013 -  HTML5/CSS3 for BloggersNEPA BlogCon 2013 -  HTML5/CSS3 for Bloggers
NEPA BlogCon 2013 - HTML5/CSS3 for Bloggers
 
Codedarmor 2012 - 06/03 - HTML5, CSS3 et Javascript
Codedarmor 2012 - 06/03 - HTML5, CSS3 et JavascriptCodedarmor 2012 - 06/03 - HTML5, CSS3 et Javascript
Codedarmor 2012 - 06/03 - HTML5, CSS3 et Javascript
 
HTML5 & CSS3 in Drupal (on the Bayou)
HTML5 & CSS3 in Drupal (on the Bayou)HTML5 & CSS3 in Drupal (on the Bayou)
HTML5 & CSS3 in Drupal (on the Bayou)
 
HTML5 Tags and Elements Tutorial
HTML5 Tags and Elements TutorialHTML5 Tags and Elements Tutorial
HTML5 Tags and Elements Tutorial
 
HTML5 and CSS3 for Teachers
HTML5 and CSS3 for TeachersHTML5 and CSS3 for Teachers
HTML5 and CSS3 for Teachers
 
Fastest css3 animations
Fastest css3 animations Fastest css3 animations
Fastest css3 animations
 
Introduction to CSS3
Introduction to CSS3Introduction to CSS3
Introduction to CSS3
 
Les balises HTML
Les balises HTMLLes balises HTML
Les balises HTML
 
HTML5, CSS3, and JavaScript
HTML5, CSS3, and JavaScriptHTML5, CSS3, and JavaScript
HTML5, CSS3, and JavaScript
 
New HTML5/CSS3 techniques
New HTML5/CSS3 techniquesNew HTML5/CSS3 techniques
New HTML5/CSS3 techniques
 
HTML5 and CSS3 Refresher
HTML5 and CSS3 RefresherHTML5 and CSS3 Refresher
HTML5 and CSS3 Refresher
 
Presentation about html5 css3
Presentation about html5 css3Presentation about html5 css3
Presentation about html5 css3
 
Fundamental CSS3
Fundamental CSS3Fundamental CSS3
Fundamental CSS3
 
Introduction to HTML5 & CSS3
Introduction to HTML5 & CSS3Introduction to HTML5 & CSS3
Introduction to HTML5 & CSS3
 
Cours d'introduction aux HTML5 & CSS3
Cours d'introduction aux HTML5 & CSS3Cours d'introduction aux HTML5 & CSS3
Cours d'introduction aux HTML5 & CSS3
 
Présentation html5
Présentation html5Présentation html5
Présentation html5
 

Ähnlich wie Beginner & Intermediate Guide to HTML5/CSS3 In Drupal

Front end full stack development module 1pptx
Front end full stack development module 1pptxFront end full stack development module 1pptx
Front end full stack development module 1pptxMaruthiPrasad96
 
HTML5, just another presentation :)
HTML5, just another presentation :)HTML5, just another presentation :)
HTML5, just another presentation :)François Massart
 
It is not HTML5. but ... / HTML5ではないサイトからHTML5を考える
It is not HTML5. but ... / HTML5ではないサイトからHTML5を考えるIt is not HTML5. but ... / HTML5ではないサイトからHTML5を考える
It is not HTML5. but ... / HTML5ではないサイトからHTML5を考えるSadaaki HIRAI
 
Progressive Prototyping w/HTML5, CSS3 and jQuery
Progressive Prototyping w/HTML5, CSS3 and jQueryProgressive Prototyping w/HTML5, CSS3 and jQuery
Progressive Prototyping w/HTML5, CSS3 and jQueryTodd Zaki Warfel
 
HTML Semantic Tags
HTML Semantic TagsHTML Semantic Tags
HTML Semantic TagsBruce Kyle
 
Drupal 8 - Build Week Update
Drupal 8 - Build Week UpdateDrupal 8 - Build Week Update
Drupal 8 - Build Week UpdateAngela Byron
 
Frontend for developers
Frontend for developersFrontend for developers
Frontend for developersHernan Mammana
 
Business of Front-end Web Development
Business of Front-end Web DevelopmentBusiness of Front-end Web Development
Business of Front-end Web DevelopmentRachel Andrew
 
Implementing a Symfony Based CMS in a Publishing Company
Implementing a Symfony Based CMS in a Publishing CompanyImplementing a Symfony Based CMS in a Publishing Company
Implementing a Symfony Based CMS in a Publishing CompanyMarcos Labad
 
WordCamp Greenville 2018 - Beware the Dark Side, or an Intro to Development
WordCamp Greenville 2018 - Beware the Dark Side, or an Intro to DevelopmentWordCamp Greenville 2018 - Beware the Dark Side, or an Intro to Development
WordCamp Greenville 2018 - Beware the Dark Side, or an Intro to DevelopmentEvan Mullins
 
Fii Practic Frontend BeeNear - laborator 1
Fii Practic Frontend BeeNear - laborator 1Fii Practic Frontend BeeNear - laborator 1
Fii Practic Frontend BeeNear - laborator 1BeeNear
 
Sitecore Experience Accelerator (SxA)
Sitecore Experience Accelerator (SxA)Sitecore Experience Accelerator (SxA)
Sitecore Experience Accelerator (SxA)Ruud van Falier
 
No Feature Solutions with SharePoint
No Feature Solutions with SharePointNo Feature Solutions with SharePoint
No Feature Solutions with SharePointmikehuguet
 
2022 HTML5: The future is now
2022 HTML5: The future is now2022 HTML5: The future is now
2022 HTML5: The future is nowGonzalo Cordero
 
Understanding the Web Page Layout
Understanding the Web Page LayoutUnderstanding the Web Page Layout
Understanding the Web Page LayoutJhaun Paul Enriquez
 
Top 10 Web and HTML5 Predictions for 2013
Top 10 Web and HTML5 Predictions for 2013Top 10 Web and HTML5 Predictions for 2013
Top 10 Web and HTML5 Predictions for 2013Jonathan Jeon
 
Code for Startup MVP (Ruby on Rails) Session 1
Code for Startup MVP (Ruby on Rails) Session 1Code for Startup MVP (Ruby on Rails) Session 1
Code for Startup MVP (Ruby on Rails) Session 1Henry S
 

Ähnlich wie Beginner & Intermediate Guide to HTML5/CSS3 In Drupal (20)

Front end full stack development module 1pptx
Front end full stack development module 1pptxFront end full stack development module 1pptx
Front end full stack development module 1pptx
 
[PSU Web 2011] HTML5 Design
[PSU Web 2011] HTML5 Design[PSU Web 2011] HTML5 Design
[PSU Web 2011] HTML5 Design
 
HTML5, just another presentation :)
HTML5, just another presentation :)HTML5, just another presentation :)
HTML5, just another presentation :)
 
Html,CSS & UI/UX design
Html,CSS & UI/UX designHtml,CSS & UI/UX design
Html,CSS & UI/UX design
 
It is not HTML5. but ... / HTML5ではないサイトからHTML5を考える
It is not HTML5. but ... / HTML5ではないサイトからHTML5を考えるIt is not HTML5. but ... / HTML5ではないサイトからHTML5を考える
It is not HTML5. but ... / HTML5ではないサイトからHTML5を考える
 
Progressive Prototyping w/HTML5, CSS3 and jQuery
Progressive Prototyping w/HTML5, CSS3 and jQueryProgressive Prototyping w/HTML5, CSS3 and jQuery
Progressive Prototyping w/HTML5, CSS3 and jQuery
 
HTML Semantic Tags
HTML Semantic TagsHTML Semantic Tags
HTML Semantic Tags
 
Drupal 8 - Build Week Update
Drupal 8 - Build Week UpdateDrupal 8 - Build Week Update
Drupal 8 - Build Week Update
 
Frontend for developers
Frontend for developersFrontend for developers
Frontend for developers
 
Business of Front-end Web Development
Business of Front-end Web DevelopmentBusiness of Front-end Web Development
Business of Front-end Web Development
 
Implementing a Symfony Based CMS in a Publishing Company
Implementing a Symfony Based CMS in a Publishing CompanyImplementing a Symfony Based CMS in a Publishing Company
Implementing a Symfony Based CMS in a Publishing Company
 
Html5
Html5Html5
Html5
 
WordCamp Greenville 2018 - Beware the Dark Side, or an Intro to Development
WordCamp Greenville 2018 - Beware the Dark Side, or an Intro to DevelopmentWordCamp Greenville 2018 - Beware the Dark Side, or an Intro to Development
WordCamp Greenville 2018 - Beware the Dark Side, or an Intro to Development
 
Fii Practic Frontend BeeNear - laborator 1
Fii Practic Frontend BeeNear - laborator 1Fii Practic Frontend BeeNear - laborator 1
Fii Practic Frontend BeeNear - laborator 1
 
Sitecore Experience Accelerator (SxA)
Sitecore Experience Accelerator (SxA)Sitecore Experience Accelerator (SxA)
Sitecore Experience Accelerator (SxA)
 
No Feature Solutions with SharePoint
No Feature Solutions with SharePointNo Feature Solutions with SharePoint
No Feature Solutions with SharePoint
 
2022 HTML5: The future is now
2022 HTML5: The future is now2022 HTML5: The future is now
2022 HTML5: The future is now
 
Understanding the Web Page Layout
Understanding the Web Page LayoutUnderstanding the Web Page Layout
Understanding the Web Page Layout
 
Top 10 Web and HTML5 Predictions for 2013
Top 10 Web and HTML5 Predictions for 2013Top 10 Web and HTML5 Predictions for 2013
Top 10 Web and HTML5 Predictions for 2013
 
Code for Startup MVP (Ruby on Rails) Session 1
Code for Startup MVP (Ruby on Rails) Session 1Code for Startup MVP (Ruby on Rails) Session 1
Code for Startup MVP (Ruby on Rails) Session 1
 

Mehr von 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
 

Mehr von 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
 

Kürzlich hochgeladen

Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
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
 
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
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
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
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DaySri Ambati
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
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
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
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
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
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
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 

Kürzlich hochgeladen (20)

Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
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
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
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
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
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
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
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
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
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
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 

Beginner & Intermediate Guide to HTML5/CSS3 In Drupal

  • 1. Beginner & Intermediate Guide to HTML5/CSS3 In Drupal By Kendall Totten (@starryeyez024) & Danté Taylor (@thememaster) Mediacurrent Consultants #drupalcampATL 1
  • 2. BROUGHT TO YOU BY THE GOOD FOLKS AT DO DRUPAL RIGHT 2
  • 3. About Me • Bachelor of Fine Arts in Graphic Design from Savannah College of Art & Design (SCAD) • Creative Director at Mediacurrent • Working in the web space for about 12 years • Working with Drupal since version 4.7 • Favorite Drupal Install is WatchGMC.com   Danté Taylor 3
  • 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 4
  • 5. What will you learn? HTML5 • Semantic Web • What to look for in Drupal 8  • Microformats • Enhancing Adaptive Theme • Form API • HTML5 Themes and • Real Life applications Modules • Tactics to enhance compatibility  CSS3 • Enhance UX  • Text in Columns • How HTML5 can help • Transitions  you design for mobile  • CSS3Pie • Semantic captions for • Using SVG images  • The future of CSS 5
  • 7. Web HTML5 HTML 4.01 Flash Help Browser Support Plugins 7
  • 8. 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 8
  • 9. A Better Blend HTML5 CSS3 JS 9
  • 11. 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 11
  • 12. HTML5 Fallout • Change Doctype • Start using Outliner • Use Header, Section, Footer, and Nav Tags • Start thinking about Semantics Markup 12
  • 13. 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 13
  • 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 details textarea track dfn map sub, sup summary keygen area time command output code menu progress meter kbd Edits samp del, ins wbr 14
  • 17. Getting information off the Internet is like taking a drink from a fire hydrant.  —Mitchell Kapor 17
  • 19. 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 19
  • 20. 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. 20
  • 22. HTML5 Structure <header> <nav> <section> <article> <aside> <article> <footer> 22
  • 23. <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> 23
  • 24. <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> 24
  • 25. <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> 25
  • 26. <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> 26
  • 27. 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 27
  • 29. 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. 29
  • 30. <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 30
  • 31. 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> 31
  • 32. 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> 32
  • 34. 34
  • 35. Microdata & Microformats • Microdata is similar to microformats, in that both extend markup to include machine-readable metadata that describes web content. • As such, microdata has become the third contender in the "my semantic technology is better than yours" argument that has been waging among microformats and RDFa proponents. 35
  • 37. 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. 37
  • 38. 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 38
  • 39. Microdata Module Rich Snippets Testing Tool http://www.google.com/webmasters/tools/richsnippets 39
  • 40. Microdata & Microdata • 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 http://schema.org 40
  • 42. 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. 42
  • 43. 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> 43
  • 44. 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> 44
  • 45. 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 45
  • 47. 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 47
  • 48. The Winners Table http://www.digett.com/blog/06/29/2011/html5-base-starter-themes-drupal-7 48
  • 49. Delta Module • Delta allows you, via the Context module to make duplicates of your theme settings for any context on your site. This gives you the ability for alternative layouts as a reaction in Context... </ awesomesauce> 49
  • 50. JS for your Theme • modernizr-1.6.min.js • Download from: http://www.modernizr.com/ • dd_belatedpng.js (IE6 ping fix) • Download from: http://www.dillerdesign.com/experiment/ DD_belatedPNG/ • html5.js (HTML5Shim) • Download from: http://code.google.com/p/html5shim/ • respond.js (media-size responsive images) • Download from: https://github.com/scottjehl/Respond#readme 50
  • 52. 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 • 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 52
  • 53. 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 53
  • 54. 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. • Tons of other forms and markup changes. 54
  • 55. HTML5 Tools Module HTML5 Tools: Override Drupal's Forms with their HTML5 Counterparts • Site information • Search block • Search form • User registration • Contact forms yoursite.com/admin/config/markup/html5-tools 55
  • 56. 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 56
  • 57. HTML5 Tools Module HTML5 Tools: Convert other variables • Alter publication date markup • Make new Elements available in the Views UI • 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 57
  • 58. Google Chrome Frame http://www.youtube.com/watch?v=sjW0Bchdj-w 58
  • 59. 59
  • 60. 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> 60
  • 63. 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 63
  • 64. 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 64
  • 65. 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 65
  • 66. HTML5 Links • http://diveintohtml5.org/ • 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://molly.com/html5/html5-0709.html • 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/ 66
  • 69. 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 69
  • 70. Are We There Yet? http://caniuse.com 70
  • 71. Do Websites need to Look Exactlythe Same in Every Browser 71
  • 73. 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. 73
  • 74. 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 74
  • 75. 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 75
  • 76. 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 76
  • 78. 78
  • 80. CSS Media Queries http://css-tricks.com/6731-css-media-queries 80
  • 81. 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 81
  • 83. 83
  • 84. @Keyframe http://www.w3.org/TR/css3-animations/ 84
  • 85. Code Sample div.noc { @keyframes bounce {    width:100px; height:100px; background:red; from {    position:relative;  top: 100px;    animation:mymove 5s infinite; animation-timing-function: ease-out;    -moz-animation:mymove 5s infinite; /* Firefox */ }    -webkit-animation:mymove 5s infinite;  25% {    /* Safari and Chrome */ top: 50px;   text-indent: -99999px; animation-timing-function: ease-in; } } @keyframes mymove { 50% {    from { top:0px; } top: 100px;    to {left:200px;} animation-timing-function: ease-out; } } @-moz-keyframes mymove /* Firefox */ 75% { { top: 75px;    from { top:0px; } animation-timing-function: ease-in;    to { left:200px; } } } to { @-webkit-keyframes mymove /* Safari and Chrome */ top: 100px; { }    from { top:0px; } }    to { left:200px; } } http://css-tricks.com/6731-css-media-queries http://www.w3.org/TR/css3-animations 85
  • 87. 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 87
  • 88. 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/ 88
  • 91. Carbon Fiber http://leaverou.me/css3patterns/#carbon-fibre 91
  • 93. 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 93
  • 94. 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 94
  • 95. 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 95
  • 96. CSS Layouts http://www.netmagazine.com/features/future-css-layouts http://www.makeuseof.com/dir/csstextwrap 96
  • 97. 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/ 97