Movatterモバイル変換


[0]ホーム

URL:


1,045 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

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

More Related Content

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

What's hot

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

Viewers also liked

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

Similar to [amigos] HTML5 and CSS3

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

More from Christopher Schmitt

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

Recently uploaded

PDF
Day 3 - Data and Application Security - 2nd Sight Lab Cloud Security Class
PDF
Unlocking the Power of Salesforce Architecture: Frameworks for Effective Solu...
PPTX
Cloud-and-AI-Platform-FY26-Partner-Playbook.pptx
PDF
Day 5 - Red Team + Blue Team in the Cloud - 2nd Sight Lab Cloud Security Class
PPTX
wob-report.pptxwob-report.pptxwob-report.pptx
DOCX
iRobot Post‑Mortem and Alternative Paths - Discussion Document for Boards and...
PPTX
Software Analysis &Design ethiopia chap-2.pptx
PPTX
Coded Agents – with UiPath SDK + LangGraph [Virtual Hands-on Workshop]
PDF
The major tech developments for 2026 by Pluralsight, a research and training ...
PDF
Internet_of_Things_IoT_for_Next_Generation_Smart_Systems_Utilizing.pdf
PDF
Session 1 - Solving Semi-Structured Documents with Document Understanding
PPT
software-security-intro in information security.ppt
PDF
Making Sense of Raster: From Bit Depth to Better Workflows
PDF
Energy Storage Landscape Clean Energy Ministerial
PDF
TrustArc Webinar - Looking Ahead: The 2026 Privacy Landscape
PPTX
Building Cyber Resilience for 2026: Best Practices for a Secure, AI-Driven Bu...
PPTX
From Backup to Resilience: How MSPs Are Preparing for 2026
 
PPTX
Chapter 3 Introduction to number system.pptx
PPTX
AI's Impact on Cybersecurity - Challenges and Opportunities
PDF
Six Shifts For 2026 (And The Next Six Years)
Day 3 - Data and Application Security - 2nd Sight Lab Cloud Security Class
Unlocking the Power of Salesforce Architecture: Frameworks for Effective Solu...
Cloud-and-AI-Platform-FY26-Partner-Playbook.pptx
Day 5 - Red Team + Blue Team in the Cloud - 2nd Sight Lab Cloud Security Class
wob-report.pptxwob-report.pptxwob-report.pptx
iRobot Post‑Mortem and Alternative Paths - Discussion Document for Boards and...
Software Analysis &Design ethiopia chap-2.pptx
Coded Agents – with UiPath SDK + LangGraph [Virtual Hands-on Workshop]
The major tech developments for 2026 by Pluralsight, a research and training ...
Internet_of_Things_IoT_for_Next_Generation_Smart_Systems_Utilizing.pdf
Session 1 - Solving Semi-Structured Documents with Document Understanding
software-security-intro in information security.ppt
Making Sense of Raster: From Bit Depth to Better Workflows
Energy Storage Landscape Clean Energy Ministerial
TrustArc Webinar - Looking Ahead: The 2026 Privacy Landscape
Building Cyber Resilience for 2026: Best Practices for a Secure, AI-Driven Bu...
From Backup to Resilience: How MSPs Are Preparing for 2026
 
Chapter 3 Introduction to number system.pptx
AI's Impact on Cybersecurity - Challenges and Opportunities
Six Shifts For 2026 (And The Next Six Years)

[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-2025 Movatter.jp