SlideShare a Scribd company logo
Introduzione a HTML5 e CSS3
Gabriele Gigliotti
Dipartimento di Matematica – Università degli studi di Udine
April 20th 2011
[1] html5 logo web page
[2] link to Google Images search result page
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0
Transitional//EN"
"http://www.w3.org/TR/xhtml1/
DTD/xhtml1-transitional.dtd">
DOCTYPE: The Syntax

Recommended for you

An Introduction to HTML5
An Introduction to HTML5An Introduction to HTML5
An Introduction to HTML5

This document provides an overview of HTML5, including what it is, new elements and attributes, forms, media capabilities, and APIs. Key points include HTML5 simplifying the DOCTYPE, making small semantic changes to existing elements, removing obsolete elements, adding new semantic elements like article, section, header, footer, and aside, and introducing new form input types. It also covers new media elements like video and audio, the canvas element, local storage, and geolocation.

web devhtml5
Introduction to html 5
Introduction to html 5Introduction to html 5
Introduction to html 5

This document provides an introduction to HTML5 and discusses some of its new features. It begins with an overview of HTML5 and its updated document structure, then describes several new HTML5 elements such as <header>, <nav>, <article>, <section>, <figure>, and <footer>. It also discusses new form attributes, input types, and multimedia capabilities such as audio, video, and geolocation. Finally, it briefly mentions features like drag and drop, SVG graphics, canvas drawing, and server-sent events.

The Dojo Build System
The Dojo Build SystemThe Dojo Build System
The Dojo Build System

The document discusses the Dojo build system which optimizes JavaScript applications by compressing files, combining files into one, resolving CSS imports, and removing unnecessary code and whitespace. It describes build profiles that specify layers and modules, and options for the build script like optimization settings. Running the build script cleans and releases an optimized version of the application to improve loading performance.

shrinksafeuxebubuild
Doctype Made Easy
HTML5
<!DOCTYPE html>
A Bare HTML5 Doc
<!DOCTYPE html>
<html>
</html>
<head>
</head>
<title>A Funny Title</title>
<html lang=”en”>
<meta charset=”utf-8”>
<body>

</body>
Can We Use HTML5 Today?
Google Already Does...

Recommended for you

Continuous integration using thucydides(bdd) with selenium
Continuous integration using thucydides(bdd) with  seleniumContinuous integration using thucydides(bdd) with  selenium
Continuous integration using thucydides(bdd) with selenium

In Thucydides, page objects can be just ordinary WebDriver page objects, on the condition that they have a constructor that accepts a WebDriver parameter. However, the Thucydides PageObject class provides a number of utility methods that make page objects more convenient to work with.

seleniumthucydidesbdd
Browser extension
Browser extensionBrowser extension
Browser extension

sructura generală a unei extensii pentru browser, cu precizarea caracteristicilor particulare pentru fiecare navigator Web în parte (Chrome, Firefox).

cliwbrowser extension developmentinfoiasi
High Performance JavaScript - WebDirections USA 2010
High Performance JavaScript - WebDirections USA 2010High Performance JavaScript - WebDirections USA 2010
High Performance JavaScript - WebDirections USA 2010

This document summarizes Nicholas C. Zakas' presentation on high performance JavaScript. It discusses how the browser UI thread handles both UI updates and JavaScript execution sequentially. Long running JavaScript can cause unresponsive UIs. Techniques to ensure responsive UIs include limiting JavaScript execution time, using timers or web workers to break up processing, reducing repaints and reflows, and grouping style changes. Hardware acceleration and optimizing JavaScript engines have improved performance but responsive UIs still require discipline.

wdusajavascriptperformance
Twitter Already Does...
Youtube Already Does...
Detecting HTML5 Powered Sites
Chrome Add-on: HTML5 powered
[3]
Detecting HTML5 Powered Sites

Recommended for you

Dojo1.0_Tutorials
Dojo1.0_TutorialsDojo1.0_Tutorials
Dojo1.0_Tutorials

This document provides a tutorial for using Dojo 1.0 to create a rich internet application. It demonstrates how to set up the development environment, install Dojo, and create a basic application with Dojo widgets like DateTextBox, ComboBox, CheckBox, RadioButton, and Button. Event handling in Dojo is also discussed, noting that event handler methods only receive the Event object as a parameter rather than this and event like standard DOM event handling. The tutorial code is analyzed and additional widgets are added to the sample application.

javascript
BP210 XPages: Enter The Dojo
BP210 XPages: Enter The DojoBP210 XPages: Enter The Dojo
BP210 XPages: Enter The Dojo

This document provides an introduction to using the Dojo JavaScript framework within XPages applications. It discusses various Dojo widgets like AccordionContainer, TabContainer, ToolTips, and Dialogs. It also covers integrating Dojo themes, working with dates and ratings, extending Dojo modules, and using the rich text editor. The session is aimed at those familiar with XPages who want to create enhanced web applications using Dojo.

ls11xpagesdojo
Cookies and sessions
Cookies and sessionsCookies and sessions
Cookies and sessions

This document provides an overview of cookies and sessions. It defines cookies as small text files stored on a user's computer that contain information about a website visit. Sessions are a combination of a server-side cookie containing a unique session token and client-side cookie. The document discusses setting, retrieving, and deleting cookies using JavaScript, as well as the advantages of storing session data on the server rather than in client-side cookies.

cookiessessionshttp cookie
HTML Goes Multimedia (Natively)!
Brand new <video> and <audio> tags.
Natively embedding video and audio files in html
file (as you do with images).
No Flash, Silverlight or other proprietary plug-in
HTML <video>: The Syntax
<video src="video.webm" controls>
HTML <video>: The Syntax
<video src="video.webm" controls>
</video>
Your browser does not support video element.
The Codec War
WebM H.264
(mp4)
Ogg Theora
IE9 Manual
Install
yes no
FF4 yes no yes
Chrome yes About to
drop
yes
Opera yes no yes
Safari no yes no

Recommended for you

Magento Fireside Chat: "Wiring Mageno Projects"
Magento Fireside Chat: "Wiring Mageno Projects"Magento Fireside Chat: "Wiring Mageno Projects"
Magento Fireside Chat: "Wiring Mageno Projects"

Slides of the Magento Fireside Chat March 20th, 2014 with Fabrizio Branca (@fbrnc) Bastian Ike (@b_ike) Daniel Fahlke (@flyingmana) Rolando Granadino (@beeplogic) Ben Marks (@benmarks)

 
by AOE
composermagento
JavaScript Basic
JavaScript BasicJavaScript Basic
JavaScript Basic

Slide ini merupakan tutorial dasar dari penggunaan javaScript. Bagaimana javascript berjalan dan penggunaannya, javaScript statement, javaScript variable, javaScript looping, dan javaScript operator.

javascriptbasichtml
HTML5 Introduction
HTML5 IntroductionHTML5 Introduction
HTML5 Introduction

This document provides an overview and introduction to HTML5. It begins with a discussion of browser market share statistics and the birth of HTML5 by the WHATWG organization. It then outlines the wide range of new HTML5 markup, elements, events, APIs and technologies including forms, canvas, web sockets, and more. The remainder of the document discusses the status and implementation of these HTML5 features across modern browsers like Firefox, and provides references to HTML5 test suites, specifications, implementations and demos.

safarihtml5firefox
The Codec War Effect
<video controls>
</video>
<source src="video.webm"
type='video/webm; codecs="vp8, vorbis"'>
<source src="video.mp4" type='video/mp4;
codecs="avc1.42E01E, mp4a.40.2"'>
Your browser does not support video element.
Flash vs HTML5 <video>
● Easy integration with other
web tech.
● No security issues.
● It delivers better semantic.
● Content Protection.
● Easily Manageble.
● No affected by codec war
<video>
Flash
[4] Taken from Sonny Piers Photostream on Flikr
Web Forms: New Input Types
Before HTML5
<input type=”text”>
Generic use
Web Forms: New Input Types
<form>
<input type=”search”>
...
</form>

