HTML 5 es el nuevo estándar de desarrollo de sitios web. La ponencia parte de las tecnologías actualmente populares para llegar a las implementaciones actuales de HTML 5 en los más modernos navegadores.
3. HTML y XML (90s)
• HyperText Markup Language
• eXtensible Markup Language
4. XML: Un ejemplo
<?xml version="1.0" encoding="UTF-8" ?>
<canal>
<titulo>Mozilla Perú</titulo>
<items>
<item>
<titulo>Actividades Octubre</titulo>
<enlace>http://mozilla.pe/actividades-octubre</enlace>
<descripcion><imagen fuente="fotografiaO.jpg" texto="Evento O" />Este mes
que pasó hicimos una pausa ...</descripcion>
</item>
<item>
<titulo>Mozilla Campus Day en FESOLI</titulo>
<enlace>http://mozilla.pe/mozilla-campus-day-fesoli</enlace>
<descripcion><imagen fuente="fotografiaF.jpg" texto="Evento F" />Culminando
por este año el evento itinerante ...</descripcion>
</item>
</items>
</canal>
5. XHTML 1 (2000)
• eXtensible HyperText Markup Language
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="es-ES">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Mozilla Perú</title>
</head>
<body>
<h1>Mozilla Perú</h1><img src="logo.png" align="left" hspace="10">
<p>Actividades de Mozilla Perú en Octubre 2010
<br>5 de noviembre de 2010 por Juan Eladio. 0 comentarios</p>
</body>
</html>
7. Diseño web sin tablas (2002)
Enfoque tradicional (sólo HTML)
<table><tr><td>Cabecera</td></tr></table>
<table><tr><td>Navega</td></tr></table>
<table>
<tr>
<td><!--otra tabla para colocar cuatro filas
--></td>
<td><!--tabla zona lateral--></td></tr>
</table>
<table><tr><td>Pie de
página</td></tr></table>
8. Diseño web sin tablas (2002)
Enfoque sin tablas (HTML+CSS)
<div id=”cabecera”>Cabecera</div>
<div id=”navegacion”>Navegación</div>
<div id=”seccion”>
<div id=”zona1”>Contenido 1</div>
<div id=”zona1”>Contenido 2</div>
<!--siguen divs-->
</div>
<div id=”lateral”>Zona lateral</div>
<div id=”piedepagina”>Pie de página</div>
En CSS van las posiciones y formatos
9. JavaScript
function CountWords (this_field)
var char_count = this_field.value.length;
var fullStr = this_field.value + " ";
var cleanedStr = fullStr.replace(/s/g,' ');
var splitString = cleanedStr.split(" ");
var word_count = 0;
for (z=0; z<splitString.length; z++)
{if (splitString[z].length > 0) word_count++;}
return word_count;
}
14. HTML5
• Nuevo estándar para el desarrollo de páginas web
• Iniciado por WHATWG
• En desarrollo por World Wide Web Consortium (W3C)
• Ya existen implementaciones preliminares
36. El caso Internet Explorer
• Internet Explorer 9 (beta) tiene soporte de HTML5
• Mientras tanto ...
<!--[if lt IE 9]>
<script
src="http://html5shiv.googlecode.com/svn/trunk/html5.js">
</script>
<![endif]-->
//CSS PIE (www.csspie.com)
.componente { // lineas de atributos CSS3
behavior: url(path/to/PIE.htc); }
37. Y si no es suficiente ...
• Modernizr
www.modernizr.com
42. HTML5 hoy
Implicancias para desarrolladores y
demostraciones
Mozilla Perú
mozilla.pe
www.facebook.com/mozillaperu
groups.google.com/group/mozilla-peru
Juan Eladio Sánchez Rosas
jesanchez(a)mozilla.pe
blogs.antartec.com/opensource
slideshare.net/juaneladio
Notas do Editor
HTML5, features of which initially began arriving in Gecko 1.8.1, is the newest version of the HTML standard. It offers new features to provide not only rich media support but also enhanced support for creating web applications that can interact with the user, his or her local data, and servers more easily and effectively.