Up To Speed On: HTML 5
Up To Speed On: HTML 5
THE INTRO
Sunday, July 19, 2009
Thats
Michael
M. JACKSON WILKINSON
Your Humble Refresh DC Organizer
JASON GARBER
Refresh DC Organizer Emeritus
WEB STANDARDS
Sunday, July 19, 2009
XHTML 1
CSS 2.1
Content
Presentation
2001-2006
Sunday, July 19, 2009
WHAT WG
Web Hypertext Application
Technology Working Group
2004-2007
Sunday, July 19, 2009
W3C
World Wide Web
Consortium
2007 - PRESENT
Sunday, July 19, 2009
HTML 5
CSS 3
Content
Presentation
2007 - PRESENT
Sunday, July 19, 2009
HTML 5
Sunday, July 19, 2009
NEW ELEMENTS
structural elements
Provides new semantic vocabulary
for parts of a page previously
served by DIVs with ID and Class
attributes.
HEADER
NAV
ARTICLE
ASIDE
SECTION
FOOTER
structural elements
Sunday, July 19, 2009
Browser Support:
figure
Allows for associating captions
with embedded content, including
videos, audio, pullquotes, or
images.
FIGURE
LEGEND
figure
Sunday, July 19, 2009
Browser Support:
Browser Support:
OTHER ELEMENTS
METER
PROGRESS
TIME
Time
COMMAND
DATAGRID
OUTPUT
RUBY
NEW FORM
CONTROLS
FORM CONTROLS
DATETIME
DATETIME-LOCAL
NUMBER
RANGE
URL
COLOR
DOC STRUCTURE
HTML 5 doctype
The HTML 5 doctype is way
easier than any other doctype.
Evar.
<!DOCTYPE html>
HTML 5 doctype
Sunday, July 19, 2009
Browser Support:
HTML 5 doctype
Sunday, July 19, 2009
<html>
vs.
<html xmlns="http://
www.w3.org/1999/xhtml">
Browser Support:
Block-Level Links
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.
Block-level Links
Sunday, July 19, 2009
<li>
<a href="page.html">
<img src="pic.jpg">
<h3>Title</h3>
<p>Text</p>
</a>
</li>
Browser Support:
NEW APIs
Browser Support:
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.
getElementsByClassName
Sunday, July 19, 2009
Browser Support:
Cross-Document Messaging
This allows non-hostile documents
on different domains to simply
communicate with each other.
MAIN DOCUMENT
Cross-Doc Messaging
Sunday, July 19, 2009
FOREIGN
IFRAME
Browser Support:
<input
type="checkbox"
onchange="
localStorage.insurance=checked
"
/>
Browser Support:
tx.executeSql(
SELECT * FROM Notes,
[],
function(tx, rs) {
for(var i = 0;
i < rs.rows.length; i++) {
renderNote(rs.rows[i]);
}
Browser Support:
<html manifest=/cache.manifest>
CACHE MANIFEST
index.html
help.html
style/default.css
images/logo.png
images/backgound.png
NETWORK:
server.cgi
Browser Support:
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
Sunday, July 19, 2009
Browser Support:
CSS 3
Sunday, July 19, 2009
COLOR
opacity
Adjusts the opacity of the selected
elements presentation on screen.
Takes values between 0.0 (fully
transparent) and 1.0 (fully
opaque)
opacity
Sunday, July 19, 2009
Browser Support:
RGBA Color
Like RGB color definitions, but
allows a fourth field, defining the
alpha value of the color being
applied.
RGBA color
Sunday, July 19, 2009
Browser Support:
HSL/A Color
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.
HSL/A color
Sunday, July 19, 2009
Browser Support:
BACKGROUNDS
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.
background-size
Sunday, July 19, 2009
Browser Support:
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.
background-image
Sunday, July 19, 2009
Browser Support:
BORDERS
border-color
Allows for multiple border colors
to be specified, one pixel at a time.
The last specified color is repeated
if necessary.
border-color
Sunday, July 19, 2009
Browser Support:
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.
border-image
Sunday, July 19, 2009
Browser Support:
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.
border-radius: 10px;
border-top-right-radius: 10px;
border-radius
Sunday, July 19, 2009
Browser Support:
box-shadow
Creates a drop shadow beneath the
selected element.
box-shadow
Sunday, July 19, 2009
Browser Support:
TEXT
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.
text-overflow
Sunday, July 19, 2009
text-overflow: ellipsis;
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
Browser Support:
text-shadow
Creates a drop shadow beneath the
selected text.
text-shadow
Sunday, July 19, 2009
Browser Support:
column-width/column-gap
Sunday, July 19, 2009
column-width: 200px;
column-gap: 20px;
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
Browser Support:
@font-face
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.
column-width/column-gap
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; }
Browser Support:
TRANSFORMATION
rotate
Rotates the selected element at the
defined angle, defined in degrees.
The rotation doesnt affect layout,
and elements that are transformed
are treated similarly to
position:relative.
rotate
Sunday, July 19, 2009
transform: rotate(30deg);
Browser Support:
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.
scale
Sunday, July 19, 2009
transform: scale(0.5,2.0);
Browser Support:
skew
Skews the element around the X
and Y axes by the specified angles,
in degrees. If its only one number,
the Y axis is assumed to be zero.
scale
Sunday, July 19, 2009
transform: skew(-30deg);
Browser Support:
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.
translate
Sunday, July 19, 2009
Browser Support:
3D TRANSFORMATIONS
PERSPECTIVE
MATRIX3D
ROTATE3D
SCALE3D
TRANSLATE3D
BROWSER PREFIXES
FIREFOX:
-moz-box-shadow:
SAFARI:
-webkit-box-shadow:
OPERA:
-o-box-shadow:
IE:
-ms-box-shadow:
READY YET?
When is it Time to Use These?
THE FUTURE
IMPLEMENTATION
trumps
SPECIFICATION
Sunday, July 19, 2009
PROGRESSFUL
DEGRAHANCEMENT
BUSINESS AND
USER GOALS
A Healthy Dose of
CRITICISM
MORE RESOURCES
HTML 5 Doctor
http://html5doctor.com/
HTML 5 Spec
http://dev.w3.org/html5/spec/Overview.html
ALA Article
http://www.alistapart.com/articles/previewofhtml5
Bruce Lawson
http://www.brucelawson.co.uk/category/
accessibility-web-standards/html5/
Your Presenters
FIN
Sunday, July 19, 2009
Get in Touch!
SpeakerRate: spkr8.com/t/1250
Twitter: @whafro & @jgarber