Movatterモバイル変換


[0]ホーム

URL:


1,046 views

[amigos] HTML5 and CSS3

This document discusses HTML5 and CSS3 and whether they are ready for mainstream use. It provides an overview of the new HTML5 elements like <header>, <nav>, <section>, <article>, <aside>, and <footer>. It also covers HTML5 video and audio capabilities and supporting different video codecs. The document recommends tools for encoding video files into supported formats and discusses using text tracks for basic captioning support.

Embed presentation

#html5css3HTML5 and CSS3:Ready for Prime Time?Christopher SchmittChristopherSchmitt.comhttp://twitter.com/@teleject                               1
Christopher SchmittChristopherSchmitt.comhttp://twitter.com/@teleject                               2
http://e4h.tvChristopher SchmittChristopherSchmitt.comhttp://twitter.com/@teleject                                           3
DESIGN         4
5
6
7
8
9
10
11
12
DESIGNING ONLINE                   13
14
15
http://youtu.be/RPcqz3pXQ-w?t=7m42s                                      16
17
18
19
20
21
22
XHTML                      EveryoneTHINGS ARE GOOD         elseBETWEEN US, XHTML,RIGHT?I MEAN. WE GET ALONG WELL.AND WE BOTH LIKE STUFF.                 3                23                                 23
http://dev.opera.com/articles/view/mama-markup-validation-report/                               24                                                                    24
“THE ATTEMPT TO GET THE WORLD TO SWITCH TO XML,INCLUDING QUOTES AROUND   ATTRIBUTE VALUES AND SLASHES IN EMPTY TAGS AND  NAMESPACES ALL AT ONCE       DIDN’T WORK.” SIR TIM BERNERS-LEE            25                             25
http://www.flickr.com/photos/teleject/432030263/                       26                                                  26
27     27
28     28
29     29
WEB 2.0   30          30
31     31
BLUEPRINTS VS REALITY http://www.amazon.com/gp/product/0140139966                      32                                               32
“TAKE CARE   OF THE LUXURIES AND THE NECESSITIES WILL TAKE  CARE OF THEMSELVES.”FRANK LLOYD WRIGHT            33                             33
BUILDINGWITH HTML5    34             34
PAGE STRUCTURE      35                 35
DIV ID=“header”                   DIV ID=“nav”DIV ID=“section”                                  DIV ID=“sidecolumn”DIV ID=“article”              DIV ID=“footer”                        36                                                        36
<HEADER>             <NAV><SECTION>                       <ASIDE><ARTICLE>            <FOOTER>               37                                 37
ARTICLE VS ASIDE VS SECTION• Molly   Holzschlag, Opera standards evangelist, says:  • <section>    clarifies <div>  • <article>   'replaces' <div id="content">  • <aside>    'replaces' <div id="sidebar">• Chris Mills, Opera browser employee, plays it safe: http://boblet.tumblr.com/post/130610820/html5-structure1                                        38                                                            38
WHAT ABOUT THE DIVS?• Marc   Grabanski, jQuery and HTML5 guy: • “div   has no meaning whatsoever, so there is nothing semantic about divs”• Bruce   Lawson, Opera browser employee: • “Likeall semantic questions, it depends on the context. If your only   reason for wanting an element is to group stuff for styling, it's a div.”                                        39                                                                                39
<body> <header> <h1>Heading </h1> </header> <nav> <h3>Site Navigation</h3> <ul>...</ul> </nav> <section>  <article> <h3>Weblog Entry</h3>  </article> </section> <aside>  <p>You are reading "Chocolate Rain", an entry posted on <timedatetime="2009-03-05">5 March, 2009</time>, to the <a href="#">Mistycollection</a>. See other posts in <a href="#">this collection</a>.</p> </aside> <footer> <p>...</p> </footer></body>                                      40                                                                          40
41     41
42     42
<script type="text/javascript">document.createElement('header');document.createElement('nav');document.createElement('section');document.createElement('article');document.createElement('aside');document.createElement('footer');</script>              http://ejohn.org/blog/html5-shiv/                              43                                                  43
44     44
HTML5 VIDEO     45              45
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><title>Basic HTML5 Web Document Structure</title>   </head>   <body><h1>Video Example</h1><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/4GuKSqAg5xI&hl=en&fs=1"></param><paramname="allowFullScreen" value="true"></param><paramname="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/4GuKSqAg5xI&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true"width="425" height="344"></embed></object>   </body></html>                                 46                                                                      46
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><title>Basic HTML5 Web Document Structure</title> </head> <body><h1>Video Example</h1><video src="html5test.ogg" width="320" height="240" controls poster="html5testvideoposter.jpg"> <a href="html5testvideo.ogg">Download movie</a></video> </body></html>                                  47                                                      47
HTML5 VIDEO• WIDTH   and HEIGHT should be required, IMO, but movie plays anyway  based on the values in the video file itself.• Video  formats may have their own posterframe. The browser should use  that by default unless overridden by valid POSTER attribute value.• Text can be included within VIDEO element to allow user to download  video if their browser doesn’t support.• If   you want to give users control, use CONTROL attribute.                                       48                                                                          48
HTML5 VIDEO• Video   can start automatically if using the AUTOPLAY=”1” attribute and value.• Spec   provides for LOOP, AUTOBUFFER which also take a value of O or 1.• Codecs   support...                                      49                                                                            49
HTML5 VIDEO     “It would be helpful for interoperability if all browsers could  support the same codecs. However, there are no known codecsthat satisfy all the current players: we need a codec that is known to not require per-unit or per-distributor licensing, that is compatible    with the open source development model, that is of sufficient   quality as to be usable, and that is not an additional submarine  patent risk for large companies. This is an ongoing issue and this     section will be updated once more information is available.”  - http://www.whatwg.org/specs/web-apps/current-work/#video-                   and-audio-codecs-for-video-elements                                  50                                                                    50
CODECS• Ogg    (or “Vorbis”) • No     need to worry about patents• H.264 • Created     by the MPEG group • If   you have blu-ray disc player, you are using it• WebM •A     wrapper for the VP8 video and Ogg audio streams                                          51                                                          51
VIDEO CODEC SUPPORT         FF3.6+    S        Ch5+     Op10.6+   IE9Ogg        Y                  Y        YH.264              Y         Y*                YWebM    (W4.02+)            (Ch6+)     Y                       52                                                     52
http://firefogg.org/         53                      53
http://www.videolan.org/vlc/             54                               54
http://handbrake.fr/         55                       55
LESSONS LEARNED• Use VLC     or Firefogg to encode common movie files types to OGG• H.264    encoding? Use Handbrake• Ifyou are hot to trot for HTML5 Video, like, right now, check out Mark  Pilgrim’s tutorial:  http://diveintohtml5.org/video.html   • Good     primer:       http://dev.opera.com/articles/view/introduction-html5-video/                                         56                                                                           56
57     57
58     58
<script>   function playPause() {     var myVideo = document.getElementsByTagName('video')[0];     if (myVideo.paused)       myVideo.play();     else       myVideo.pause();   }   </script>                                    59                                                                   59
<input type=button onclick="playPause()" value="Play/Pause"tabindex="0" />                                60                                                              60
HTML5 VIDEO & CAPTIONS          61                         61
[Captioning] has been shown to improvereading skills among adults who are non-readers.http://www.ldonline.org/article/35793                     62                                           62
63     63
QUICK & DIRTYCAPTIONING      64                64
http://github.com/johnmcc/jCaps               65                                  65
66     66
67     67
SRT FILES• SRTfiles are text files used in video playback; therefore, they do not contain any video data.• Text     file containing subtitles used by various video playback programs; supported by DivX, DVD, and other video formats; • Includes the time each subtitle should be displayed followed by the   text of the subtitles. • Subtitle files are often named according to the language of the   subtitles, i.e. "moviename-eng.srt" for English and "moviename-   ger.srt" for German subtitles.                                   68                                                                         68
TRANSCRIPT-EN.SRT100:00:00,000 --> 00:00:6,000Allow me to introduce myself My name is Tay It's T-A-Y, T-A-Y to the Z200:00:06,000 --> 00:00:9,000This is the web and it's gonna murder your TV It was Chocolate Rain300:00:09,500 --> 00:00:11,500Wrote a song about that history Chocolate Rain400:00:12,000 --> 00:00:15,000Now I'm paid a hefty hefty fee Chocolate Rain                                      69                                                                         69
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.js"></script><script src="jquery.jcap.js"></script>                                        70                                                                             70
 <video id="myVid" width="400" src="cherry-chocolate-rain.ogv" autobuffer controls>  <track src="transcript-en.srt" type="text/srt" language="en"role="textaudesc"></track>  <track src="transcript-gr.srt" type="text/srt" language="gr"role="textaudesc"></track>  <p>Alternative text...</p></video>                                71                                                                 71
 <video id="myVid" width="400" src="cherry-chocolate-rain.ogv" autobuffercontrols>  <track src="transcript-en.srt" type="text/srt"language="en" role="textaudesc"></track>  <track src="transcript-gr.srt" type="text/srt"language="gr" role="textaudesc"></track>  <p>Alternative text...</p></video>                                    72                                                                            72
