Senior Front End @ Arezzo&Cofpereira/pagina/autoria/html5.pdf · Algumas tags – Especifica que...

46
1 [email protected] danielrohers Daniel Röhers Moura Senior Front End @ Arezzo&Co

Transcript of Senior Front End @ Arezzo&Cofpereira/pagina/autoria/html5.pdf · Algumas tags – Especifica que...

Page 1: Senior Front End @ Arezzo&Cofpereira/pagina/autoria/html5.pdf · Algumas tags  – Especifica que iremos utilizar HTML5 ao browser  – Serve para

1

[email protected]

Daniel Röhers MouraSenior Front End @ Arezzo&Co

Page 2: Senior Front End @ Arezzo&Cofpereira/pagina/autoria/html5.pdf · Algumas tags  – Especifica que iremos utilizar HTML5 ao browser  – Serve para

HTML o que?

HTML5 é a nova versão do HTML, simples assim! :)

Foi lançada em 2008 (WhatWG) e trouxe consigo importantes mudanças quanto ao papel do HTML na Web, através de novas funcionalidades como semântica, acessibilidade e diversas API’s.

2015 reconhecido pela W3C

2

Page 3: Senior Front End @ Arezzo&Cofpereira/pagina/autoria/html5.pdf · Algumas tags  – Especifica que iremos utilizar HTML5 ao browser  – Serve para

Por que usar?

3

Page 4: Senior Front End @ Arezzo&Cofpereira/pagina/autoria/html5.pdf · Algumas tags  – Especifica que iremos utilizar HTML5 ao browser  – Serve para

4

Semântica

Page 5: Senior Front End @ Arezzo&Cofpereira/pagina/autoria/html5.pdf · Algumas tags  – Especifica que iremos utilizar HTML5 ao browser  – Serve para

a

5

Exemplo Variáveis

numero

numeroCpf

numeroCpfCliente

Page 6: Senior Front End @ Arezzo&Cofpereira/pagina/autoria/html5.pdf · Algumas tags  – Especifica que iremos utilizar HTML5 ao browser  – Serve para

6

Exemplo HTML

Page 7: Senior Front End @ Arezzo&Cofpereira/pagina/autoria/html5.pdf · Algumas tags  – Especifica que iremos utilizar HTML5 ao browser  – Serve para

7

Semântica, só para isso?

Page 8: Senior Front End @ Arezzo&Cofpereira/pagina/autoria/html5.pdf · Algumas tags  – Especifica que iremos utilizar HTML5 ao browser  – Serve para

8

45.623.910 pessoas</censo-2010>

Page 9: Senior Front End @ Arezzo&Cofpereira/pagina/autoria/html5.pdf · Algumas tags  – Especifica que iremos utilizar HTML5 ao browser  – Serve para

9

Não faça:

Faça:

Page 10: Senior Front End @ Arezzo&Cofpereira/pagina/autoria/html5.pdf · Algumas tags  – Especifica que iremos utilizar HTML5 ao browser  – Serve para

10

Não faça:

Faça:

Page 11: Senior Front End @ Arezzo&Cofpereira/pagina/autoria/html5.pdf · Algumas tags  – Especifica que iremos utilizar HTML5 ao browser  – Serve para

11

Não faça:

Faça:

Page 12: Senior Front End @ Arezzo&Cofpereira/pagina/autoria/html5.pdf · Algumas tags  – Especifica que iremos utilizar HTML5 ao browser  – Serve para

12

Performance

Page 13: Senior Front End @ Arezzo&Cofpereira/pagina/autoria/html5.pdf · Algumas tags  – Especifica que iremos utilizar HTML5 ao browser  – Serve para

13

Page 14: Senior Front End @ Arezzo&Cofpereira/pagina/autoria/html5.pdf · Algumas tags  – Especifica que iremos utilizar HTML5 ao browser  – Serve para

14

API'sConectividade • Web Sockets • Server-sent events • WebRTC

Offline e Armazenamento Validação de formulários

Geolocalização Áudio

Vídeo Drag and Drop

Gráficos e efeitos 3D

e muito, muito mais…

Page 15: Senior Front End @ Arezzo&Cofpereira/pagina/autoria/html5.pdf · Algumas tags  – Especifica que iremos utilizar HTML5 ao browser  – Serve para

15