Recommended for you

Introduction to HTML5
Introduction to HTML5Introduction to HTML5
Introduction to HTML5

This document provides an introduction to HTML5 and summarizes its new features. It describes the new HTML5 doctype, new semantic elements like header, nav, section and article, new form input types like color and date, support for embedded video and audio, the canvas element for drawing, the history API for manipulating the browser history, local storage for persistent data, web workers for background processing, and links to additional HTML5 resources. The document serves as an overview of the new capabilities introduced in HTML5.

htmlhtml5
Introduction to Web Browser Extension/Add-ons
Introduction to Web Browser Extension/Add-onsIntroduction to Web Browser Extension/Add-ons
Introduction to Web Browser Extension/Add-ons

An overview of what Browser Extensions are, why they are useful and important, what all they can do and moreover, what kind of technologies and knowledge is involved in developing a Google Chrome Extension or Mozilla Firefox Add-on

extensionmozilla firefoxgoogle chrome
End-to-end testing with geb
End-to-end testing with gebEnd-to-end testing with geb
End-to-end testing with geb

Why and when you need end-to-end tests, a spooky story with a 15 years software beast, and how to develop concise, maintainable functional tests using Groovy, Spock and Geb.

groovyspockgeb
New Input Types
<form>
<input type=”email”>
...
</form>
Semantic at work
(part 1)
New Input Types
<form>
<input type=”email”>
...
</form>
Semantic at work
(part 2)
New Input Types
<form>
<input type=”url”>
...
</form>
New Input Types
<form>
<input type=”tel”>
...
</form>
Delivering better
User experience
through semantic!

Recommended for you

GWT = easy AJAX
GWT = easy AJAXGWT = easy AJAX
GWT = easy AJAX

This document summarizes key features of Google Web Toolkit (GWT): - GWT allows developing AJAX applications in Java, with the code compiling to optimized JavaScript. It handles cross-browser issues and allows debugging like a standard Java application. - GWT includes easy to use widgets, remote procedure calls (RPC) mechanism, internationalization support, and history handling. It also supports JSON, deferred binding, and native JavaScript integration. - New features in GWT 2.0 include an in-browser development mode, speed tracer for performance analysis, code splitting for faster loading, declarative UI creation, and resource bundles for optimized downloads.

gwt ajax java javascript dynamic google web toolki
Mono for Android Development
Mono for Android DevelopmentMono for Android Development
Mono for Android Development

The document discusses Mono for Android development. It provides an overview of Mono, which is an open source implementation of .NET that allows developers to easily create cross-platform applications. It also discusses Android, the world's most popular mobile platform. Mono for Android allows developers to create native Android apps using C# and the .NET framework. It provides a complete binding to the Java/Android API and uses standard Android resources. The document outlines the Mono for Android architecture and API, provides code examples, and addresses common myths about using Mono for cross-platform mobile development.

monoandroidmono for android
Android Applications Introduction
Android Applications IntroductionAndroid Applications Introduction
Android Applications Introduction

The document introduces Android app development. It discusses Android basics such as it being an open source operating system based on Linux and programmed in C, C++ and Java. It also outlines Android dependencies which require tools like Java, Android SDK and Eclipse IDE. The document then covers key Android features like emulators and libraries and concludes with a demo of a simple Android app and contact details.

android app development companyandroid application developersppt on andriod
Input Type Number Attributes
<form>
<input type=”number”
min=”1”
max=”11”
step=”2”>
<input type="range" min="1" max="11"
step="2" value="3">
...
</form>
Input Type “Calendar Controls”
<input type="date"
min="2011-04-02"
max="2011-04-30"
step="2">
Input Type “Calendar Controls”
<form>
<input type=”time” value=”00:30” >
...
</form>
Web Forms 2.0: New Attributes
You can do in HTML what yo previously did
with JavaScript”
autofocus
<input type="text" id="hobby" autofocus>
autofocus through JavaScript (the old way)
<script>
// to be invoked on onload()
function giveFocus() {
document.getElementById("hobby").focus();
}
</script>

Recommended for you

Android Basics
Android BasicsAndroid Basics
Android Basics

This document provides an overview of how to get started developing Android applications. It discusses the Android SDK tools, including the Android Emulator, Dalvik Debug Monitoring Service (DDMS), and Android Debug Bridge (ADB). It also covers key Android application architecture concepts like activities, services, intents, and manifest declarations. The document demonstrates how to set up threading and debugging. Overall, it serves as a starting guide for someone just beginning their Android development journey.

Android basics
Android basicsAndroid basics
Android basics

This document provides an overview of the Android operating system. It discusses the key components of Android including the Linux kernel, libraries, runtime environment, framework, and applications. It also covers Android development tools and the application lifecycle.

Android programming basics
Android programming basicsAndroid programming basics
Android programming basics

This document provides an overview of Android basics including UI elements, views, view groups, common layouts, buttons, text views, lists views, grid views, and fragments. It discusses the view hierarchy and how views and view groups are arranged in a tree structure. It provides examples of linear, relative, grid and list layouts and how to define buttons, text fields, labels and other widgets. It also covers topics like event handling, populating spinners and pickers, and using fragments in an Android application.

androidmobile appsprogramming
Web Forms 2.0: New Attributes
You can do in HTML what yo previously did
with JavaScript”
pattern
<input type="text" id="cap" name="cap"
pattern="[0-9]{5}">
The Canvas Element
A “place” where you can write: JavaScript
will be your pencil :)
<canvas></canvas>
Or
<canvas width=”300”
height=”300”></canvas>
The Canvas 2D API
See note [5]
The Canvas 2D API @ Work
[6] Developed by @hyperandroid

Recommended for you

Android basics
Android basicsAndroid basics
Android basics

Introduction to android,its architecture and what basic components it has for applications and application devlopers.

androidmobile application development
HTML5 Essential Training
HTML5 Essential TrainingHTML5 Essential Training
HTML5 Essential Training

This document outlines an agenda for an HTML5 essential training. It covers front-end technologies, HTML basics and evolution, terminology, document structure, common elements, section elements, semantic elements, features beyond basics, and useful resources. The training includes live demos of common elements and <div> usage. It compares using HTML4 divs versus HTML5 semantic elements for page structure.

html5htmlhtml
The Rich Standard: Getting Familiar with HTML5
The Rich Standard: Getting Familiar with HTML5The Rich Standard: Getting Familiar with HTML5
The Rich Standard: Getting Familiar with HTML5

HTML 5 may take some time to find full support in all major browsers, but you may be surprised to discover how many of HTML 5’s features are available today! HTML 5 is the next generation standard for web applications, and it promises to give plug-in based RIAs a serious challenge. In this demo heavy session, you’ll see HTML 5 in action and learn what you can do with today’s browser support for the new standard. If you’re building rich web applications and you’ve never touched HTML 5, this session is a must see.

html5
A Custom JavaScript Library

[7]
Semantic Rules
HTML5 new semantic tags.
<nav>
<footer>
<article>
<header>
<section>
<aside>
They bring a clear meaning to our pages.
Semantic Rules: <nav>
<nav>
<ul>
<li><a href="archive.html">Old Posts</a></li>
<li><a href="last_post.html">Last Post</a></li>
<li><a href=”faq.html”>FAQ</a></li>
</ul>
</nav>
They bring a clear meaning to our pages.
Semantic Rules: <footer>
<footer>
<nav>
<ul>
<li><a href="archive.html">Old Posts</a></li>
<li><a href="last_post.html">Last Post</a></li>
<li><a href=”faq.html”>FAQ</a></li>
</ul>
</nav>
</footer>
They bring a clear meaning to our pages.