BUILDING WITH CSS3     73             73
~50 CSS3 Moduleshttp://www.w3.org/Style/CSS/current-work#CSS3                      74                                                74
WHERE IS              CSS3 COMING?• The    specification is divided into different chunks, modules • http://www.w3.org/Style/CSS/current-work  • Transformations  • Animations  • Media   Queries  • and   so on, and so on...  • at   a glacial pace ever towards yesterday                                75                                                     75
WHERE IS              CSS3 COMING?• The    specification is divided into different chunks, modules • http://www.w3.org/Style/CSS/current-work• The   specification is being written by W3C • http://www.w3.org/Style/CSS/                             76                                                     76
WHERE IS              CSS3 COMING?• The    specification is divided into different chunks, modules • http://www.w3.org/Style/CSS/current-work• The   specification is being written by W3C • http://www.w3.org/Style/CSS/• Browservendors (like Firefox, Safari, and Opera) are implementing their own versions of these unfinished standards • IE9     is “bringing the power of PC hardware and  Windows”                             77                                                         77
78     78
IMAGE MASKS     79              79
80     80
81     81
82     82
83     83
84     84
TEXT COLUMNS     85               85
86     86
TEXT COLUMNS<div id="column"><p>…<p><h2>…</h2><p>…<p><h2>…</h2><p>…<p></div>                    87                         87
TEXT COLUMNS#column { -moz-column-gap: 3em; -moz-column-width: 11em; -webkit-column-gap: 3em; -webkit-column-width: 11em; padding: 10px;}                     88                               88
TEXT COLUMNS#column { -moz-column-gap: 3em; -moz-column-width: 11em; -moz-column-rule: 1px solid #ccc; -webkit-column-gap: 3em; -webkit-column-width: 11em; -webkit-column-rule: 1px solid #ccc; padding: 10px;}                       89                                        89
LESSONS LEARNED• Proprietary   CSS extensions in Firefox and Safari.• JavaScriptsolution through a jQuery plugin: http://welcome.totheinter.net/2008/07/22/multi-column-layout-with- css-and-jquery/                                      90                                                                      90
COMPLEXANIMATING LINKS       91                  91
92     92
COMPLEX ANIMATED LINKS• Web  designer Faruk Ateş’s personal site (see http://farukat.es/) uses the transition property to change the color of the element. • As   well as the color, width, box shadow, text shadow, and opacity.                                     93                                                                           93
COMPLEX ANIMATED LINKS#web20 li a { text-shadow: rgba(0,0,0, 0) 1px 1px 2px;-moz-box-shadow: rgba(0,0,0, 0) 2px 2px 2px;-webkit-box-shadow: rgba(0,0,0, 0) 2px 2px 2px;-moz-border-radius-topright: 31px;-moz-border-radius-bottomright: 31px;-webkit-border-top-right-radius: 31px;-webkit-border-bottom-right-radius: 31px;-webkit-transition: background-color .25s ease,  color .5s ease,  width .2s ease-out,  -webkit-box-shadow .25s ease,  text-shadow .2s ease,  opacity .2s ease;}                              94                                                  94
BUILDINGWITH SANITY     95              95
96     96
97     97
98     98
http://incident57.com/codekit/             99                                 99
100      100
101      101
102      102
103      103
104      104
105      105
WHERE ISHTML & CSS  GOING             106
http://www.alwaysbetonjs.com             107                               107
108
109
110
111
112
113
http://www.sencha.com/blog/the-making-of-fastbook-an-html5-love-story/                                                                         114
115
116
117
118
http://alistapart.com/article/testing-websites-in-game-console-browsers                                                                          119
http://mediaqueri.es/                        120
// default, mobile-1st CSS rules devices gohere@media screen and (min-width: 480px) { ... }@media screen and (min-width: 600px) { ... }@media screen and (min-width: 768px) { ... }@media screen and (min-width: 910px) { ... }                                               121
122
123
124
125
126
127
128
129
130
131
132
THANK YOU!   Christopher Schmittschmitt@heatvision.comhttp://twitter.com/teleject             133                              133

Recommended

PDF
[edUiconf] HTML5 does all that… and i can haz cheeseburger? You bet!
PDF
HTML5 Design
KEY
HTML5 Video Player - HTML5 Dev Conf 2012
PDF
JS Days HTML5 Flash and the Battle for Faster Cat Videos
PDF
HTML5 multimedia - where we are, where we're going
PPT
Html5 vs Flash video
PDF
HTML5, Flash, and the Battle For Faster Cat Videos
PDF
Taking HTML5 video a step further
PDF
Html5, Native and Platform based Mobile Applications
PDF
Making the HTML5 Video element interactive
KEY
Video.js - How to build and HTML5 Video Player
PDF
Html5 Open Video Tutorial
PDF
JS Days Mobile Meow
PPTX
Getting Started with HTML5 in Tech Com (STC 2012)
PDF
Keypoints html5
KEY
Web Apps
PDF
5 Thing You're Not Doing, 4 Things You Should Stop Doing & 3 Things You Shoul...
PDF
Brave new world of HTML5 - Interlink Conference Vancouver 04.06.2011
PDF
Building an HTML5 Video Player
PDF
Whats New In Roller5
PPT
Vietnam Mobile Day 2013: How to build video streaming server in 15 mins
PPT
[Vietnam Mobile Day 2013] - How to build video streaming server in 15 minutes
PPTX
Automated ui-testing
PDF
[peachpit] Adaptive Images in Responsive Web Design
PPT
Building an HTML5 Video Player
PDF
JBoss Enterprise Maven Repository
PDF
audio, video and canvas in HTML5 - standards>next Manchester 29.09.2010
PDF
Enterprise Maven Repository BOF
PDF
Brand You Online
PPT
Importance of leadership for career development

More Related Content

PDF
[edUiconf] HTML5 does all that… and i can haz cheeseburger? You bet!
PDF
HTML5 Design
KEY
HTML5 Video Player - HTML5 Dev Conf 2012
PDF
JS Days HTML5 Flash and the Battle for Faster Cat Videos
PDF
HTML5 multimedia - where we are, where we're going
PPT
Html5 vs Flash video
PDF
HTML5, Flash, and the Battle For Faster Cat Videos
PDF
Taking HTML5 video a step further
[edUiconf] HTML5 does all that… and i can haz cheeseburger? You bet!
HTML5 Design
HTML5 Video Player - HTML5 Dev Conf 2012
JS Days HTML5 Flash and the Battle for Faster Cat Videos
HTML5 multimedia - where we are, where we're going
Html5 vs Flash video
HTML5, Flash, and the Battle For Faster Cat Videos
Taking HTML5 video a step further

What's hot

PDF
Html5, Native and Platform based Mobile Applications
PDF
Making the HTML5 Video element interactive
KEY
Video.js - How to build and HTML5 Video Player
PDF
Html5 Open Video Tutorial
PDF
JS Days Mobile Meow
PPTX
Getting Started with HTML5 in Tech Com (STC 2012)
PDF
Keypoints html5
KEY
Web Apps
PDF
5 Thing You're Not Doing, 4 Things You Should Stop Doing & 3 Things You Shoul...
PDF
Brave new world of HTML5 - Interlink Conference Vancouver 04.06.2011
PDF
Building an HTML5 Video Player
PDF
Whats New In Roller5
PPT
Vietnam Mobile Day 2013: How to build video streaming server in 15 mins
PPT
[Vietnam Mobile Day 2013] - How to build video streaming server in 15 minutes
PPTX
Automated ui-testing
PDF
[peachpit] Adaptive Images in Responsive Web Design
PPT
Building an HTML5 Video Player
PDF
JBoss Enterprise Maven Repository
PDF
audio, video and canvas in HTML5 - standards>next Manchester 29.09.2010
PDF
Enterprise Maven Repository BOF
Html5, Native and Platform based Mobile Applications
Making the HTML5 Video element interactive
Video.js - How to build and HTML5 Video Player
Html5 Open Video Tutorial
JS Days Mobile Meow
Getting Started with HTML5 in Tech Com (STC 2012)
Keypoints html5
Web Apps
5 Thing You're Not Doing, 4 Things You Should Stop Doing & 3 Things You Shoul...
Brave new world of HTML5 - Interlink Conference Vancouver 04.06.2011
Building an HTML5 Video Player
Whats New In Roller5
Vietnam Mobile Day 2013: How to build video streaming server in 15 mins
[Vietnam Mobile Day 2013] - How to build video streaming server in 15 minutes
Automated ui-testing
[peachpit] Adaptive Images in Responsive Web Design
Building an HTML5 Video Player
JBoss Enterprise Maven Repository
audio, video and canvas in HTML5 - standards>next Manchester 29.09.2010
Enterprise Maven Repository BOF

Viewers also liked

PDF
Brand You Online
PPT
Importance of leadership for career development
PDF
Brand You, Online
PDF
Digital Tsunami: Breaking News at Breakneck Speeds
PDF
Social Media Throughout The Product Lifecycle
PPTX
Mesh Conference on Influence
Brand You Online
Importance of leadership for career development
Brand You, Online
Digital Tsunami: Breaking News at Breakneck Speeds
Social Media Throughout The Product Lifecycle
Mesh Conference on Influence

Similar to [amigos] HTML5 and CSS3

KEY
Looking into HTML5 + CSS3
PDF
[In Control 2010] HTML5
PDF
HTML5 and Accessibility sitting in a tree
ZIP
Looking into HTML5
PDF
Html5 oslo-code-camp
PDF
Disruptive code
PDF
HTML5 Intoduction for Web Developers
PDF
WordCamp Thessaloniki2011 The NextWeb
PDF
[HEWEBAR 2012] Beyond Desktop Browsing (HTML5)
PDF
[PSU Web 2011] HTML5 Design
PDF
Word camp nextweb
PDF
[edUi] HTML5 Workshop
PDF
[heweb11] HTML5 Makeover
PDF
HTML5 kickstart - Brooklyn Beta workshop 21.10.2010
PPTX
PDF
Intro to html 5
KEY
HTML5: Markup Evolved
PPTX
Html 5
PDF
HTML5 and friends - JISC CETIS Conference 2010 Nottingham 15.11.2010
Looking into HTML5 + CSS3
[In Control 2010] HTML5
HTML5 and Accessibility sitting in a tree
Looking into HTML5
Html5 oslo-code-camp
Disruptive code
HTML5 Intoduction for Web Developers
WordCamp Thessaloniki2011 The NextWeb
[HEWEBAR 2012] Beyond Desktop Browsing (HTML5)
[PSU Web 2011] HTML5 Design
Word camp nextweb
[edUi] HTML5 Workshop
[heweb11] HTML5 Makeover
HTML5 kickstart - Brooklyn Beta workshop 21.10.2010
Intro to html 5
HTML5: Markup Evolved
Html 5
HTML5 and friends - JISC CETIS Conference 2010 Nottingham 15.11.2010

More from Christopher Schmitt

PDF
Keeping Colors from Killing Your Product
PDF
[funka] Adaptive Images in Responsive Web Design
PDF
[Austin WordPress Meetup] Adaptive Images in Responsive Web Design
PDF
[CSSDevConf] Adaptive Images in Responsive Web Design 2014
PDF
[rwdsummit] Adaptive Images in Responsive Web Design
PDF
[artifactconf] Github for People Who Don't Code
PDF
[cssdevconf] Adaptive Images in Responsive Web Design
PDF
[parisweb] Adaptive Images in Responsive Web Design
PDF
[jqconatx] Adaptive Images for Responsive Web Design
PDF
[wvbcn] Adaptive Images in Responsive Web Design
PDF
[drupalcampatx] Adaptive Images in Responsive Web Design
PDF
[refreshpitt] Adaptive Images in Responsive Web Design
PDF
[psuweb] Adaptive Images in Responsive Web Design
PDF
GitHub for People Who Don't Code
PDF
[wcatx] Adaptive Images in Responsive Web Design
PDF
[HEWEBFL] Adaptive Images in Responsive Web Design
PDF
[refreshaustin] Adaptive Images in Responsive Web Design
PDF
[sxsw2013] Extremely Compressed JPEGs
PDF
[html5tx] Adaptive Images in Responsive Web Design
PDF
[cssdevconf] Adaptive Images in RWD
Keeping Colors from Killing Your Product
[funka] Adaptive Images in Responsive Web Design
[Austin WordPress Meetup] Adaptive Images in Responsive Web Design
[CSSDevConf] Adaptive Images in Responsive Web Design 2014
[rwdsummit] Adaptive Images in Responsive Web Design
[artifactconf] Github for People Who Don't Code
[cssdevconf] Adaptive Images in Responsive Web Design
[parisweb] Adaptive Images in Responsive Web Design
[jqconatx] Adaptive Images for Responsive Web Design
[wvbcn] Adaptive Images in Responsive Web Design
[drupalcampatx] Adaptive Images in Responsive Web Design
[refreshpitt] Adaptive Images in Responsive Web Design
[psuweb] Adaptive Images in Responsive Web Design
GitHub for People Who Don't Code
[wcatx] Adaptive Images in Responsive Web Design
[HEWEBFL] Adaptive Images in Responsive Web Design
[refreshaustin] Adaptive Images in Responsive Web Design
[sxsw2013] Extremely Compressed JPEGs
[html5tx] Adaptive Images in Responsive Web Design
[cssdevconf] Adaptive Images in RWD

Recently uploaded

PDF
AI and Zero Trust: What it takes to do it right
PDF
Supercharge Your Copilot-Driven Collaboration with Microsoft 365 Agents SDK
PDF
Rustici Software: eLearning standards in the age of AI
PDF
Advanced SELinux Management - RHCSA (RH134).pdf
PPTX
Authority After Search: How AI Systems Reconstruct Trust, Expertise, and Legi...
PPTX
The Lex Wire Precedent: A Technical Standard for Machine-Mediated Authority ...
PDF
Mesh WiFi Router: The Smart Solution for Fast, Seamless, Whole-Home Internet
PDF
From DeFi POC to Production MVP - A 12-16 Week Blueprint.pdf
PDF
Why Many Smart Device Platforms Fail to Scale?
PDF
Post-Hackathon-Learnings-Maximizing-Impact-Beyond-the-Event.pdf
PDF
Computer-Based Training (CBT) The Backbone of Modern Technical & Defence Trai...
PPTX
2026 SCORM Troubleshooting Rustici + dominKnow.pptx
PDF
Title Installing Windows, Linux, MacOS.pdf
PPTX
Beyond the Algorithm: Designing Human-Centric Public Service with AI
PDF
ICT500 - CRITICAL AND CREATIVE THINKING FOR INFORMATION TECHNOLOGY SOLUTIONS:...
PDF
Safer’s Picks: The 5 FME Transformers You Didn’t Know You Needed
PDF
The Enterprise Web3 Landscape - a view from Kaleido based on the past 10 year...
PPTX
Career-Opportunities in Industrial Arts Grade 8 PPT Lesson 2
PDF
CI CD Observability, Metrics and DORA - Shifting Left and Cleaning Up! - Febr...
PDF
Startup Formation Collapses While Acquisition Activity Hits New High!
AI and Zero Trust: What it takes to do it right
Supercharge Your Copilot-Driven Collaboration with Microsoft 365 Agents SDK
Rustici Software: eLearning standards in the age of AI
Advanced SELinux Management - RHCSA (RH134).pdf
Authority After Search: How AI Systems Reconstruct Trust, Expertise, and Legi...
The Lex Wire Precedent: A Technical Standard for Machine-Mediated Authority ...
Mesh WiFi Router: The Smart Solution for Fast, Seamless, Whole-Home Internet
From DeFi POC to Production MVP - A 12-16 Week Blueprint.pdf
Why Many Smart Device Platforms Fail to Scale?
Post-Hackathon-Learnings-Maximizing-Impact-Beyond-the-Event.pdf
Computer-Based Training (CBT) The Backbone of Modern Technical & Defence Trai...
2026 SCORM Troubleshooting Rustici + dominKnow.pptx
Title Installing Windows, Linux, MacOS.pdf
Beyond the Algorithm: Designing Human-Centric Public Service with AI
ICT500 - CRITICAL AND CREATIVE THINKING FOR INFORMATION TECHNOLOGY SOLUTIONS:...
Safer’s Picks: The 5 FME Transformers You Didn’t Know You Needed
The Enterprise Web3 Landscape - a view from Kaleido based on the past 10 year...
Career-Opportunities in Industrial Arts Grade 8 PPT Lesson 2
CI CD Observability, Metrics and DORA - Shifting Left and Cleaning Up! - Febr...
Startup Formation Collapses While Acquisition Activity Hits New High!

[amigos] HTML5 and CSS3

  • 1.
    #html5css3HTML5 and CSS3:Readyfor Prime Time?Christopher SchmittChristopherSchmitt.comhttp://twitter.com/@teleject 1
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
    XHTML EveryoneTHINGS ARE GOOD elseBETWEEN US, XHTML,RIGHT?I MEAN. WE GET ALONG WELL.AND WE BOTH LIKE STUFF. 3 23 23
  • 24.
  • 25.
    “THE ATTEMPT TOGET THE WORLD TO SWITCH TO XML,INCLUDING QUOTES AROUND ATTRIBUTE VALUES AND SLASHES IN EMPTY TAGS AND NAMESPACES ALL AT ONCE DIDN’T WORK.” SIR TIM BERNERS-LEE 25 25
  • 26.
  • 27.
    27 27
  • 28.
    28 28
  • 29.
    29 29
  • 30.
    WEB 2.0 30 30
  • 31.
    31 31
  • 32.
    BLUEPRINTS VS REALITYhttp://www.amazon.com/gp/product/0140139966 32 32
  • 33.
    “TAKE CARE OF THE LUXURIES AND THE NECESSITIES WILL TAKE CARE OF THEMSELVES.”FRANK LLOYD WRIGHT 33 33
  • 34.
  • 35.
  • 36.
    DIV ID=“header” DIV ID=“nav”DIV ID=“section” DIV ID=“sidecolumn”DIV ID=“article” DIV ID=“footer” 36 36
  • 37.
    <HEADER> <NAV><SECTION> <ASIDE><ARTICLE> <FOOTER> 37 37
  • 38.
    ARTICLE VS ASIDEVS SECTION• Molly Holzschlag, Opera standards evangelist, says: • <section> clarifies <div> • <article> 'replaces' <div id="content"> • <aside> 'replaces' <div id="sidebar">• Chris Mills, Opera browser employee, plays it safe: http://boblet.tumblr.com/post/130610820/html5-structure1 38 38
  • 39.
    WHAT ABOUT THEDIVS?• Marc Grabanski, jQuery and HTML5 guy: • “div has no meaning whatsoever, so there is nothing semantic about divs”• Bruce Lawson, Opera browser employee: • “Likeall semantic questions, it depends on the context. If your only reason for wanting an element is to group stuff for styling, it's a div.” 39 39
  • 40.
    <body> <header> <h1>Heading</h1> </header> <nav> <h3>Site Navigation</h3> <ul>...</ul> </nav> <section> <article> <h3>Weblog Entry</h3> </article> </section> <aside> <p>You are reading "Chocolate Rain", an entry posted on <timedatetime="2009-03-05">5 March, 2009</time>, to the <a href="#">Mistycollection</a>. See other posts in <a href="#">this collection</a>.</p> </aside> <footer> <p>...</p> </footer></body> 40 40
  • 41.
    41 41
  • 42.
    42 42
  • 43.
  • 44.
    44 44
  • 45.
  • 46.
    <!DOCTYPE html><html lang="en"><head><metacharset="utf-8"><title>Basic HTML5 Web Document Structure</title> </head> <body><h1>Video Example</h1><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/4GuKSqAg5xI&hl=en&fs=1"></param><paramname="allowFullScreen" value="true"></param><paramname="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/4GuKSqAg5xI&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true"width="425" height="344"></embed></object> </body></html> 46 46
  • 47.
    <!DOCTYPE html><html lang="en"><head><metacharset="utf-8"><title>Basic HTML5 Web Document Structure</title> </head> <body><h1>Video Example</h1><video src="html5test.ogg" width="320" height="240" controls poster="html5testvideoposter.jpg"> <a href="html5testvideo.ogg">Download movie</a></video> </body></html> 47 47
  • 48.
    HTML5 VIDEO• WIDTH and HEIGHT should be required, IMO, but movie plays anyway based on the values in the video file itself.• Video formats may have their own posterframe. The browser should use that by default unless overridden by valid POSTER attribute value.• Text can be included within VIDEO element to allow user to download video if their browser doesn’t support.• If you want to give users control, use CONTROL attribute. 48 48
  • 49.
    HTML5 VIDEO• Video can start automatically if using the AUTOPLAY=”1” attribute and value.• Spec provides for LOOP, AUTOBUFFER which also take a value of O or 1.• Codecs support... 49 49
  • 50.
    HTML5 VIDEO “It would be helpful for interoperability if all browsers could support the same codecs. However, there are no known codecsthat satisfy all the current players: we need a codec that is known to not require per-unit or per-distributor licensing, that is compatible with the open source development model, that is of sufficient quality as to be usable, and that is not an additional submarine patent risk for large companies. This is an ongoing issue and this section will be updated once more information is available.” - http://www.whatwg.org/specs/web-apps/current-work/#video- and-audio-codecs-for-video-elements 50 50
  • 51.
    CODECS• Ogg (or “Vorbis”) • No need to worry about patents• H.264 • Created by the MPEG group • If you have blu-ray disc player, you are using it• WebM •A wrapper for the VP8 video and Ogg audio streams 51 51
  • 52.
    VIDEO CODEC SUPPORT FF3.6+ S Ch5+ Op10.6+ IE9Ogg Y Y YH.264 Y Y* YWebM (W4.02+) (Ch6+) Y 52 52
  • 53.
  • 54.
  • 55.
  • 56.
    LESSONS LEARNED• UseVLC or Firefogg to encode common movie files types to OGG• H.264 encoding? Use Handbrake• Ifyou are hot to trot for HTML5 Video, like, right now, check out Mark Pilgrim’s tutorial: http://diveintohtml5.org/video.html • Good primer: http://dev.opera.com/articles/view/introduction-html5-video/ 56 56
  • 57.
    57 57
  • 58.
    58 58
  • 59.
    <script>function playPause() { var myVideo = document.getElementsByTagName('video')[0]; if (myVideo.paused) myVideo.play(); else myVideo.pause(); } </script> 59 59
  • 60.
    <input type=button onclick="playPause()"value="Play/Pause"tabindex="0" /> 60 60
  • 61.
    HTML5 VIDEO &CAPTIONS 61 61
  • 62.
    [Captioning] has beenshown to improvereading skills among adults who are non-readers.http://www.ldonline.org/article/35793 62 62
  • 63.
    63 63
  • 64.
  • 65.
  • 66.
    66 66
  • 67.
    67 67
  • 68.
    SRT FILES• SRTfilesare text files used in video playback; therefore, they do not contain any video data.• Text file containing subtitles used by various video playback programs; supported by DivX, DVD, and other video formats; • Includes the time each subtitle should be displayed followed by the text of the subtitles. • Subtitle files are often named according to the language of the subtitles, i.e. "moviename-eng.srt" for English and "moviename- ger.srt" for German subtitles. 68 68
  • 69.
    TRANSCRIPT-EN.SRT100:00:00,000 --> 00:00:6,000Allowme to introduce myself My name is Tay It's T-A-Y, T-A-Y to the Z200:00:06,000 --> 00:00:9,000This is the web and it's gonna murder your TV It was Chocolate Rain300:00:09,500 --> 00:00:11,500Wrote a song about that history Chocolate Rain400:00:12,000 --> 00:00:15,000Now I'm paid a hefty hefty fee Chocolate Rain 69 69
  • 70.
  • 71.
     <video id="myVid" width="400"src="cherry-chocolate-rain.ogv" autobuffer controls>  <track src="transcript-en.srt" type="text/srt" language="en"role="textaudesc"></track>  <track src="transcript-gr.srt" type="text/srt" language="gr"role="textaudesc"></track>  <p>Alternative text...</p></video> 71 71
  • 72.
     <video id="myVid" width="400"src="cherry-chocolate-rain.ogv" autobuffercontrols>  <track src="transcript-en.srt" type="text/srt"language="en" role="textaudesc"></track>  <track src="transcript-gr.srt" type="text/srt"language="gr" role="textaudesc"></track>  <p>Alternative text...</p></video> 72 72
  • 73.
  • 74.
  • 75.
    WHERE IS CSS3 COMING?• The specification is divided into different chunks, modules • http://www.w3.org/Style/CSS/current-work • Transformations • Animations • Media Queries • and so on, and so on... • at a glacial pace ever towards yesterday 75 75
  • 76.
    WHERE IS CSS3 COMING?• The specification is divided into different chunks, modules • http://www.w3.org/Style/CSS/current-work• The specification is being written by W3C • http://www.w3.org/Style/CSS/ 76 76
  • 77.
    WHERE IS CSS3 COMING?• The specification is divided into different chunks, modules • http://www.w3.org/Style/CSS/current-work• The specification is being written by W3C • http://www.w3.org/Style/CSS/• Browservendors (like Firefox, Safari, and Opera) are implementing their own versions of these unfinished standards • IE9 is “bringing the power of PC hardware and Windows” 77 77
  • 78.
    78 78
  • 79.
  • 80.
    80 80
  • 81.
    81 81
  • 82.
    82 82
  • 83.
    83 83
  • 84.
    84 84
  • 85.
  • 86.
    86 86
  • 87.
  • 88.
    TEXT COLUMNS#column {-moz-column-gap: 3em; -moz-column-width: 11em; -webkit-column-gap: 3em; -webkit-column-width: 11em; padding: 10px;} 88 88
  • 89.
    TEXT COLUMNS#column {-moz-column-gap: 3em; -moz-column-width: 11em; -moz-column-rule: 1px solid #ccc; -webkit-column-gap: 3em; -webkit-column-width: 11em; -webkit-column-rule: 1px solid #ccc; padding: 10px;} 89 89
  • 90.
    LESSONS LEARNED• Proprietary CSS extensions in Firefox and Safari.• JavaScriptsolution through a jQuery plugin: http://welcome.totheinter.net/2008/07/22/multi-column-layout-with- css-and-jquery/ 90 90
  • 91.
  • 92.
    92 92
  • 93.
    COMPLEX ANIMATED LINKS•Web designer Faruk Ateş’s personal site (see http://farukat.es/) uses the transition property to change the color of the element. • As well as the color, width, box shadow, text shadow, and opacity. 93 93
  • 94.
    COMPLEX ANIMATED LINKS#web20li a { text-shadow: rgba(0,0,0, 0) 1px 1px 2px;-moz-box-shadow: rgba(0,0,0, 0) 2px 2px 2px;-webkit-box-shadow: rgba(0,0,0, 0) 2px 2px 2px;-moz-border-radius-topright: 31px;-moz-border-radius-bottomright: 31px;-webkit-border-top-right-radius: 31px;-webkit-border-bottom-right-radius: 31px;-webkit-transition: background-color .25s ease, color .5s ease, width .2s ease-out, -webkit-box-shadow .25s ease, text-shadow .2s ease, opacity .2s ease;} 94 94
  • 95.
  • 96.
    96 96
  • 97.
    97 97
  • 98.
    98 98
  • 99.
  • 100.
    100 100
  • 101.
    101 101
  • 102.
    102 102
  • 103.
    103 103
  • 104.
    104 104
  • 105.
    105 105
  • 106.
    WHERE ISHTML &CSS GOING 106
  • 107.
  • 108.
  • 109.
  • 110.
  • 111.
  • 112.
  • 113.
  • 114.
  • 115.
  • 116.
  • 117.
  • 118.
  • 119.
  • 120.
  • 121.
    // default, mobile-1stCSS rules devices gohere@media screen and (min-width: 480px) { ... }@media screen and (min-width: 600px) { ... }@media screen and (min-width: 768px) { ... }@media screen and (min-width: 910px) { ... } 121
  • 122.
  • 123.
  • 124.
  • 125.
  • 126.
  • 127.
  • 128.
  • 129.
  • 130.
  • 131.
  • 132.
  • 133.
    THANK YOU! Christopher Schmittschmitt@heatvision.comhttp://twitter.com/teleject 133 133

[8]ページ先頭

©2009-2026 Movatter.jp