Page 16: Senior Front End @ Arezzo&Cofpereira/pagina/autoria/html5.pdf · Algumas tags  – Especifica que iremos utilizar HTML5 ao browser  – Serve para

Algumas tags<!DOCTYPE html> – Especifica que iremos utilizar HTML5 ao browser

<header> – Serve para marcar o cabeçalho do documento ou seção.

<nav> – Como o nome já sugere, essa tag é utilizada para navegação, ou seja, nela irá conter links de navegação externa ou interna a página.

<main> – Essa tag pode ser usada para identificar o conteúdo principal da página. Por exemplo, o conteúdo de um artigo pode estar dentro da tag main.

<section> – A section serve para separar as seções de uma página e para identificar abordagens diferentes.

<article> – Usado para representar conteúdos independentes de uma página. Como um post de um blog.

16

Page 17: Senior Front End @ Arezzo&Cofpereira/pagina/autoria/html5.pdf · Algumas tags  – Especifica que iremos utilizar HTML5 ao browser  – Serve para

<aside> – Essa tag é usada para a identificação de um conteúdo secundário que não seja parte da seção principal. Ela é bastante usada como uma sidebar, alocadas em uma coluna esquerda ou direita de uma página.

<footer> – Usada para identificar o rodapé da página ou seção.

<audio> – É uma maneira simples e eficiente de inserirmos um arquivo de áudio na página.

<video> – É usada para inserirmos arquivos de vídeo na página. Existem muitas atributos que complementam essa tag, como inserir legenda por exemplo.

17

Page 18: Senior Front End @ Arezzo&Cofpereira/pagina/autoria/html5.pdf · Algumas tags  – Especifica que iremos utilizar HTML5 ao browser  – Serve para

Exemplo de estrutura

18

Page 19: Senior Front End @ Arezzo&Cofpereira/pagina/autoria/html5.pdf · Algumas tags  – Especifica que iremos utilizar HTML5 ao browser  – Serve para

Novos Input Types• color• date• datetime• email• month• number• range• time• url• week

19

<input type=“color"><input type=“date"><input type=“datetime"><input type=“email"><input type=“month"><input type=“number" min="1" max=“5"><input type="range" min="1" max=“10"><input type=“time"><input type=“url"><input type="week">

Page 20: Senior Front End @ Arezzo&Cofpereira/pagina/autoria/html5.pdf · Algumas tags  – Especifica que iremos utilizar HTML5 ao browser  – Serve para

Bye :)

<acronym><applet><basefont><big><center><dir>

<font><frame><frameset><noframes><strike><tt>

20

Page 21: Senior Front End @ Arezzo&Cofpereira/pagina/autoria/html5.pdf · Algumas tags  – Especifica que iremos utilizar HTML5 ao browser  – Serve para

21

Algumas comparações…

Page 22: Senior Front End @ Arezzo&Cofpereira/pagina/autoria/html5.pdf · Algumas tags  – Especifica que iremos utilizar HTML5 ao browser  – Serve para

22

Doctype

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

HTML4

<!DOCTYPE html>

HTML5

Page 23: Senior Front End @ Arezzo&Cofpereira/pagina/autoria/html5.pdf · Algumas tags  – Especifica que iremos utilizar HTML5 ao browser  – Serve para

23

Language

< html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" >

HTML4

<html lang="en">

HTML5

Page 24: Senior Front End @ Arezzo&Cofpereira/pagina/autoria/html5.pdf · Algumas tags  – Especifica que iremos utilizar HTML5 ao browser  – Serve para

24

Character Encoding

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

HTML4

<meta charset="UTF-8">

HTML5

Page 25: Senior Front End @ Arezzo&Cofpereira/pagina/autoria/html5.pdf · Algumas tags  – Especifica que iremos utilizar HTML5 ao browser  – Serve para

25

CSS

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

HTML4

<link rel="stylesheet" href="theme.css">

HTML5

Page 26: Senior Front End @ Arezzo&Cofpereira/pagina/autoria/html5.pdf · Algumas tags  – Especifica que iremos utilizar HTML5 ao browser  – Serve para

26

JavaScript

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

HTML4

<script src="javascript.js">

HTML5

Page 27: Senior Front End @ Arezzo&Cofpereira/pagina/autoria/html5.pdf · Algumas tags  – Especifica que iremos utilizar HTML5 ao browser  – Serve para

