Top Banner
Move to HTML5 is easy if you know how
22

HTML5 easy if you know how

Jul 14, 2015

Download

Technology

Jorge del Casar
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: HTML5 easy if you know how

Move to HTML5is easy

if you know how

Page 3: HTML5 easy if you know how

What is NOT HTML5?

CSS3

JS APIs (GEOlocation, workers, Drag&Drop, Web storage...)

Web Apps

Page 4: HTML5 easy if you know how

What is NOT HTML5?

All that is out of markup

Page 5: HTML5 easy if you know how

What is HTML5?

Markup lenguage

Web Forms

Video & Audio

Canvas

SVG

Page 6: HTML5 easy if you know how

What is HTML5?

The basis forweb applications

Page 7: HTML5 easy if you know how

HTML5

JS APis

canvasvideo

audio

web forms

SVG

GEOlocation

Drag & Drop

Storage CSSCSS1

CSS2.1

CSS3

Silverlight Flash

Web Apps

Page 8: HTML5 easy if you know how

Advantages

Semantic elements

Backwards compatibility

Web application oriented

Faster rendering

Page 9: HTML5 easy if you know how

Progressive Enhancement

Page 10: HTML5 easy if you know how

Graceful Degradation

Page 11: HTML5 easy if you know how

Where to start?

Page 12: HTML5 easy if you know how

XHTML 1.0 Strict

HTML5

!DOCTYPE

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<!DOCTYPE html>

Page 13: HTML5 easy if you know how

XHTML 1.0 Strict

HTML5

Encoding

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

<meta charset="utf-8" />

Page 14: HTML5 easy if you know how

XHTML 1.0 Strict

HTML5

Links

<link rel="stylesheet" type="text/css" href="style.css"/>

<link rel=stylesheet href=style.css>

Page 15: HTML5 easy if you know how

XHTML 1.0 Strict

HTML5

Script

<script type="text/javascript" src="jquery.js"></script>

<script src=jquery.js></script>

Page 16: HTML5 easy if you know how

Polyfills

html5shim

<!-- [if lt IE 9]><script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->

Page 17: HTML5 easy if you know how

Old structure<div id=”header”>

<div id=”nav”>

<div id=”sidebar”>

<div id=”footer”>

<div id=”main”>

<div class=”post”>

<div class=”post”>

Page 18: HTML5 easy if you know how

New structure<header>

<nav>

<aside>

<footer>

<section>

<article> <article>

Page 19: HTML5 easy if you know how
Page 20: HTML5 easy if you know how

sectionnav

section

header nav

asidearticle article article

footer

figure figurevideo

figcaptionfigcaptionheader header header

header

Page 21: HTML5 easy if you know how

New tags

articleaside

audio

canvasda

talist

command

detailsfigure

figcaption

footer

header

hgro

up

keygen

nav meter

outputvideo

time

source

summary

Page 22: HTML5 easy if you know how

Thanks!Jorge del Casar

@jorgecasar