Recommended for you

1 Web Page Foundations Overview This lab walk.docx
1  Web Page Foundations Overview This lab walk.docx1  Web Page Foundations Overview This lab walk.docx
1 Web Page Foundations Overview This lab walk.docx

1 Web Page Foundations Overview This lab walks you through creating and deploying a simple web page. The web page you create in this lab will have no functionality yet. It just contains many of the html elements you will see on most web pages today. We will turn this web page into a working web application next week. A text editor will be used to create the web page. You are welcome to use an html editor or Integrated Development Environment (IDE) to help you generate the web pages if you like. Please be sure you have read the “Creating Web Pages” competencies prior to completing this Lab. The online textbook has many html code examples that will help you become comfortable with the most popular html tags. Learning Outcomes: At the completion of the lab you should be able to: 1. Create a web page comprised of formatted text, images, lists, tables, hyperlinks and forms. 2. Review and analyze Apache Web server logs notating http access, http methods and http error codes Lab Submission Requirements: After completing this lab, you will submit a word (or PDF) document that meets all of the requirements in the description at the end of this document. In addition several html and image files along with the Apache2 access.log file will be submitted. You can submit all files in a zip file. Virtual Machine Account Information Your Virtual Machine has been preconfigured with all of the software you will need for this class. The default username and password are: Username : umucsdev Password: umuc$d8v Part 1 – Create a Web page We will use the gedit text editor to create the web page. The web page will resemble a company home page with an introduction, some formatted text, links to other web pages, images and a form designed to gather customer information. 1. Assuming you have already launched and logged into your SDEV32Bit Virtual Machine (VM) from the Oracle VirtualBox, click on the gedit icon found on the left side of the screen of your VM. 2 2. After clicking the terminal icon a terminal will appear Click to open text editor 3 3. To create a new document just begin typing or copying and pasting the html code from the examples. We will create the web page in several steps adding a few paragraphs and sections at time. Viewing the web page between each step will help minimize errors in the html code. To add the first section of the html web page copy and paste the following html code into the gedit editor: <!DOCTYPE html> <!-- CNShome.html --> <!-- Jan 22, XXXX --> <html> <head> <title>Computer Security Home Page </title> </head> <body> <h1>Welcome to Computer Security Consultants! </h1> <p> </body> </html> Save the file in the /var/www/html/week2 folder in a file named CNShome.html. Note, you may need to create a folder named week2. Recall the /var/www/html is the location of the Apache2 web server html files. Creating ...

HTML 5 - Overview
HTML 5 - OverviewHTML 5 - Overview
HTML 5 - Overview

HTML 5 is the latest version of the HTML standard. It includes several new elements and features to improve structure and behavior. Some key changes include new semantic elements like <article>, <aside>, <header>, and <footer>; built-in support for audio and video; the <canvas> element for drawing graphics; and forms with new input types. HTML 5 aims to simplify HTML and separate structure and presentation, making code cleaner and pages more accessible. It is developed jointly by the WHATWG and W3C organizations.

phppaideguaphphtml5
Html5 tutorial
Html5 tutorialHtml5 tutorial
Html5 tutorial

HTML5 will be the new standard for HTML and includes several new features such as new semantic elements, canvas element for 2D drawing, video and audio elements, local storage support and new form controls. It is still a work in progress but major browsers already support many of its new APIs and elements. Some of the key rules for HTML5 include that new features should be based on HTML, CSS, DOM and JavaScript and reduce the need for plugins.

htmlhtml5html element
Semantic Rules: <article>
<article>
<header>
<h1>Open Data, free your dataset</h1>
<p>Written by Gabriele Gigliotti</p>
<p>Published on <time pubdate datetime="2010-10-
22T15:30+01:00">22-10-2010</time>.</p>
</header>
<p>article text</p>
</article>
They bring a clear meaning to our pages.
Semantic Rules: <time>
<time pubdate
datetime="2011-04-20T15:00+01:00">
April 4th 2011
</time>
HTML5 Feature Detection
Modernizr: the easiest way to check for any HTML5 related
feature (and much more).
<script src="modernizr-1.7.min.js"></script>
[8]
Feature Detection With Modernizr
if (Modernizr.canvas) {
// create a canvas obj & get a 2d context
}
<script type="text/javascript" src="modernizr-1.7.js"></script>
// Testing for video and codec support:
if (Modernizr.video && Modernizr.video.webm) {
// preload webm video assets
}
else if (Modernizr.video && Modernizr.video.h264){
// preload h264 assets
}

Recommended for you

Jsf2 html5-jazoon
Jsf2 html5-jazoonJsf2 html5-jazoon
Jsf2 html5-jazoon

This document discusses HTML5 and how it can be used to enhance JavaServer Faces (JSF) 2.0 components. It provides an overview of HTML5 features such as new semantic elements, form controls, media elements, graphics with canvas, and JavaScript APIs. It also describes JSF 2.0's composite component model and how components can leverage HTML5 features like media playback and JavaScript integration. The document demonstrates a composite audio component that uses HTML5's audio element and JavaScript to control audio playback from JSF. It encourages leveraging HTML5 to promote rich user interfaces and future-proof JSF applications.

Html5 drupal7 with mandakini kumari(1)
Html5 drupal7 with mandakini kumari(1)Html5 drupal7 with mandakini kumari(1)
Html5 drupal7 with mandakini kumari(1)

The document provides an overview of HTML5 and how to implement it with Drupal 7. It discusses new HTML5 elements, attributes, and forms; how to make Drupal 7 themes responsive with HTML5; differences between HTML4, XHTML, and HTML5; and how to use CSS3 with HTML5 for effects like shadows and gradients. The document includes links to HTML5 tools and resources for Drupal and recommends familiarity with HTML, CSS, Drupal theming, and modern browsers.

drupal modulehtml5drupal theme
Attractive HTML5~開発者の視点から~
Attractive HTML5~開発者の視点から~Attractive HTML5~開発者の視点から~
Attractive HTML5~開発者の視点から~

The document discusses HTML5 and its APIs. It provides an overview of several HTML5 APIs including the geolocation API, web storage API, web workers API, and WebSocket API. It also discusses how these new HTML5 features allow for more advanced web applications compared to older technologies like Flash. Finally, it mentions some libraries and tools for testing HTML5 browser support.

