SlideShare una empresa de Scribd logo
1 de 67
Descargar para leer sin conexión
CSS3
UP TO SPEED ON
HTML5 &
REFRESH DC | M. JACKSON WILKINSON & JASON GARBER | JULY 16, 2009
</TITLE>
Sunday, July 19, 2009
THE INTRO
Sunday, July 19, 2009
M.JACKSONWILKINSONYour Humble Refresh DC Organizer
That’s
“Michael”
Sunday, July 19, 2009
Sunday, July 19, 2009
Sunday, July 19, 2009
JASONGARBERRefresh DC Organizer Emeritus
Sunday, July 19, 2009
Sunday, July 19, 2009
WEB STANDARDS
A Very Brief History of
Sunday, July 19, 2009
XHTML1
2001-2006
CSS2.1
Content Presentation
Sunday, July 19, 2009
WHATWG
2004-2007
Web Hypertext Application
Technology Working Group
Sunday, July 19, 2009
W3C
2007-PRESENT
World Wide Web
Consortium
Sunday, July 19, 2009
HTML5
2007-PRESENT
CSS3
Content Presentation
Sunday, July 19, 2009
HTML 5
The Content Layer:
Sunday, July 19, 2009
NEWELEMENTS
Sunday, July 19, 2009
structuralelements
BrowserSupport:structuralelements
Provides new semantic vocabulary
for parts of a page previously
served by DIVs with ID and Class
attributes.
IE requires some workarounds
using JavaScript to make these
elements work.
HEADER
ARTICLE
FOOTER
ASIDE
NAV
SECTION
Sunday, July 19, 2009
figure
BrowserSupport:figure
Allows for associating captions
with embedded content, including
videos, audio, pullquotes, or
images.
FIGURE
LEGEND
CONTENT (IMG, Q, VIDEO, ETC.)
Sunday, July 19, 2009
audio&video
BrowserSupport:audio&video
Allows for associating captions
with embedded content, including
videos, audio, or images.
Opera, Chrome, and Firefox all
support the Ogg Theora video
format natively, while Safari and
Chrome support H.264.
<video src="test.ogg" autoplay="autoplay"
controls="controls">
Your browser does not support the video
element. This could also include object and
embed codes for legacy browsers.
</video>
Sunday, July 19, 2009
OTHERELEMENTS
METER Contained content is a measurement, like length.
PROGRESS
TIME
COMMAND
DATAGRID
OUTPUT
RUBY
Contains current process toward a goal, like a percentage.
Time
Represents something a command a user may execute.
Represents data. Non-tabular or otherwise.
Displays the output of a program or process.
Allows input of rubi/ruby annotations for Asian languages.
Sunday, July 19, 2009
NEWFORM
CONTROLS
Sunday, July 19, 2009
FORMCONTROLS
DATETIME Allows input of a date and a time.
DATETIME-LOCAL
NUMBER
RANGE
EMAIL
URL
COLOR
Allows input of a date and a time, in local time.
Allows input of a number.
Input is verified to be within a range.
Confirms the input to be a valid email.
Ensures input is a valid URL.
Provides a mechanism for the user to input an RGB color.
Sunday, July 19, 2009
DOCSTRUCTURE
Sunday, July 19, 2009
HTML5doctype
BrowserSupport:HTML5doctype
The HTML 5 doctype is way
easier than any other doctype.
Evar.
Just type the parts you remember,
and you’ll probably be right.
<!DOCTYPE html>
Sunday, July 19, 2009
HTML5&XHTML5
BrowserSupport:HTML5doctype
HTML 5 supports the standard
HTML syntax (formerly SGML),
but also allows for an XML-based
variant XHTML5.
Since it’s XML, XHTML should
be served as application/xml or
application/xhtml+xml. Warning:
this means browsers freak if there’s
an error.
<html>
vs.
<html xmlns="http://
www.w3.org/1999/xhtml">
Sunday, July 19, 2009
Block-LevelLinks
BrowserSupport:Block-levelLinks
You can now wrap links around
block-level elements, rather than
having to create links around
every element inside the block
element.
This is useful for lists of articles
that include multiple elements,
callouts with a single action, etc.
<li>
<a href="page.html">
<img src="pic.jpg">
<h3>Title</h3>
<p>Text</p>
</a>
</li>
Sunday, July 19, 2009
NEWAPIs
Sunday, July 19, 2009
Drag&DropAPI
BrowserSupport:DragandDropAPI
Allows objects (images and links,
by default) to be dragged and then
dropped onto a target.
The target is enabled by canceling
the ‘dragover’ (for sane browsers)
or ‘dragenter’ (for IE) events for
the drop target. Then listen for a
‘drop’ event which contains a
‘dataTransfer’ object with info.
+
Sunday, July 19, 2009
getElementsByClassName
BrowserSupport:getElementsByClassName
Works just like getElementsById,
but selects an array of all elements
based on a shared class name.
No more varied custom functions
to make this happen, and
performance is significantly better.
Sunday, July 19, 2009
Cross-DocumentMessaging
BrowserSupport:Cross-DocMessaging
This allows non-hostile documents
on different domains to simply
communicate with each other.
The sending document can call
postMessage() on the window
object of the receiving document,
while the receiving document listens
for a ‘message’ event.
MAIN DOCUMENT
FOREIGN
IFRAME
Sunday, July 19, 2009
SimpleClientStorage
BrowserSupport:SimpleClientStorage
The sessionStorage DOM attribute
stores session data for a single
window, like cookies on crack.
The localStorage DOM attribute
allows each site to store megabytes
of data across sessions to improve
performance.
Both methods store only strings.
<input
type="checkbox"
onchange="
localStorage.insurance=checked
"
/>
Sunday, July 19, 2009
StructuredClientStorage
BrowserSupport:StructuredClientStorage
HTML 5’s Web Storage module
provides an SQL server within the
client, accessible using Javascript. It
uses fairly standard SQL queries
for both reading and writing.
There’s a lot to be explained about
the built-in SQL server, so go
check out the docs for more
information.
tx.executeSql(
‘SELECT * FROM Notes’,
[],
function(tx, rs) {
for(var i = 0;
i < rs.rows.length; i++) {
renderNote(rs.rows[i]);
}
Sunday, July 19, 2009
OfflineApplicationCaching
BrowserSupport:OfflineApplicationCaching
Allow the client to refer directly to
its cache, authoritatively, for
certain resources, even if the
browser is offline.
Resources listed in the “network”
section are never cached.
<html manifest=”/cache.manifest”>
CACHE MANIFEST
index.html
help.html
style/default.css
images/logo.png
images/backgound.png
NETWORK:
server.cgi
Sunday, July 19, 2009
Canvas
BrowserSupport:canvas
Provides an API for drawing
directly in the browser window,
using instructions that define
vector-based shapes and lines.
This allows SVG-like graphics to be
created on the fly in the browser,
with fallback content (like Flash?)
provided to legacy browsers.
<canvas id="canvas" width="150" height="150">
fallback content
</canvas>
function draw() {
var canvas = document.getElementById("canvas");
if (canvas.getContext) {
var ctx = canvas.getContext("2d");
ctx.fillStyle = "rgb(200,0,0)";
ctx.fillRect (10, 10, 55, 50);
ctx.fillStyle = "rgba(0, 0, 200, 0.5)";
ctx.fillRect (30, 30, 55, 50);
}
}
Sunday, July 19, 2009
CSS 3
The Presentation Layer:
Sunday, July 19, 2009
COLOR
Sunday, July 19, 2009
opacity
BrowserSupport:opacity
Adjusts the opacity of the selected
element’s presentation on screen.
Takes values between 0.0 (fully
transparent) and 1.0 (fully
opaque)
div { color: #f00; opacity: 1.0; }
div { color: #f00; opacity: 0.5; }
Sunday, July 19, 2009
RGBAColor
BrowserSupport:RGBAcolor
Like RGB color definitions, but
allows a fourth field, defining the
alpha value of the color being
applied.
Like opacity, the alpha value is
between 0.0 (fully transparent)
and 1.0 (fully opaque).
div { color: rgb(0,255,0); }
div { color: rgba(0,255,0,0.5); }
Sunday, July 19, 2009
HSL/AColor
BrowserSupport:HSL/Acolor
HSL color definitions accept three
arguments: hue is a degree on a
color wheel (0-360), saturation
is a percentage, and lightness is a
percentage.
HSLA is like HSL color, but
allows a fourth field, defining the
alpha value of the color being
applied. See RGBA.
div { color: hsl(240,50%,50%); }
div { color: hsla(240,50%,50%,0.5); }
Sunday, July 19, 2009
BACKGROUNDS
Sunday, July 19, 2009
background-size
BrowserSupport:background-size
Defines the size at which the
browser should display the specified
background image. Accepts all
normal size definitions as width
followed by height.
In shorthand, this appears after
background-position values.
div { background-size: 100px 65px; }
div { background-size: 400px 65px; }
Sunday, July 19, 2009
background: url(body-top.png) top left no-repeat,
url(body-bottom.png) bottom left no-repeat,
url(body-middle.png) left repeat-y;
background-image
BrowserSupport:background-image
Allows for multiple images to be
specified. The first image specified
is layered closest to the top of the
screen, and subsequent images are
layered beneath.
Sunday, July 19, 2009
BORDERS
Sunday, July 19, 2009
border: 5px solid #000;
border-color: #000 transparent transparent #000;
border-color
BrowserSupport:border-color
Allows for multiple border colors
to be specified, one pixel at a time.
The last specified color is repeated
if necessary.
This cannot be used in the border
shorthand syntax.
Sunday, July 19, 2009
border-image: url(button.png) 0 12 0 12 stretch
stretch;
border-image
BrowserSupport:border-image
Allows the border to be represented
by an image, by defining which
parts of the image should be used
for the edges, and which should be
repeated in the main part of the
element.
This is difficult to represent
completely, so go look it up.
border-image: url(border.png) 27 27 27 27 round
round;
Sunday, July 19, 2009
border-radius: 10px;
border-radius
BrowserSupport:border-radius
Curves the corners of the border
using the radius given, often in
pixels. This can be given to all
corners, or only to individual
corners as specified.
Firefox refers to individual corners
like “border-radius-topright”
while Safari (correctly) refers to it
as “border-top-right-radius”.
border-top-right-radius: 10px;
Sunday, July 19, 2009
box-shadow: 10px 10px 10px #333;
box-shadow
BrowserSupport:box-shadow
Creates a drop shadow beneath the
selected element.
The first argument is the horizontal
offset, the second is the vertical
offset, the third is the blur radius,
and the final argument is the color
to be used as the shadow.
Sunday, July 19, 2009
TEXT
Sunday, July 19, 2009
text-overflow: ellipsis;
text-overflow
BrowserSupport:text-overflow
If text overflows the available
space, the text-overflow property
defines what happens.
The value “ellipsis” appends an
ellipsis character at the overflow
point.
Lorem ipsum dolor sit amet, consectetur adipiscing
elit. Nam purus nunc, auctor et accumsan ut, aliquam
vel leo. Quisque dignissim tincidunt rhoncus. Duis
sed velit rutrum lorem rutrum faucibus. Nam tincidunt
eros at arcu vestibulum egestas. Donec fringilla,
turpis in auctor luctus, orci orci vestibulum lacus,
a tristique felis erat non diam. Morbi dolor massa,
elementum ac iaculis quis, iaculis sed neque. Aliquam
erat volutpat. Aliquam porttitor auctor massa sit
amet ultrices. Maecenas quis nunc nibh, sit amet
hendrerit leo. Donec a massa eget velit consectetur
fermentum aliquet et eros. Vestibulum volutpat, est
vitae dapibus congue, nibh augue vehicula lacutus es…
Sunday, July 19, 2009
text-shadow: 10px 10px 10px #333;
text-shadow
BrowserSupport:text-shadow
Creates a drop shadow beneath the
selected text.
The first argument is the horizontal
offset, the second is the vertical
offset, the third is the blur radius,
and the final argument is the color
to be used as the shadow. Multiple
shadow definitions may be
separated using commas.
This is sample text.
Sunday, July 19, 2009
column-width: 200px;
column-gap: 20px;
column-width&column-gap
BrowserSupport:column-width/column-gap
Breaks flowing text into multiple
columns, based on the width of the
container. Column width defines
the width of each column, and
column-gap defines the gap
between columns.
Column-count can be specified in
lieu of column-width.
Lorem ipsum dolor sit amet, consectetur
adipiscing elit. Nam purus nunc, auctor et
accumsan ut, aliquam vel leo. Quisque
dignissim tincidunt rhoncus. Duis sed velit
rutrum lorem rutrum faucibus. Nam tincidunt
eros at arcu vestibulum egestas. Donec
fringilla, turpis in auctor luctus, orci orci
vestibulum lacus, a tristique felis erat non
diam. Morbi dolor massa, elementum ac
iaculis quis, iaculis sed neque. Aliquam erat
volutpat. Aliquam porttitor auctor massa sit
amet ultrices. Maecenas quis nunc nibh, sit
amet hendrerit leo. Donec a massa eget velit
consectetur fermentum aliquet et eros.
Vestibulum volutpat, est vitae dapibus
congue, nibh augue vehicula lacus, vel
semper dolor odio in libero. Curabitur vitae
sem consequat purus fermentum tincidunt.
Donec vestibulum felis ut metus ultrices a
vulputate felis rhoncus eum ivolonortis
quisque dignissim tincidunt rhoncus. Duis sed
velit rutrum lorem rutrum faucibus. Nam
tincidunt eros at arcu vestibulum egestas.
Donec fringilla, turpis in auctor luctus, orci
orci vestibulum lacus, a tristique felis erat non
diam. Morbi dolor massa, elementum ac
iaculis quis, iaculis sed neque. Aliquam erat
volutpat. Aliquam porttitor auctor massa sit
amet ultrices. Maecenas quis nunc nibh, sit
amet hendrerit leo. Donec a massa eget velit
consectetur fermentum aliquet et eros.
Vestibulum volutpat, est vitae dapibus
congue, nibh augue vehicula lacus, vel
semper dolor odio in libero. Curabitur vitae
sem consequat purus fermentum tincidunt.
Donec vestibulum felis ut metus ultrices a
vulputate felis rhoncus eum ivolonortis
Sunday, July 19, 2009
@font-face {
font-family: Helvy;
src: local("Helvetica Neue Bold"),
local("HelveticaNeue-Bold"),
url(MgOpenModernaBold.ttf);
font-weight: bold;
}
p.specialFont { font-family: Helvy, sans-serif; }
@font-face
BrowserSupport:column-width/column-gap
Allows a font file to be associated
with a font name for later use in
font-family declarations.
IE supports only .eot Embedded
OpenType files, while the other
browsers support any TTF and
OTF font files.
Sunday, July 19, 2009
TRANSFORMATION
Sunday, July 19, 2009
rotate
BrowserSupport:rotate
Rotates the selected element at the
defined angle, defined in degrees.
The rotation doesn’t affect layout,
and elements that are transformed
are treated similarly to
position:relative.
transform: rotate(30deg);
Sunday, July 19, 2009
scale
BrowserSupport:scale
Scales the element in question
based on the specified unit-less
numbers given for the X and Y
axes. If only one number is given, it
is applied to both axes.
transform: scale(0.5,2.0);
Sunday, July 19, 2009
skew
BrowserSupport:scale
Skews the element around the X
and Y axes by the specified angles,
in degrees. If it’s only one number,
the Y axis is assumed to be zero. transform: skew(-30deg);
Sunday, July 19, 2009
translate
BrowserSupport:translate
Moves the object along each axis by
the length specified. The unit can
be anything accepted as a length in
CSS, such as px, em, percentages,
etc.
transform: translate(30px, 0);
Sunday, July 19, 2009
3DTRANSFORMATIONS
PERSPECTIVE The distance, in pixels, of the z=0 plane from the viewer.
MATRIX3D
ROTATE3D
SCALE3D
TRANSLATE3D
Allows creation of a 3d transformation matrix.
Rotate the matched element in three dimensions.
Performs a three-dimensional scale operation.
Allows the matched element to be moved along three axes.
Sunday, July 19, 2009
BROWSERPREFIXES
Sunday, July 19, 2009
FIREFOX:
SAFARI:
OPERA:
IE:
-moz-box-shadow:
-webkit-box-shadow:
-o-box-shadow:
-ms-box-shadow:
Sunday, July 19, 2009
READY YET?
When is it Time to Use These?
Sunday, July 19, 2009
THEFUTURE
Sunday, July 19, 2009
IMPLEMENTATION
trumps
SPECIFICATION
Sunday, July 19, 2009
PROGRESSFUL
DEGRAHANCEMENT™
Sunday, July 19, 2009
BUSINESSAND
USERGOALS
In the end, be mindful of
Sunday, July 19, 2009
CRITICISM
A Healthy Dose of
Sunday, July 19, 2009
MORERESOURCES
HTML5Doctor http://html5doctor.com/
HTML5Spec
ALAArticle
BruceLawson
YourPresenters
http://dev.w3.org/html5/spec/Overview.html
http://www.alistapart.com/articles/previewofhtml5
http://www.brucelawson.co.uk/category/
accessibility-web-standards/html5/
Feel free to follow up with Jackson & Jason
Sunday, July 19, 2009
FIN
Sunday, July 19, 2009
SpeakerRate: spkr8.com/t/1250
Get in Touch!
Twitter: @whafro & @jgarber
Sunday, July 19, 2009

Más contenido relacionado

Destacado

Giáo trình Flash CS5 và Action Script 3.0
Giáo trình Flash CS5 và Action Script 3.0Giáo trình Flash CS5 và Action Script 3.0
Giáo trình Flash CS5 và Action Script 3.0Kenny Nguyen
 
How to build an AOP framework in ActionScript
How to build an AOP framework in ActionScriptHow to build an AOP framework in ActionScript
How to build an AOP framework in ActionScriptChristophe Herreman
 
Html5 canvas lap trinh game 2 d v1.0
Html5 canvas lap trinh game 2 d v1.0Html5 canvas lap trinh game 2 d v1.0
Html5 canvas lap trinh game 2 d v1.0Nguyễn Tài Hải
 
Essential action script 3.0
Essential action script 3.0Essential action script 3.0
Essential action script 3.0UltimateCodeX
 
Action script for designers
Action script for designersAction script for designers
Action script for designersoyunbaga
 
Creative Programming in ActionScript 3.0
Creative Programming in ActionScript 3.0Creative Programming in ActionScript 3.0
Creative Programming in ActionScript 3.0Peter Elst
 
Lập trình hướng đối tượng trong Javascript và các kiểu mẫu thiết kế
Lập trình hướng đối tượng trong Javascript và các kiểu mẫu thiết kếLập trình hướng đối tượng trong Javascript và các kiểu mẫu thiết kế
Lập trình hướng đối tượng trong Javascript và các kiểu mẫu thiết kếNgo Trung
 
ActionScript 3.0 Fundamentals
ActionScript 3.0 FundamentalsActionScript 3.0 Fundamentals
ActionScript 3.0 FundamentalsSaurabh Narula
 
Giáo trình đọc hiểu bản vẽ cơ khí
Giáo trình đọc hiểu bản vẽ cơ khíGiáo trình đọc hiểu bản vẽ cơ khí
Giáo trình đọc hiểu bản vẽ cơ khíTrung tâm Advance Cad
 
Giáo trình học tiếng anh Student book 1
Giáo trình học tiếng anh Student book 1Giáo trình học tiếng anh Student book 1
Giáo trình học tiếng anh Student book 1Keziah Huong
 
Giáo trình giảng dạy Autocad 2016 cơ bản
Giáo trình giảng dạy Autocad 2016 cơ bảnGiáo trình giảng dạy Autocad 2016 cơ bản
Giáo trình giảng dạy Autocad 2016 cơ bảnTrung tâm Advance Cad
 
Giáo trình Robot Structural 2016 Tập 2
Giáo trình Robot Structural 2016 Tập 2Giáo trình Robot Structural 2016 Tập 2
Giáo trình Robot Structural 2016 Tập 2Huytraining
 

Destacado (13)

Giáo trình Flash CS5 và Action Script 3.0
Giáo trình Flash CS5 và Action Script 3.0Giáo trình Flash CS5 và Action Script 3.0
Giáo trình Flash CS5 và Action Script 3.0
 
Tài liệu HTML5-CSS3
Tài liệu HTML5-CSS3Tài liệu HTML5-CSS3
Tài liệu HTML5-CSS3
 
How to build an AOP framework in ActionScript
How to build an AOP framework in ActionScriptHow to build an AOP framework in ActionScript
How to build an AOP framework in ActionScript
 
Html5 canvas lap trinh game 2 d v1.0
Html5 canvas lap trinh game 2 d v1.0Html5 canvas lap trinh game 2 d v1.0
Html5 canvas lap trinh game 2 d v1.0
 
Essential action script 3.0
Essential action script 3.0Essential action script 3.0
Essential action script 3.0
 
Action script for designers
Action script for designersAction script for designers
Action script for designers
 
Creative Programming in ActionScript 3.0
Creative Programming in ActionScript 3.0Creative Programming in ActionScript 3.0
Creative Programming in ActionScript 3.0
 
Lập trình hướng đối tượng trong Javascript và các kiểu mẫu thiết kế
Lập trình hướng đối tượng trong Javascript và các kiểu mẫu thiết kếLập trình hướng đối tượng trong Javascript và các kiểu mẫu thiết kế
Lập trình hướng đối tượng trong Javascript và các kiểu mẫu thiết kế
 
ActionScript 3.0 Fundamentals
ActionScript 3.0 FundamentalsActionScript 3.0 Fundamentals
ActionScript 3.0 Fundamentals
 
Giáo trình đọc hiểu bản vẽ cơ khí
Giáo trình đọc hiểu bản vẽ cơ khíGiáo trình đọc hiểu bản vẽ cơ khí
Giáo trình đọc hiểu bản vẽ cơ khí
 
Giáo trình học tiếng anh Student book 1
Giáo trình học tiếng anh Student book 1Giáo trình học tiếng anh Student book 1
Giáo trình học tiếng anh Student book 1
 
Giáo trình giảng dạy Autocad 2016 cơ bản
Giáo trình giảng dạy Autocad 2016 cơ bảnGiáo trình giảng dạy Autocad 2016 cơ bản
Giáo trình giảng dạy Autocad 2016 cơ bản
 
Giáo trình Robot Structural 2016 Tập 2
Giáo trình Robot Structural 2016 Tập 2Giáo trình Robot Structural 2016 Tập 2
Giáo trình Robot Structural 2016 Tập 2
 

Similar a Giáo trình học Html5/Css3

Refreshdc html5css3-090719085307-phpapp01
Refreshdc html5css3-090719085307-phpapp01Refreshdc html5css3-090719085307-phpapp01
Refreshdc html5css3-090719085307-phpapp01Apoorvi Kapoor
 
HTML5 Presentation
HTML5 PresentationHTML5 Presentation
HTML5 Presentationvs4vijay
 
Front-end optimisation & jQuery Internals
Front-end optimisation & jQuery InternalsFront-end optimisation & jQuery Internals
Front-end optimisation & jQuery InternalsArtur Cistov
 
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5Sadaaki HIRAI
 
HTML5 and the Open Web Platform - Web Technologies (1019888BNR)
HTML5 and the Open Web Platform - Web Technologies (1019888BNR)HTML5 and the Open Web Platform - Web Technologies (1019888BNR)
HTML5 and the Open Web Platform - Web Technologies (1019888BNR)Beat Signer
 
Introduction to Microsoft Silverlight
Introduction to Microsoft SilverlightIntroduction to Microsoft Silverlight
Introduction to Microsoft SilverlightGlen Gordon
 
Responsive Web Design
Responsive Web DesignResponsive Web Design
Responsive Web DesignRZasadzinski
 
Javascript Frameworks Comparison
Javascript Frameworks ComparisonJavascript Frameworks Comparison
Javascript Frameworks ComparisonDeepu S Nath
 
Javascript Frameworks Comparison - Angular, Knockout, Ember and Backbone
Javascript Frameworks Comparison - Angular, Knockout, Ember and BackboneJavascript Frameworks Comparison - Angular, Knockout, Ember and Backbone
Javascript Frameworks Comparison - Angular, Knockout, Ember and BackboneDeepu S Nath
 
HTML5 and the Open Web Platform - Web Technologies (1019888BNR)
HTML5 and the Open Web Platform - Web Technologies (1019888BNR)HTML5 and the Open Web Platform - Web Technologies (1019888BNR)
HTML5 and the Open Web Platform - Web Technologies (1019888BNR)Beat Signer
 
Intro to Rails Give Camp Atlanta
Intro to Rails Give Camp AtlantaIntro to Rails Give Camp Atlanta
Intro to Rails Give Camp AtlantaJason Noble
 
Bootstrap 5 whats new
Bootstrap 5   whats newBootstrap 5   whats new
Bootstrap 5 whats newSandun Perera
 
HTML5: An Introduction To Next Generation Web Development
HTML5: An Introduction To Next Generation Web DevelopmentHTML5: An Introduction To Next Generation Web Development
HTML5: An Introduction To Next Generation Web DevelopmentTilak Joshi
 
Acquia Platform Update: New Features and Capabilities
Acquia Platform Update: New Features and CapabilitiesAcquia Platform Update: New Features and Capabilities
Acquia Platform Update: New Features and CapabilitiesAcquia
 
HTML5ではないサイトを HTML5へ - Change HTML5 from Not HTML5.
HTML5ではないサイトを HTML5へ - Change HTML5 from Not HTML5.HTML5ではないサイトを HTML5へ - Change HTML5 from Not HTML5.
HTML5ではないサイトを HTML5へ - Change HTML5 from Not HTML5.Sadaaki HIRAI
 
Opera and the Open Web platform
Opera and the Open Web platformOpera and the Open Web platform
Opera and the Open Web platformAndreas Bovens
 

Similar a Giáo trình học Html5/Css3 (20)

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
 
Refreshdc html5css3-090719085307-phpapp01
Refreshdc html5css3-090719085307-phpapp01Refreshdc html5css3-090719085307-phpapp01
Refreshdc html5css3-090719085307-phpapp01
 
HTML5 Presentation
HTML5 PresentationHTML5 Presentation
HTML5 Presentation
 
Ie9 overview
Ie9 overviewIe9 overview
Ie9 overview
 
Front-end optimisation & jQuery Internals
Front-end optimisation & jQuery InternalsFront-end optimisation & jQuery Internals
Front-end optimisation & jQuery Internals
 
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
 
HTML5 and the Open Web Platform - Web Technologies (1019888BNR)
HTML5 and the Open Web Platform - Web Technologies (1019888BNR)HTML5 and the Open Web Platform - Web Technologies (1019888BNR)
HTML5 and the Open Web Platform - Web Technologies (1019888BNR)
 
Introduction to Microsoft Silverlight
Introduction to Microsoft SilverlightIntroduction to Microsoft Silverlight
Introduction to Microsoft Silverlight
 
Html5
Html5Html5
Html5
 
Responsive Web Design
Responsive Web DesignResponsive Web Design
Responsive Web Design
 
Javascript Frameworks Comparison
Javascript Frameworks ComparisonJavascript Frameworks Comparison
Javascript Frameworks Comparison
 
Javascript Frameworks Comparison - Angular, Knockout, Ember and Backbone
Javascript Frameworks Comparison - Angular, Knockout, Ember and BackboneJavascript Frameworks Comparison - Angular, Knockout, Ember and Backbone
Javascript Frameworks Comparison - Angular, Knockout, Ember and Backbone
 
Echo HTML5
Echo HTML5Echo HTML5
Echo HTML5
 
HTML5 and the Open Web Platform - Web Technologies (1019888BNR)
HTML5 and the Open Web Platform - Web Technologies (1019888BNR)HTML5 and the Open Web Platform - Web Technologies (1019888BNR)
HTML5 and the Open Web Platform - Web Technologies (1019888BNR)
 
Intro to Rails Give Camp Atlanta
Intro to Rails Give Camp AtlantaIntro to Rails Give Camp Atlanta
Intro to Rails Give Camp Atlanta
 
Bootstrap 5 whats new
Bootstrap 5   whats newBootstrap 5   whats new
Bootstrap 5 whats new
 
HTML5: An Introduction To Next Generation Web Development
HTML5: An Introduction To Next Generation Web DevelopmentHTML5: An Introduction To Next Generation Web Development
HTML5: An Introduction To Next Generation Web Development
 
Acquia Platform Update: New Features and Capabilities
Acquia Platform Update: New Features and CapabilitiesAcquia Platform Update: New Features and Capabilities
Acquia Platform Update: New Features and Capabilities
 
HTML5ではないサイトを HTML5へ - Change HTML5 from Not HTML5.
HTML5ではないサイトを HTML5へ - Change HTML5 from Not HTML5.HTML5ではないサイトを HTML5へ - Change HTML5 from Not HTML5.
HTML5ではないサイトを HTML5へ - Change HTML5 from Not HTML5.
 
Opera and the Open Web platform
Opera and the Open Web platformOpera and the Open Web platform
Opera and the Open Web platform
 

Más de Ho Ngoc Tan

Hoàng Dược Đơn : Thành phần - Công dụng - Cách dùng trị bệnh
Hoàng Dược Đơn : Thành phần - Công dụng - Cách dùng trị bệnhHoàng Dược Đơn : Thành phần - Công dụng - Cách dùng trị bệnh
Hoàng Dược Đơn : Thành phần - Công dụng - Cách dùng trị bệnhHo Ngoc Tan
 
TỔNG QUAN VỀ DẦU ARGAN
TỔNG QUAN VỀ DẦU ARGANTỔNG QUAN VỀ DẦU ARGAN
TỔNG QUAN VỀ DẦU ARGANHo Ngoc Tan
 
50 site-gov cho anh em SEO cày cuốc
50 site-gov cho anh em SEO cày cuốc50 site-gov cho anh em SEO cày cuốc
50 site-gov cho anh em SEO cày cuốcHo Ngoc Tan
 
Seo litado setc 07 n2
Seo litado setc 07 n2Seo litado setc 07 n2
Seo litado setc 07 n2Ho Ngoc Tan
 
Seo litado setc 07 n2
Seo litado setc 07 n2Seo litado setc 07 n2
Seo litado setc 07 n2Ho Ngoc Tan
 
900 edu site from store.3ce.vn
900 edu site from store.3ce.vn900 edu site from store.3ce.vn
900 edu site from store.3ce.vnHo Ngoc Tan
 

Más de Ho Ngoc Tan (6)

Hoàng Dược Đơn : Thành phần - Công dụng - Cách dùng trị bệnh
Hoàng Dược Đơn : Thành phần - Công dụng - Cách dùng trị bệnhHoàng Dược Đơn : Thành phần - Công dụng - Cách dùng trị bệnh
Hoàng Dược Đơn : Thành phần - Công dụng - Cách dùng trị bệnh
 
TỔNG QUAN VỀ DẦU ARGAN
TỔNG QUAN VỀ DẦU ARGANTỔNG QUAN VỀ DẦU ARGAN
TỔNG QUAN VỀ DẦU ARGAN
 
50 site-gov cho anh em SEO cày cuốc
50 site-gov cho anh em SEO cày cuốc50 site-gov cho anh em SEO cày cuốc
50 site-gov cho anh em SEO cày cuốc
 
Seo litado setc 07 n2
Seo litado setc 07 n2Seo litado setc 07 n2
Seo litado setc 07 n2
 
Seo litado setc 07 n2
Seo litado setc 07 n2Seo litado setc 07 n2
Seo litado setc 07 n2
 
900 edu site from store.3ce.vn
900 edu site from store.3ce.vn900 edu site from store.3ce.vn
900 edu site from store.3ce.vn
 

Último

USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxMaryGraceBautista27
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 

Último (20)

USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptx
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 

Giáo trình học Html5/Css3

  • 1. CSS3 UP TO SPEED ON HTML5 & REFRESH DC | M. JACKSON WILKINSON & JASON GARBER | JULY 16, 2009 </TITLE> Sunday, July 19, 2009
  • 3. M.JACKSONWILKINSONYour Humble Refresh DC Organizer That’s “Michael” Sunday, July 19, 2009
  • 6. JASONGARBERRefresh DC Organizer Emeritus Sunday, July 19, 2009
  • 8. WEB STANDARDS A Very Brief History of Sunday, July 19, 2009
  • 10. WHATWG 2004-2007 Web Hypertext Application Technology Working Group Sunday, July 19, 2009
  • 13. HTML 5 The Content Layer: Sunday, July 19, 2009
  • 15. structuralelements BrowserSupport:structuralelements Provides new semantic vocabulary for parts of a page previously served by DIVs with ID and Class attributes. IE requires some workarounds using JavaScript to make these elements work. HEADER ARTICLE FOOTER ASIDE NAV SECTION Sunday, July 19, 2009
  • 16. figure BrowserSupport:figure Allows for associating captions with embedded content, including videos, audio, pullquotes, or images. FIGURE LEGEND CONTENT (IMG, Q, VIDEO, ETC.) Sunday, July 19, 2009
  • 17. audio&video BrowserSupport:audio&video Allows for associating captions with embedded content, including videos, audio, or images. Opera, Chrome, and Firefox all support the Ogg Theora video format natively, while Safari and Chrome support H.264. <video src="test.ogg" autoplay="autoplay" controls="controls"> Your browser does not support the video element. This could also include object and embed codes for legacy browsers. </video> Sunday, July 19, 2009
  • 18. OTHERELEMENTS METER Contained content is a measurement, like length. PROGRESS TIME COMMAND DATAGRID OUTPUT RUBY Contains current process toward a goal, like a percentage. Time Represents something a command a user may execute. Represents data. Non-tabular or otherwise. Displays the output of a program or process. Allows input of rubi/ruby annotations for Asian languages. Sunday, July 19, 2009
  • 20. FORMCONTROLS DATETIME Allows input of a date and a time. DATETIME-LOCAL NUMBER RANGE EMAIL URL COLOR Allows input of a date and a time, in local time. Allows input of a number. Input is verified to be within a range. Confirms the input to be a valid email. Ensures input is a valid URL. Provides a mechanism for the user to input an RGB color. Sunday, July 19, 2009
  • 22. HTML5doctype BrowserSupport:HTML5doctype The HTML 5 doctype is way easier than any other doctype. Evar. Just type the parts you remember, and you’ll probably be right. <!DOCTYPE html> Sunday, July 19, 2009
  • 23. HTML5&XHTML5 BrowserSupport:HTML5doctype HTML 5 supports the standard HTML syntax (formerly SGML), but also allows for an XML-based variant XHTML5. Since it’s XML, XHTML should be served as application/xml or application/xhtml+xml. Warning: this means browsers freak if there’s an error. <html> vs. <html xmlns="http:// www.w3.org/1999/xhtml"> Sunday, July 19, 2009
  • 24. Block-LevelLinks BrowserSupport:Block-levelLinks You can now wrap links around block-level elements, rather than having to create links around every element inside the block element. This is useful for lists of articles that include multiple elements, callouts with a single action, etc. <li> <a href="page.html"> <img src="pic.jpg"> <h3>Title</h3> <p>Text</p> </a> </li> Sunday, July 19, 2009
  • 26. Drag&DropAPI BrowserSupport:DragandDropAPI Allows objects (images and links, by default) to be dragged and then dropped onto a target. The target is enabled by canceling the ‘dragover’ (for sane browsers) or ‘dragenter’ (for IE) events for the drop target. Then listen for a ‘drop’ event which contains a ‘dataTransfer’ object with info. + Sunday, July 19, 2009
  • 27. getElementsByClassName BrowserSupport:getElementsByClassName Works just like getElementsById, but selects an array of all elements based on a shared class name. No more varied custom functions to make this happen, and performance is significantly better. Sunday, July 19, 2009
  • 28. Cross-DocumentMessaging BrowserSupport:Cross-DocMessaging This allows non-hostile documents on different domains to simply communicate with each other. The sending document can call postMessage() on the window object of the receiving document, while the receiving document listens for a ‘message’ event. MAIN DOCUMENT FOREIGN IFRAME Sunday, July 19, 2009
  • 29. SimpleClientStorage BrowserSupport:SimpleClientStorage The sessionStorage DOM attribute stores session data for a single window, like cookies on crack. The localStorage DOM attribute allows each site to store megabytes of data across sessions to improve performance. Both methods store only strings. <input type="checkbox" onchange=" localStorage.insurance=checked " /> Sunday, July 19, 2009
  • 30. StructuredClientStorage BrowserSupport:StructuredClientStorage HTML 5’s Web Storage module provides an SQL server within the client, accessible using Javascript. It uses fairly standard SQL queries for both reading and writing. There’s a lot to be explained about the built-in SQL server, so go check out the docs for more information. tx.executeSql( ‘SELECT * FROM Notes’, [], function(tx, rs) { for(var i = 0; i < rs.rows.length; i++) { renderNote(rs.rows[i]); } Sunday, July 19, 2009
  • 31. OfflineApplicationCaching BrowserSupport:OfflineApplicationCaching Allow the client to refer directly to its cache, authoritatively, for certain resources, even if the browser is offline. Resources listed in the “network” section are never cached. <html manifest=”/cache.manifest”> CACHE MANIFEST index.html help.html style/default.css images/logo.png images/backgound.png NETWORK: server.cgi Sunday, July 19, 2009
  • 32. Canvas BrowserSupport:canvas Provides an API for drawing directly in the browser window, using instructions that define vector-based shapes and lines. This allows SVG-like graphics to be created on the fly in the browser, with fallback content (like Flash?) provided to legacy browsers. <canvas id="canvas" width="150" height="150"> fallback content </canvas> function draw() { var canvas = document.getElementById("canvas"); if (canvas.getContext) { var ctx = canvas.getContext("2d"); ctx.fillStyle = "rgb(200,0,0)"; ctx.fillRect (10, 10, 55, 50); ctx.fillStyle = "rgba(0, 0, 200, 0.5)"; ctx.fillRect (30, 30, 55, 50); } } Sunday, July 19, 2009
  • 33. CSS 3 The Presentation Layer: Sunday, July 19, 2009
  • 35. opacity BrowserSupport:opacity Adjusts the opacity of the selected element’s presentation on screen. Takes values between 0.0 (fully transparent) and 1.0 (fully opaque) div { color: #f00; opacity: 1.0; } div { color: #f00; opacity: 0.5; } Sunday, July 19, 2009
  • 36. RGBAColor BrowserSupport:RGBAcolor Like RGB color definitions, but allows a fourth field, defining the alpha value of the color being applied. Like opacity, the alpha value is between 0.0 (fully transparent) and 1.0 (fully opaque). div { color: rgb(0,255,0); } div { color: rgba(0,255,0,0.5); } Sunday, July 19, 2009
  • 37. HSL/AColor BrowserSupport:HSL/Acolor HSL color definitions accept three arguments: hue is a degree on a color wheel (0-360), saturation is a percentage, and lightness is a percentage. HSLA is like HSL color, but allows a fourth field, defining the alpha value of the color being applied. See RGBA. div { color: hsl(240,50%,50%); } div { color: hsla(240,50%,50%,0.5); } Sunday, July 19, 2009
  • 39. background-size BrowserSupport:background-size Defines the size at which the browser should display the specified background image. Accepts all normal size definitions as width followed by height. In shorthand, this appears after background-position values. div { background-size: 100px 65px; } div { background-size: 400px 65px; } Sunday, July 19, 2009
  • 40. background: url(body-top.png) top left no-repeat, url(body-bottom.png) bottom left no-repeat, url(body-middle.png) left repeat-y; background-image BrowserSupport:background-image Allows for multiple images to be specified. The first image specified is layered closest to the top of the screen, and subsequent images are layered beneath. Sunday, July 19, 2009
  • 42. border: 5px solid #000; border-color: #000 transparent transparent #000; border-color BrowserSupport:border-color Allows for multiple border colors to be specified, one pixel at a time. The last specified color is repeated if necessary. This cannot be used in the border shorthand syntax. Sunday, July 19, 2009
  • 43. border-image: url(button.png) 0 12 0 12 stretch stretch; border-image BrowserSupport:border-image Allows the border to be represented by an image, by defining which parts of the image should be used for the edges, and which should be repeated in the main part of the element. This is difficult to represent completely, so go look it up. border-image: url(border.png) 27 27 27 27 round round; Sunday, July 19, 2009
  • 44. border-radius: 10px; border-radius BrowserSupport:border-radius Curves the corners of the border using the radius given, often in pixels. This can be given to all corners, or only to individual corners as specified. Firefox refers to individual corners like “border-radius-topright” while Safari (correctly) refers to it as “border-top-right-radius”. border-top-right-radius: 10px; Sunday, July 19, 2009
  • 45. box-shadow: 10px 10px 10px #333; box-shadow BrowserSupport:box-shadow Creates a drop shadow beneath the selected element. The first argument is the horizontal offset, the second is the vertical offset, the third is the blur radius, and the final argument is the color to be used as the shadow. Sunday, July 19, 2009
  • 47. text-overflow: ellipsis; text-overflow BrowserSupport:text-overflow If text overflows the available space, the text-overflow property defines what happens. The value “ellipsis” appends an ellipsis character at the overflow point. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam purus nunc, auctor et accumsan ut, aliquam vel leo. Quisque dignissim tincidunt rhoncus. Duis sed velit rutrum lorem rutrum faucibus. Nam tincidunt eros at arcu vestibulum egestas. Donec fringilla, turpis in auctor luctus, orci orci vestibulum lacus, a tristique felis erat non diam. Morbi dolor massa, elementum ac iaculis quis, iaculis sed neque. Aliquam erat volutpat. Aliquam porttitor auctor massa sit amet ultrices. Maecenas quis nunc nibh, sit amet hendrerit leo. Donec a massa eget velit consectetur fermentum aliquet et eros. Vestibulum volutpat, est vitae dapibus congue, nibh augue vehicula lacutus es… Sunday, July 19, 2009
  • 48. text-shadow: 10px 10px 10px #333; text-shadow BrowserSupport:text-shadow Creates a drop shadow beneath the selected text. The first argument is the horizontal offset, the second is the vertical offset, the third is the blur radius, and the final argument is the color to be used as the shadow. Multiple shadow definitions may be separated using commas. This is sample text. Sunday, July 19, 2009
  • 49. column-width: 200px; column-gap: 20px; column-width&column-gap BrowserSupport:column-width/column-gap Breaks flowing text into multiple columns, based on the width of the container. Column width defines the width of each column, and column-gap defines the gap between columns. Column-count can be specified in lieu of column-width. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam purus nunc, auctor et accumsan ut, aliquam vel leo. Quisque dignissim tincidunt rhoncus. Duis sed velit rutrum lorem rutrum faucibus. Nam tincidunt eros at arcu vestibulum egestas. Donec fringilla, turpis in auctor luctus, orci orci vestibulum lacus, a tristique felis erat non diam. Morbi dolor massa, elementum ac iaculis quis, iaculis sed neque. Aliquam erat volutpat. Aliquam porttitor auctor massa sit amet ultrices. Maecenas quis nunc nibh, sit amet hendrerit leo. Donec a massa eget velit consectetur fermentum aliquet et eros. Vestibulum volutpat, est vitae dapibus congue, nibh augue vehicula lacus, vel semper dolor odio in libero. Curabitur vitae sem consequat purus fermentum tincidunt. Donec vestibulum felis ut metus ultrices a vulputate felis rhoncus eum ivolonortis quisque dignissim tincidunt rhoncus. Duis sed velit rutrum lorem rutrum faucibus. Nam tincidunt eros at arcu vestibulum egestas. Donec fringilla, turpis in auctor luctus, orci orci vestibulum lacus, a tristique felis erat non diam. Morbi dolor massa, elementum ac iaculis quis, iaculis sed neque. Aliquam erat volutpat. Aliquam porttitor auctor massa sit amet ultrices. Maecenas quis nunc nibh, sit amet hendrerit leo. Donec a massa eget velit consectetur fermentum aliquet et eros. Vestibulum volutpat, est vitae dapibus congue, nibh augue vehicula lacus, vel semper dolor odio in libero. Curabitur vitae sem consequat purus fermentum tincidunt. Donec vestibulum felis ut metus ultrices a vulputate felis rhoncus eum ivolonortis Sunday, July 19, 2009
  • 50. @font-face { font-family: Helvy; src: local("Helvetica Neue Bold"), local("HelveticaNeue-Bold"), url(MgOpenModernaBold.ttf); font-weight: bold; } p.specialFont { font-family: Helvy, sans-serif; } @font-face BrowserSupport:column-width/column-gap Allows a font file to be associated with a font name for later use in font-family declarations. IE supports only .eot Embedded OpenType files, while the other browsers support any TTF and OTF font files. Sunday, July 19, 2009
  • 52. rotate BrowserSupport:rotate Rotates the selected element at the defined angle, defined in degrees. The rotation doesn’t affect layout, and elements that are transformed are treated similarly to position:relative. transform: rotate(30deg); Sunday, July 19, 2009
  • 53. scale BrowserSupport:scale Scales the element in question based on the specified unit-less numbers given for the X and Y axes. If only one number is given, it is applied to both axes. transform: scale(0.5,2.0); Sunday, July 19, 2009
  • 54. skew BrowserSupport:scale Skews the element around the X and Y axes by the specified angles, in degrees. If it’s only one number, the Y axis is assumed to be zero. transform: skew(-30deg); Sunday, July 19, 2009
  • 55. translate BrowserSupport:translate Moves the object along each axis by the length specified. The unit can be anything accepted as a length in CSS, such as px, em, percentages, etc. transform: translate(30px, 0); Sunday, July 19, 2009
  • 56. 3DTRANSFORMATIONS PERSPECTIVE The distance, in pixels, of the z=0 plane from the viewer. MATRIX3D ROTATE3D SCALE3D TRANSLATE3D Allows creation of a 3d transformation matrix. Rotate the matched element in three dimensions. Performs a three-dimensional scale operation. Allows the matched element to be moved along three axes. Sunday, July 19, 2009
  • 59. READY YET? When is it Time to Use These? Sunday, July 19, 2009
  • 63. BUSINESSAND USERGOALS In the end, be mindful of Sunday, July 19, 2009
  • 64. CRITICISM A Healthy Dose of Sunday, July 19, 2009
  • 67. SpeakerRate: spkr8.com/t/1250 Get in Touch! Twitter: @whafro & @jgarber Sunday, July 19, 2009