27

Alguns exemplos…

Page 28: Senior Front End @ Arezzo&Cofpereira/pagina/autoria/html5.pdf · Algumas tags  – Especifica que iremos utilizar HTML5 ao browser  – Serve para

< audio >

28

Page 29: Senior Front End @ Arezzo&Cofpereira/pagina/autoria/html5.pdf · Algumas tags  – Especifica que iremos utilizar HTML5 ao browser  – Serve para

< video >

29

Page 30: Senior Front End @ Arezzo&Cofpereira/pagina/autoria/html5.pdf · Algumas tags  – Especifica que iremos utilizar HTML5 ao browser  – Serve para

< svg >

30

Page 31: Senior Front End @ Arezzo&Cofpereira/pagina/autoria/html5.pdf · Algumas tags  – Especifica que iremos utilizar HTML5 ao browser  – Serve para

geolocation

31

Page 32: Senior Front End @ Arezzo&Cofpereira/pagina/autoria/html5.pdf · Algumas tags  – Especifica que iremos utilizar HTML5 ao browser  – Serve para

getUserMedia

32

Page 33: Senior Front End @ Arezzo&Cofpereira/pagina/autoria/html5.pdf · Algumas tags  – Especifica que iremos utilizar HTML5 ao browser  – Serve para

33

getUserMedia

Page 34: Senior Front End @ Arezzo&Cofpereira/pagina/autoria/html5.pdf · Algumas tags  – Especifica que iremos utilizar HTML5 ao browser  – Serve para

http://goo.gl/vc4d9W34

Page 35: Senior Front End @ Arezzo&Cofpereira/pagina/autoria/html5.pdf · Algumas tags  – Especifica que iremos utilizar HTML5 ao browser  – Serve para

35https://goo.gl/h4aLfR

Page 36: Senior Front End @ Arezzo&Cofpereira/pagina/autoria/html5.pdf · Algumas tags  – Especifica que iremos utilizar HTML5 ao browser  – Serve para

36http://goo.gl/41pAgH

Page 37: Senior Front End @ Arezzo&Cofpereira/pagina/autoria/html5.pdf · Algumas tags  – Especifica que iremos utilizar HTML5 ao browser  – Serve para

37https://goo.gl/rboZhV

Page 38: Senior Front End @ Arezzo&Cofpereira/pagina/autoria/html5.pdf · Algumas tags  – Especifica que iremos utilizar HTML5 ao browser  – Serve para

38

Page 39: Senior Front End @ Arezzo&Cofpereira/pagina/autoria/html5.pdf · Algumas tags  – Especifica que iremos utilizar HTML5 ao browser  – Serve para

39

http://caniuse.com

Page 40: Senior Front End @ Arezzo&Cofpereira/pagina/autoria/html5.pdf · Algumas tags  – Especifica que iremos utilizar HTML5 ao browser  – Serve para

http://mobilehtml5.org40

Page 41: Senior Front End @ Arezzo&Cofpereira/pagina/autoria/html5.pdf · Algumas tags  – Especifica que iremos utilizar HTML5 ao browser  – Serve para

http://html5test.com41

Page 42: Senior Front End @ Arezzo&Cofpereira/pagina/autoria/html5.pdf · Algumas tags  – Especifica que iremos utilizar HTML5 ao browser  – Serve para

http://goo.gl/wl3OBo42

Page 43: Senior Front End @ Arezzo&Cofpereira/pagina/autoria/html5.pdf · Algumas tags  – Especifica que iremos utilizar HTML5 ao browser  – Serve para

http://www.html5rocks.com43

Page 44: Senior Front End @ Arezzo&Cofpereira/pagina/autoria/html5.pdf · Algumas tags  – Especifica que iremos utilizar HTML5 ao browser  – Serve para

44

http://goo.gl/qwaBjL

Page 45: Senior Front End @ Arezzo&Cofpereira/pagina/autoria/html5.pdf · Algumas tags  – Especifica que iremos utilizar HTML5 ao browser  – Serve para

http://goo.gl/fEQNNu45

Page 46: Senior Front End @ Arezzo&Cofpereira/pagina/autoria/html5.pdf · Algumas tags  – Especifica que iremos utilizar HTML5 ao browser  – Serve para

Obrigado :)

46

@danielrohers