html5modest
Browser Detection (Pay Attention!)
Firefox 4.01 User-Agent String on Linux
Mozilla/5.0 (X11; Linux i686; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
And then spoofing came along!
[9]
CSS3 Pseudo Classes
p:empty { margin: 20px; }
<p>here goes some text</p>
<p></p>
<p>other text goes here</p>
CSS3 Pseudo Classes
span:only-child { color: #f00; }
<p>I can resist <span>everything</span> except
<span>temptation.</span></p>
<p>I can resist everything <span>except</span>
temptation.</p>
Oscar Wilde
CSS3 Attribute Selectors
a[href^="mailto:"]
{text-decoration: none;}
<p>
Visit my website:
<a href="http://example.org">Acme</a> and
for any question feel free to drop me a line at
<a href="mailto:me@example.org">
me@example.org</a>
</p>

Recommended for you

Introduccion a HTML5
Introduccion a HTML5Introduccion a HTML5
Introduccion a HTML5

Introducción rápida a HTML5, repasando brevemente la historia de HTML, qué APIs se añaden a HTML5, y qué avances en HTML, CSS y JavaScript rodean a este estándar.

html5introduccioncss3
html5
html5html5
html5

HTML5 introduces many new features for improving the semantic structure of documents, incorporating multimedia and graphics, and interacting with forms and graphical objects. These include new elements like <video>, <audio>, <canvas>, and <svg> for embedding multimedia and graphics, as well as new form controls. CSS3 also introduces new selectors and properties for effects like rounded corners, shadows, gradients, and transformations. JavaScript APIs allow access to features like geolocation, offline storage, and communication between frames. Browser support for HTML5 features is increasing but not yet complete, so techniques like feature detection and polyfills are recommended.

html5
Html5 intro
Html5 introHtml5 intro
Html5 intro

The document provides an introduction and overview of HTML5. It discusses the structure of an HTML5 page, including updates to the doctype, removal of xmlns, and addition of the meta charset tag. New HTML5 elements like article, aside, audio, canvas, and video are presented. Updates to HTML5 forms, including new input types and attributes, are covered. The use of video and audio elements is explained. Finally, the canvas element is introduced and basic drawing using the canvas context is demonstrated.

html5 video canvas
CSS3 Borders
div { border-radius: 20px; }
CSS3 Borders
div {
border-radius: 170px/60px;
}
[10]
CSS3 Cols
div { column-width: 200px; }
CSS3 Cols
div { column-count: 3; }

Recommended for you

What is HTML 5?
What is HTML 5?What is HTML 5?
What is HTML 5?

Web Developers are excited to use HTML 5 features but sometimes they need to explain to their non-technical boss what it is and how it can benefit the company. This presentation provides just enough information to share the capabilities of this new technologies without overwhelming the audience with the technical details. "What is HTML5?" covers things you might have seen on other websites and wanted to add on your own website but you didn't know it was a feature of HTML 5. After viewing this slideshow you will probably give your web developer the "go ahead" to upgrade your current HTML 4 website to HTML 5. You will also understand why web developers don't like IE (Internet Explorer) and why they always want you to keep your browser updated to latest version. "I have seen the future. It's in my browser" is the slogan used by many who have joined the HTML 5 revolution.

html 5microdatahtml5
Brave new world of HTML5
Brave new world of HTML5Brave new world of HTML5
Brave new world of HTML5

In this, my talk for Webinale in Berlin, June 1st 2011, I give an overview of HTML5 history and main features, relating it all back to how possible it is use develop with these new features today. Thanks to Patrick Lauke for allowing me to steal a lot of his slides ;-)

audiohistorysemantics
webinale2011_Chris Mills_Brave new world of HTML5Html5
webinale2011_Chris Mills_Brave new world of HTML5Html5webinale2011_Chris Mills_Brave new world of HTML5Html5
webinale2011_Chris Mills_Brave new world of HTML5Html5

1. HTML5 provides new semantic elements like <header>, <footer>, and <nav> that allow for more structured markup. It also extends existing APIs and adds new APIs for multimedia, forms, and building web applications. 2. HTML5 introduces multimedia elements <video> and <audio> that allow embedded video and audio without plugins. It also includes the <canvas> element for scriptable drawing. 3. HTML5 includes new APIs for building powerful web applications, including geolocation, offline application caching, local storage, and databases. However, browser support is still evolving so these should be used carefully with feature detection.

CSS3 Cols
div { column-gap: 10px; }
div { column-rule: 3px dotted
#000; }
CSS3 Transformations
img {
transform:
rotate(15deg);
}
[11]
CSS3 Transitions
div {
position: absolute;
top: 20px;
left: 20px;
transition-property: left;
transition-duration: 4s;
}
div:hover { left: 300px; }
CSS3 Transitions
div {
position: absolute;
top: 20px;
left: 20px;
transition-property: left;
transition-duration: 4s;
transition-timing-function: linear;
}
div:hover { left: 300px; }

Recommended for you

HTML5 and the Open Web Platform - Lecture 03 - Web Information Systems (WE-DI...
HTML5 and the Open Web Platform - Lecture 03 - Web Information Systems (WE-DI...HTML5 and the Open Web Platform - Lecture 03 - Web Information Systems (WE-DI...
HTML5 and the Open Web Platform - Lecture 03 - Web Information Systems (WE-DI...

The document discusses the history and features of HTML5. It describes how HTML5 aims to evolve the HTML standard to enable richer web applications while maintaining compatibility. Key features discussed include new semantic elements, forms improvements, video/audio playback, 2D/3D canvas drawing, and local storage APIs to store data on the client-side. The document provides examples and browser support information for various HTML5 features.

htmlxmldom
Using HTML5 sensibly
Using HTML5 sensiblyUsing HTML5 sensibly
Using HTML5 sensibly

HTML5 is hot right now and a lot is being said about it. It is time to take a look at what it means to apply it on the web and see how things work out. Turns out we still have a lot to fix and we need your help.

html5legacy browserspolyfills
Introduction to Html5
Introduction to Html5Introduction to Html5
Introduction to Html5

HTML5 is a language for structuring and presenting content for the World Wide Web. it is the fifth revision of the HTML standard (created in 1990 and standardized as HTML4 as of 1997) and as of February 2012 is still under development. Its core aims have been to improve the language with support for the latest multimedia while keeping it easily readable by humans and consistently understood by computers and devices (web browsers, parsers, etc.). It improves interoperability and reduces development costs by making precise rules on how to handle all HTML elements, and how to recover from errors

htmlhtml5web development
Title: HTML5 e CSS3
Author: Gabriele Gigliotti
Editor: Apogeo
Website: http://www.gigliotti.it/
@: gabriele.gigliotti@gmail.com
Twitter: @ridillo
Links & References
[1]: http://www.w3.org/html/logo/
[2]: http://goo.gl/N8K5x
[3]: https://chrome.google.com/webstore/detail/klleofbhhghgacodijohlacbfhfcefom
[4]: http://www.flickr.com/photos/sonnyp/5623796739/in/set-72157626384135737
[5]: Images taken from Chapter 6 “Canvas” “HTML5 e CSS3” Gigliotti G. - Apogeo Ed.
[6]: http://js1k.com/2010-first/demo/70
[7]: http://code.google.com/p/explorercanvas/
[8]: http://www.modernizr.com/
[9]: https://addons.mozilla.org/en-US/firefox/addon/user-agent-switcher/
[10]: Fig 13.6 page 227 “HTML5 e CSS3” Gigliotti G. - Apogeo Ed.
[11]: Fig 14.2 page 243 “HTML5 e CSS3” Gigliotti G. - Apogeo Ed.

More Related Content

What's hot

Local SQLite Database with Node for beginners
Local SQLite Database with Node for beginnersLocal SQLite Database with Node for beginners
Local SQLite Database with Node for beginners
Laurence Svekis ✔
 
lect9
lect9lect9
Accelerate your Lotus Domino Web Applications with Dojo and XPages
Accelerate your Lotus Domino Web Applications with Dojo and XPagesAccelerate your Lotus Domino Web Applications with Dojo and XPages
Accelerate your Lotus Domino Web Applications with Dojo and XPages
Davalen LLC
 
An Introduction to HTML5
An Introduction to HTML5An Introduction to HTML5
An Introduction to HTML5
Steven Chipman
 
Introduction to html 5
Introduction to html 5Introduction to html 5
Introduction to html 5
Sayed Ahmed
 
The Dojo Build System
The Dojo Build SystemThe Dojo Build System
The Dojo Build System
klipstein
 
Continuous integration using thucydides(bdd) with selenium
Continuous integration using thucydides(bdd) with  seleniumContinuous integration using thucydides(bdd) with  selenium
Continuous integration using thucydides(bdd) with selenium
Khyati Sehgal
 
Browser extension
Browser extensionBrowser extension
Browser extension
Cosmin Stefanache
 
High Performance JavaScript - WebDirections USA 2010
High Performance JavaScript - WebDirections USA 2010High Performance JavaScript - WebDirections USA 2010
High Performance JavaScript - WebDirections USA 2010
Nicholas Zakas
 
Dojo1.0_Tutorials
Dojo1.0_TutorialsDojo1.0_Tutorials
Dojo1.0_Tutorials
tutorialsruby
 
BP210 XPages: Enter The Dojo
BP210 XPages: Enter The DojoBP210 XPages: Enter The Dojo
BP210 XPages: Enter The Dojo
Paul Withers
 
Cookies and sessions
Cookies and sessionsCookies and sessions
Cookies and sessions
Lena Petsenchuk
 
Magento Fireside Chat: "Wiring Mageno Projects"
Magento Fireside Chat: "Wiring Mageno Projects"Magento Fireside Chat: "Wiring Mageno Projects"
Magento Fireside Chat: "Wiring Mageno Projects"
AOE
 
JavaScript Basic
JavaScript BasicJavaScript Basic
JavaScript Basic
Finsa Nurpandi
 
HTML5 Introduction
HTML5 IntroductionHTML5 Introduction
HTML5 Introduction
dynamis
 
Introduction to HTML5
Introduction to HTML5Introduction to HTML5
Introduction to HTML5
Adrian Olaru
 
Introduction to Web Browser Extension/Add-ons
Introduction to Web Browser Extension/Add-onsIntroduction to Web Browser Extension/Add-ons
Introduction to Web Browser Extension/Add-ons
Pranav Gupta
 
End-to-end testing with geb
End-to-end testing with gebEnd-to-end testing with geb
End-to-end testing with geb
Jesús L. Domínguez Muriel
 
GWT = easy AJAX
GWT = easy AJAXGWT = easy AJAX
GWT = easy AJAX
Olivier Gérardin
 

What's hot (19)

Local SQLite Database with Node for beginners
Local SQLite Database with Node for beginnersLocal SQLite Database with Node for beginners
Local SQLite Database with Node for beginners
 
lect9
lect9lect9
lect9
 
Accelerate your Lotus Domino Web Applications with Dojo and XPages
Accelerate your Lotus Domino Web Applications with Dojo and XPagesAccelerate your Lotus Domino Web Applications with Dojo and XPages
Accelerate your Lotus Domino Web Applications with Dojo and XPages
 
An Introduction to HTML5
An Introduction to HTML5An Introduction to HTML5
An Introduction to HTML5
 
Introduction to html 5
Introduction to html 5Introduction to html 5
Introduction to html 5
 
The Dojo Build System
The Dojo Build SystemThe Dojo Build System
The Dojo Build System
 
Continuous integration using thucydides(bdd) with selenium
Continuous integration using thucydides(bdd) with  seleniumContinuous integration using thucydides(bdd) with  selenium
Continuous integration using thucydides(bdd) with selenium
 
Browser extension
Browser extensionBrowser extension
Browser extension
 
High Performance JavaScript - WebDirections USA 2010
High Performance JavaScript - WebDirections USA 2010High Performance JavaScript - WebDirections USA 2010
High Performance JavaScript - WebDirections USA 2010
 
Dojo1.0_Tutorials
Dojo1.0_TutorialsDojo1.0_Tutorials
Dojo1.0_Tutorials
 
BP210 XPages: Enter The Dojo
BP210 XPages: Enter The DojoBP210 XPages: Enter The Dojo
BP210 XPages: Enter The Dojo
 
Cookies and sessions
Cookies and sessionsCookies and sessions
Cookies and sessions
 
Magento Fireside Chat: "Wiring Mageno Projects"
Magento Fireside Chat: "Wiring Mageno Projects"Magento Fireside Chat: "Wiring Mageno Projects"
Magento Fireside Chat: "Wiring Mageno Projects"
 
JavaScript Basic
JavaScript BasicJavaScript Basic
JavaScript Basic
 
HTML5 Introduction
HTML5 IntroductionHTML5 Introduction
HTML5 Introduction
 
Introduction to HTML5
Introduction to HTML5Introduction to HTML5
Introduction to HTML5
 
Introduction to Web Browser Extension/Add-ons
Introduction to Web Browser Extension/Add-onsIntroduction to Web Browser Extension/Add-ons
Introduction to Web Browser Extension/Add-ons
 
End-to-end testing with geb
End-to-end testing with gebEnd-to-end testing with geb
End-to-end testing with geb
 
GWT = easy AJAX
GWT = easy AJAXGWT = easy AJAX
GWT = easy AJAX
 

Viewers also liked

Mono for Android Development
Mono for Android DevelopmentMono for Android Development
Mono for Android Development
Thinslices
 
Android Applications Introduction
Android Applications IntroductionAndroid Applications Introduction
Android Applications Introduction
Anjali Rao
 
Android Basics
Android BasicsAndroid Basics
Android Basics
Arvind Sahu
 
Android basics
Android basicsAndroid basics
Android basics
Akhil Kumar
 
Android programming basics
Android programming basicsAndroid programming basics
Android programming basics
Egerton University
 
Android basics
Android basicsAndroid basics
Android basics
Syed Luqman Quadri
 

Viewers also liked (6)

Mono for Android Development
Mono for Android DevelopmentMono for Android Development
Mono for Android Development
 
Android Applications Introduction
Android Applications IntroductionAndroid Applications Introduction
Android Applications Introduction
 
Android Basics
Android BasicsAndroid Basics
Android Basics
 
Android basics
Android basicsAndroid basics
Android basics
 
Android programming basics
Android programming basicsAndroid programming basics
Android programming basics
 
Android basics
Android basicsAndroid basics
Android basics
 

Similar to HTML5 e CSS3 (slides della sessione tenuta al DIMI di Udine)

HTML5 Essential Training
HTML5 Essential TrainingHTML5 Essential Training
HTML5 Essential Training
Kaloyan Kosev
 
The Rich Standard: Getting Familiar with HTML5
The Rich Standard: Getting Familiar with HTML5The Rich Standard: Getting Familiar with HTML5
The Rich Standard: Getting Familiar with HTML5
Todd Anglin
 
1 Web Page Foundations Overview This lab walk.docx
1  Web Page Foundations Overview This lab walk.docx1  Web Page Foundations Overview This lab walk.docx
1 Web Page Foundations Overview This lab walk.docx
honey725342
 
HTML 5 - Overview
HTML 5 - OverviewHTML 5 - Overview
HTML 5 - Overview
Marcelio Leal
 
Html5 tutorial
Html5 tutorialHtml5 tutorial
Html5 tutorial
madhavforu
 
Jsf2 html5-jazoon
Jsf2 html5-jazoonJsf2 html5-jazoon
Jsf2 html5-jazoon
Roger Kitain
 
Html5 drupal7 with mandakini kumari(1)
Html5 drupal7 with mandakini kumari(1)Html5 drupal7 with mandakini kumari(1)
Html5 drupal7 with mandakini kumari(1)
Mandakini Kumari
 
Attractive HTML5~開発者の視点から~
Attractive HTML5~開発者の視点から~Attractive HTML5~開発者の視点から~
Attractive HTML5~開発者の視点から~
Sho Ito
 
Introduccion a HTML5
Introduccion a HTML5Introduccion a HTML5
Introduccion a HTML5
Pablo Garaizar
 
html5
html5html5
Html5 intro
Html5 introHtml5 intro
Html5 intro
Kevin DeRudder
 
What is HTML 5?
What is HTML 5?What is HTML 5?
What is HTML 5?
Susan Winters
 
Brave new world of HTML5
Brave new world of HTML5Brave new world of HTML5
Brave new world of HTML5
Chris Mills
 
webinale2011_Chris Mills_Brave new world of HTML5Html5
webinale2011_Chris Mills_Brave new world of HTML5Html5webinale2011_Chris Mills_Brave new world of HTML5Html5
webinale2011_Chris Mills_Brave new world of HTML5Html5
smueller_sandsmedia
 
HTML5 and the Open Web Platform - Lecture 03 - Web Information Systems (WE-DI...
HTML5 and the Open Web Platform - Lecture 03 - Web Information Systems (WE-DI...HTML5 and the Open Web Platform - Lecture 03 - Web Information Systems (WE-DI...
HTML5 and the Open Web Platform - Lecture 03 - Web Information Systems (WE-DI...
Beat Signer
 
Using HTML5 sensibly
Using HTML5 sensiblyUsing HTML5 sensibly
Using HTML5 sensibly
Christian Heilmann
 
Introduction to Html5
Introduction to Html5Introduction to Html5
Introduction to Html5
www.netgains.org
 
Developing web applications in 2010
Developing web applications in 2010Developing web applications in 2010
Developing web applications in 2010
Ignacio Coloma
 
HTML5 and friends - JISC CETIS Conference 2010 Nottingham 15.11.2010
HTML5 and friends - JISC CETIS Conference 2010 Nottingham 15.11.2010HTML5 and friends - JISC CETIS Conference 2010 Nottingham 15.11.2010
HTML5 and friends - JISC CETIS Conference 2010 Nottingham 15.11.2010
Patrick Lauke
 
Html5 For Jjugccc2009fall
Html5 For Jjugccc2009fallHtml5 For Jjugccc2009fall
Html5 For Jjugccc2009fall
Shumpei Shiraishi
 

Similar to HTML5 e CSS3 (slides della sessione tenuta al DIMI di Udine) (20)

HTML5 Essential Training
HTML5 Essential TrainingHTML5 Essential Training
HTML5 Essential Training
 
The Rich Standard: Getting Familiar with HTML5
The Rich Standard: Getting Familiar with HTML5The Rich Standard: Getting Familiar with HTML5
The Rich Standard: Getting Familiar with HTML5
 
1 Web Page Foundations Overview This lab walk.docx
1  Web Page Foundations Overview This lab walk.docx1  Web Page Foundations Overview This lab walk.docx
1 Web Page Foundations Overview This lab walk.docx
 
HTML 5 - Overview
HTML 5 - OverviewHTML 5 - Overview
HTML 5 - Overview
 
Html5 tutorial
Html5 tutorialHtml5 tutorial
Html5 tutorial
 
Jsf2 html5-jazoon
Jsf2 html5-jazoonJsf2 html5-jazoon
Jsf2 html5-jazoon
 
Html5 drupal7 with mandakini kumari(1)
Html5 drupal7 with mandakini kumari(1)Html5 drupal7 with mandakini kumari(1)
Html5 drupal7 with mandakini kumari(1)
 
Attractive HTML5~開発者の視点から~
Attractive HTML5~開発者の視点から~Attractive HTML5~開発者の視点から~
Attractive HTML5~開発者の視点から~
 
Introduccion a HTML5
Introduccion a HTML5Introduccion a HTML5
Introduccion a HTML5
 
html5
html5html5
html5
 
Html5 intro
Html5 introHtml5 intro
Html5 intro
 
What is HTML 5?
What is HTML 5?What is HTML 5?
What is HTML 5?
 
Brave new world of HTML5
Brave new world of HTML5Brave new world of HTML5
Brave new world of HTML5
 
webinale2011_Chris Mills_Brave new world of HTML5Html5
webinale2011_Chris Mills_Brave new world of HTML5Html5webinale2011_Chris Mills_Brave new world of HTML5Html5
webinale2011_Chris Mills_Brave new world of HTML5Html5
 
HTML5 and the Open Web Platform - Lecture 03 - Web Information Systems (WE-DI...
HTML5 and the Open Web Platform - Lecture 03 - Web Information Systems (WE-DI...HTML5 and the Open Web Platform - Lecture 03 - Web Information Systems (WE-DI...
HTML5 and the Open Web Platform - Lecture 03 - Web Information Systems (WE-DI...
 
Using HTML5 sensibly
Using HTML5 sensiblyUsing HTML5 sensibly
Using HTML5 sensibly
 
Introduction to Html5
Introduction to Html5Introduction to Html5
Introduction to Html5
 
Developing web applications in 2010
Developing web applications in 2010Developing web applications in 2010
Developing web applications in 2010
 
HTML5 and friends - JISC CETIS Conference 2010 Nottingham 15.11.2010
HTML5 and friends - JISC CETIS Conference 2010 Nottingham 15.11.2010HTML5 and friends - JISC CETIS Conference 2010 Nottingham 15.11.2010
HTML5 and friends - JISC CETIS Conference 2010 Nottingham 15.11.2010
 
Html5 For Jjugccc2009fall
Html5 For Jjugccc2009fallHtml5 For Jjugccc2009fall
Html5 For Jjugccc2009fall
 

Recently uploaded

Quality Patents: Patents That Stand the Test of Time
Quality Patents: Patents That Stand the Test of TimeQuality Patents: Patents That Stand the Test of Time
Quality Patents: Patents That Stand the Test of Time
Aurora Consulting
 
What’s New in Teams Calling, Meetings and Devices May 2024
What’s New in Teams Calling, Meetings and Devices May 2024What’s New in Teams Calling, Meetings and Devices May 2024
What’s New in Teams Calling, Meetings and Devices May 2024
Stephanie Beckett
 
論文紹介:A Systematic Survey of Prompt Engineering on Vision-Language Foundation ...
論文紹介:A Systematic Survey of Prompt Engineering on Vision-Language Foundation ...論文紹介:A Systematic Survey of Prompt Engineering on Vision-Language Foundation ...
論文紹介:A Systematic Survey of Prompt Engineering on Vision-Language Foundation ...
Toru Tamaki
 
How Social Media Hackers Help You to See Your Wife's Message.pdf
How Social Media Hackers Help You to See Your Wife's Message.pdfHow Social Media Hackers Help You to See Your Wife's Message.pdf
How Social Media Hackers Help You to See Your Wife's Message.pdf
HackersList
 
find out more about the role of autonomous vehicles in facing global challenges
find out more about the role of autonomous vehicles in facing global challengesfind out more about the role of autonomous vehicles in facing global challenges
find out more about the role of autonomous vehicles in facing global challenges
huseindihon
 
20240705 QFM024 Irresponsible AI Reading List June 2024
20240705 QFM024 Irresponsible AI Reading List June 202420240705 QFM024 Irresponsible AI Reading List June 2024
20240705 QFM024 Irresponsible AI Reading List June 2024
Matthew Sinclair
 
7 Most Powerful Solar Storms in the History of Earth.pdf
7 Most Powerful Solar Storms in the History of Earth.pdf7 Most Powerful Solar Storms in the History of Earth.pdf
7 Most Powerful Solar Storms in the History of Earth.pdf
Enterprise Wired
 
What's New in Copilot for Microsoft365 May 2024.pptx
What's New in Copilot for Microsoft365 May 2024.pptxWhat's New in Copilot for Microsoft365 May 2024.pptx
What's New in Copilot for Microsoft365 May 2024.pptx
Stephanie Beckett
 
Understanding Insider Security Threats: Types, Examples, Effects, and Mitigat...
Understanding Insider Security Threats: Types, Examples, Effects, and Mitigat...Understanding Insider Security Threats: Types, Examples, Effects, and Mitigat...
Understanding Insider Security Threats: Types, Examples, Effects, and Mitigat...
Bert Blevins
 
How to Build a Profitable IoT Product.pptx
How to Build a Profitable IoT Product.pptxHow to Build a Profitable IoT Product.pptx
How to Build a Profitable IoT Product.pptx
Adam Dunkels
 
The Rise of Supernetwork Data Intensive Computing
The Rise of Supernetwork Data Intensive ComputingThe Rise of Supernetwork Data Intensive Computing
The Rise of Supernetwork Data Intensive Computing
Larry Smarr
 
Fluttercon 2024: Showing that you care about security - OpenSSF Scorecards fo...
Fluttercon 2024: Showing that you care about security - OpenSSF Scorecards fo...Fluttercon 2024: Showing that you care about security - OpenSSF Scorecards fo...
Fluttercon 2024: Showing that you care about security - OpenSSF Scorecards fo...
Chris Swan
 
Advanced Techniques for Cyber Security Analysis and Anomaly Detection
Advanced Techniques for Cyber Security Analysis and Anomaly DetectionAdvanced Techniques for Cyber Security Analysis and Anomaly Detection
Advanced Techniques for Cyber Security Analysis and Anomaly Detection
Bert Blevins
 
Best Programming Language for Civil Engineers
Best Programming Language for Civil EngineersBest Programming Language for Civil Engineers
Best Programming Language for Civil Engineers
Awais Yaseen
 
Measuring the Impact of Network Latency at Twitter
Measuring the Impact of Network Latency at TwitterMeasuring the Impact of Network Latency at Twitter
Measuring the Impact of Network Latency at Twitter
ScyllaDB
 
WhatsApp Image 2024-03-27 at 08.19.52_bfd93109.pdf
WhatsApp Image 2024-03-27 at 08.19.52_bfd93109.pdfWhatsApp Image 2024-03-27 at 08.19.52_bfd93109.pdf
WhatsApp Image 2024-03-27 at 08.19.52_bfd93109.pdf
ArgaBisma
 
20240702 QFM021 Machine Intelligence Reading List June 2024
20240702 QFM021 Machine Intelligence Reading List June 202420240702 QFM021 Machine Intelligence Reading List June 2024
20240702 QFM021 Machine Intelligence Reading List June 2024
Matthew Sinclair
 
Pigging Solutions Sustainability brochure.pdf
Pigging Solutions Sustainability brochure.pdfPigging Solutions Sustainability brochure.pdf
Pigging Solutions Sustainability brochure.pdf
Pigging Solutions
 
WPRiders Company Presentation Slide Deck
WPRiders Company Presentation Slide DeckWPRiders Company Presentation Slide Deck
WPRiders Company Presentation Slide Deck
Lidia A.
 
Observability For You and Me with OpenTelemetry
Observability For You and Me with OpenTelemetryObservability For You and Me with OpenTelemetry
Observability For You and Me with OpenTelemetry
Eric D. Schabell
 

Recently uploaded (20)

Quality Patents: Patents That Stand the Test of Time
Quality Patents: Patents That Stand the Test of TimeQuality Patents: Patents That Stand the Test of Time
Quality Patents: Patents That Stand the Test of Time
 
What’s New in Teams Calling, Meetings and Devices May 2024
What’s New in Teams Calling, Meetings and Devices May 2024What’s New in Teams Calling, Meetings and Devices May 2024
What’s New in Teams Calling, Meetings and Devices May 2024
 
論文紹介:A Systematic Survey of Prompt Engineering on Vision-Language Foundation ...
論文紹介:A Systematic Survey of Prompt Engineering on Vision-Language Foundation ...論文紹介:A Systematic Survey of Prompt Engineering on Vision-Language Foundation ...
論文紹介:A Systematic Survey of Prompt Engineering on Vision-Language Foundation ...
 
How Social Media Hackers Help You to See Your Wife's Message.pdf
How Social Media Hackers Help You to See Your Wife's Message.pdfHow Social Media Hackers Help You to See Your Wife's Message.pdf
How Social Media Hackers Help You to See Your Wife's Message.pdf
 
find out more about the role of autonomous vehicles in facing global challenges
find out more about the role of autonomous vehicles in facing global challengesfind out more about the role of autonomous vehicles in facing global challenges
find out more about the role of autonomous vehicles in facing global challenges
 
20240705 QFM024 Irresponsible AI Reading List June 2024
20240705 QFM024 Irresponsible AI Reading List June 202420240705 QFM024 Irresponsible AI Reading List June 2024
20240705 QFM024 Irresponsible AI Reading List June 2024
 
7 Most Powerful Solar Storms in the History of Earth.pdf
7 Most Powerful Solar Storms in the History of Earth.pdf7 Most Powerful Solar Storms in the History of Earth.pdf
7 Most Powerful Solar Storms in the History of Earth.pdf
 
What's New in Copilot for Microsoft365 May 2024.pptx
What's New in Copilot for Microsoft365 May 2024.pptxWhat's New in Copilot for Microsoft365 May 2024.pptx
What's New in Copilot for Microsoft365 May 2024.pptx
 
Understanding Insider Security Threats: Types, Examples, Effects, and Mitigat...
Understanding Insider Security Threats: Types, Examples, Effects, and Mitigat...Understanding Insider Security Threats: Types, Examples, Effects, and Mitigat...
Understanding Insider Security Threats: Types, Examples, Effects, and Mitigat...
 
How to Build a Profitable IoT Product.pptx
How to Build a Profitable IoT Product.pptxHow to Build a Profitable IoT Product.pptx
How to Build a Profitable IoT Product.pptx
 
The Rise of Supernetwork Data Intensive Computing
The Rise of Supernetwork Data Intensive ComputingThe Rise of Supernetwork Data Intensive Computing
The Rise of Supernetwork Data Intensive Computing
 
Fluttercon 2024: Showing that you care about security - OpenSSF Scorecards fo...
Fluttercon 2024: Showing that you care about security - OpenSSF Scorecards fo...Fluttercon 2024: Showing that you care about security - OpenSSF Scorecards fo...
Fluttercon 2024: Showing that you care about security - OpenSSF Scorecards fo...
 
Advanced Techniques for Cyber Security Analysis and Anomaly Detection
Advanced Techniques for Cyber Security Analysis and Anomaly DetectionAdvanced Techniques for Cyber Security Analysis and Anomaly Detection
Advanced Techniques for Cyber Security Analysis and Anomaly Detection
 
Best Programming Language for Civil Engineers
Best Programming Language for Civil EngineersBest Programming Language for Civil Engineers
Best Programming Language for Civil Engineers
 
Measuring the Impact of Network Latency at Twitter
Measuring the Impact of Network Latency at TwitterMeasuring the Impact of Network Latency at Twitter
Measuring the Impact of Network Latency at Twitter
 
WhatsApp Image 2024-03-27 at 08.19.52_bfd93109.pdf
WhatsApp Image 2024-03-27 at 08.19.52_bfd93109.pdfWhatsApp Image 2024-03-27 at 08.19.52_bfd93109.pdf
WhatsApp Image 2024-03-27 at 08.19.52_bfd93109.pdf
 
20240702 QFM021 Machine Intelligence Reading List June 2024
20240702 QFM021 Machine Intelligence Reading List June 202420240702 QFM021 Machine Intelligence Reading List June 2024
20240702 QFM021 Machine Intelligence Reading List June 2024
 
Pigging Solutions Sustainability brochure.pdf
Pigging Solutions Sustainability brochure.pdfPigging Solutions Sustainability brochure.pdf
Pigging Solutions Sustainability brochure.pdf
 
WPRiders Company Presentation Slide Deck
WPRiders Company Presentation Slide DeckWPRiders Company Presentation Slide Deck
WPRiders Company Presentation Slide Deck
 
Observability For You and Me with OpenTelemetry
Observability For You and Me with OpenTelemetryObservability For You and Me with OpenTelemetry
Observability For You and Me with OpenTelemetry
 

HTML5 e CSS3 (slides della sessione tenuta al DIMI di Udine)

  • 1. Introduzione a HTML5 e CSS3 Gabriele Gigliotti Dipartimento di Matematica – Università degli studi di Udine April 20th 2011
  • 2. [1] html5 logo web page
  • 3. [2] link to Google Images search result page
  • 4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/ DTD/xhtml1-transitional.dtd"> DOCTYPE: The Syntax
  • 6. A Bare HTML5 Doc <!DOCTYPE html> <html> </html> <head> </head> <title>A Funny Title</title> <html lang=”en”> <meta charset=”utf-8”> <body> <!-- very important content goes here --> </body>
  • 7. Can We Use HTML5 Today?
  • 11. Detecting HTML5 Powered Sites Chrome Add-on: HTML5 powered [3]
  • 13. HTML Goes Multimedia (Natively)! Brand new <video> and <audio> tags. Natively embedding video and audio files in html file (as you do with images). No Flash, Silverlight or other proprietary plug-in
  • 14. HTML <video>: The Syntax <video src="video.webm" controls>
  • 15. HTML <video>: The Syntax <video src="video.webm" controls> </video> Your browser does not support video element.
  • 16. The Codec War WebM H.264 (mp4) Ogg Theora IE9 Manual Install yes no FF4 yes no yes Chrome yes About to drop yes Opera yes no yes Safari no yes no
  • 17. The Codec War Effect <video controls> </video> <source src="video.webm" type='video/webm; codecs="vp8, vorbis"'> <source src="video.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'> Your browser does not support video element.
  • 18. Flash vs HTML5 <video> ● Easy integration with other web tech. ● No security issues. ● It delivers better semantic. ● Content Protection. ● Easily Manageble. ● No affected by codec war <video> Flash [4] Taken from Sonny Piers Photostream on Flikr
  • 19. Web Forms: New Input Types Before HTML5 <input type=”text”> Generic use
  • 20. Web Forms: New Input Types <form> <input type=”search”> ... </form>
  • 21. New Input Types <form> <input type=”email”> ... </form> Semantic at work (part 1)
  • 22. New Input Types <form> <input type=”email”> ... </form> Semantic at work (part 2)
  • 23. New Input Types <form> <input type=”url”> ... </form>
  • 24. New Input Types <form> <input type=”tel”> ... </form> Delivering better User experience through semantic!
  • 25. Input Type Number Attributes <form> <input type=”number” min=”1” max=”11” step=”2”> <input type="range" min="1" max="11" step="2" value="3"> ... </form>
  • 26. Input Type “Calendar Controls” <input type="date" min="2011-04-02" max="2011-04-30" step="2">
  • 27. Input Type “Calendar Controls” <form> <input type=”time” value=”00:30” > ... </form>
  • 28. Web Forms 2.0: New Attributes You can do in HTML what yo previously did with JavaScript” autofocus <input type="text" id="hobby" autofocus> autofocus through JavaScript (the old way) <script> // to be invoked on onload() function giveFocus() { document.getElementById("hobby").focus(); } </script>
  • 29. Web Forms 2.0: New Attributes You can do in HTML what yo previously did with JavaScript” pattern <input type="text" id="cap" name="cap" pattern="[0-9]{5}">
  • 30. The Canvas Element A “place” where you can write: JavaScript will be your pencil :) <canvas></canvas> Or <canvas width=”300” height=”300”></canvas>
  • 31. The Canvas 2D API See note [5]
  • 32. The Canvas 2D API @ Work [6] Developed by @hyperandroid
  • 33. A Custom JavaScript Library <!--[if IE]><script type="text/javascript" src="excanvas.js"></script><![endif]--> [7]
  • 34. Semantic Rules HTML5 new semantic tags. <nav> <footer> <article> <header> <section> <aside> They bring a clear meaning to our pages.
  • 35. Semantic Rules: <nav> <nav> <ul> <li><a href="archive.html">Old Posts</a></li> <li><a href="last_post.html">Last Post</a></li> <li><a href=”faq.html”>FAQ</a></li> </ul> </nav> They bring a clear meaning to our pages.
  • 36. Semantic Rules: <footer> <footer> <nav> <ul> <li><a href="archive.html">Old Posts</a></li> <li><a href="last_post.html">Last Post</a></li> <li><a href=”faq.html”>FAQ</a></li> </ul> </nav> </footer> They bring a clear meaning to our pages.
  • 37. Semantic Rules: <article> <article> <header> <h1>Open Data, free your dataset</h1> <p>Written by Gabriele Gigliotti</p> <p>Published on <time pubdate datetime="2010-10- 22T15:30+01:00">22-10-2010</time>.</p> </header> <p>article text</p> </article> They bring a clear meaning to our pages.
  • 38. Semantic Rules: <time> <time pubdate datetime="2011-04-20T15:00+01:00"> April 4th 2011 </time>
  • 39. HTML5 Feature Detection Modernizr: the easiest way to check for any HTML5 related feature (and much more). <script src="modernizr-1.7.min.js"></script> [8]
  • 40. Feature Detection With Modernizr if (Modernizr.canvas) { // create a canvas obj & get a 2d context } <script type="text/javascript" src="modernizr-1.7.js"></script> // Testing for video and codec support: if (Modernizr.video && Modernizr.video.webm) { // preload webm video assets } else if (Modernizr.video && Modernizr.video.h264){ // preload h264 assets }
  • 41. Browser Detection (Pay Attention!) Firefox 4.01 User-Agent String on Linux Mozilla/5.0 (X11; Linux i686; rv:2.0.1) Gecko/20100101 Firefox/4.0.1 And then spoofing came along! [9]
  • 42. CSS3 Pseudo Classes p:empty { margin: 20px; } <p>here goes some text</p> <p></p> <p>other text goes here</p>
  • 43. CSS3 Pseudo Classes span:only-child { color: #f00; } <p>I can resist <span>everything</span> except <span>temptation.</span></p> <p>I can resist everything <span>except</span> temptation.</p> Oscar Wilde
  • 44. CSS3 Attribute Selectors a[href^="mailto:"] {text-decoration: none;} <p> Visit my website: <a href="http://example.org">Acme</a> and for any question feel free to drop me a line at <a href="mailto:me@example.org"> me@example.org</a> </p>
  • 45. CSS3 Borders div { border-radius: 20px; }
  • 46. CSS3 Borders div { border-radius: 170px/60px; } [10]
  • 47. CSS3 Cols div { column-width: 200px; }
  • 48. CSS3 Cols div { column-count: 3; }
  • 49. CSS3 Cols div { column-gap: 10px; } div { column-rule: 3px dotted #000; }
  • 51. CSS3 Transitions div { position: absolute; top: 20px; left: 20px; transition-property: left; transition-duration: 4s; } div:hover { left: 300px; }
  • 52. CSS3 Transitions div { position: absolute; top: 20px; left: 20px; transition-property: left; transition-duration: 4s; transition-timing-function: linear; } div:hover { left: 300px; }
  • 53. Title: HTML5 e CSS3 Author: Gabriele Gigliotti Editor: Apogeo Website: http://www.gigliotti.it/ @: gabriele.gigliotti@gmail.com Twitter: @ridillo
  • 54. Links & References [1]: http://www.w3.org/html/logo/ [2]: http://goo.gl/N8K5x [3]: https://chrome.google.com/webstore/detail/klleofbhhghgacodijohlacbfhfcefom [4]: http://www.flickr.com/photos/sonnyp/5623796739/in/set-72157626384135737 [5]: Images taken from Chapter 6 “Canvas” “HTML5 e CSS3” Gigliotti G. - Apogeo Ed. [6]: http://js1k.com/2010-first/demo/70 [7]: http://code.google.com/p/explorercanvas/ [8]: http://www.modernizr.com/ [9]: https://addons.mozilla.org/en-US/firefox/addon/user-agent-switcher/ [10]: Fig 13.6 page 227 “HTML5 e CSS3” Gigliotti G. - Apogeo Ed. [11]: Fig 14.2 page 243 “HTML5 e CSS3” Gigliotti G. - Apogeo Ed.