SlideShare a Scribd company logo
1 of 114
Download to read offline
Gran Sasso Science Institute
Ivano Malavolta
HTML5 & CSS3 refresher
Roadmap
Anatomy of a web app
HTML5
CSS3
What is a Web App?
A software built with webtechnologies that is accessible via a
(mobile) browser
The browser may be either
the standard device browser
or an embedded browser
(Hybrid app)
Anatomy of a Web App
Data
Usually mobile apps do not talk directlywiththe database
à do not even think about JDBC, drivers,etc!
àThey pass through an applicationserver and communicate via:
• standard HTTP requests forHTML content (eg PHP)
• REST-fullservices (XML, JSON, etc.)
• SOAP
Roadmap
Anatomy of a web app
HTML5
CSS3
HTML 5
• Intro
• New Structural Tags and Attributes
• Forms
• Audio & Video
• Offline Data
• Geolocalization
• Web Sockets
• Canvas& SVG
HTML 5
HTML5 will be the new standard for HTML
HTML5 is still a work in progress
W3Cfinal recomendation: 2020
Top browsers supportmany (not all)of the new HTML5 elements
http://mobilehtml5.org
http://caniuse.com
What is HTML5?
HTML5
Markup JavaScript
CSS3Multimedia
The minimal HTML5 page
<!DOCTYPE html>
<html>
<head>
<title>Title</title>
</head>
<body>
…
</body>
</html>
Roadmap
• Intro
• New Structural Tags and Attributes
• Forms
• Audio & Video
• Offline Data
• Geolocalization
• Web Sockets
• Canvas& SVG
New Structural Tags
Main Goal: separate presentation from content
• Poor accessibility
• Unnecessary complexity
• Larger document size
Most of the presentational features from earlier versions of
HTML are no longer supported
New Structural Tags
<header> header region of a page or section
<footer> footer region of a page or section
<nav> navigation region of a pageor section
<section> logical region of a page
<article> a complete piece of content
<aside> secondary or related content
New Structural Tags
http://bit.ly/JCnuQJ
Other Structural Tags
<command> a commandbutton that a user can invoke
<details> additional details that the user can view or hide
<summary> a visible heading for a <details> element
<meter> an amount within a range
<progress> shows real-time progress towards a goal
<figure> self-contained content, like illustrations,
diagrams, photos, code listings, etc.
<figcaption> caption of a figure
<mark> marked/highlighted text
<time> a date/time
<wbr>Definesa possible line-break
Custom Data Attributes
Can be used to add metadataabout any element within an
HTML5 page
They are ignored by the validatorfor HTML5 documents
They all startwith the data- pattern
They can be read by any browser using JavaScriptviathe
getAttribute() method
Roadmap
• Intro
• New Structural Tags and Attributes
• Forms
• Audio & Video
• Offline Data
• Geolocalization
• Web Sockets
• Canvas& SVG
Forms
Main Goal: reduce the JavaScriptfor validation and format
management
Example:
Form Input Types
<input type="search"> for search boxes
<input type="number"> for spinboxes
<input type="range"> for sliders
<input type="color"> for color pickers
<input type="tel"> for telephone numbers
<input type="url"> for web addresses
<input type="email"> for email addresses
<input type="date"> for calendar datepickers
<input type="month"> for months
<input type="week"> for weeks
<input type="time"> for timestamps
<input type="datetime"> for precisetimestamps
<input type="datetime-local"> for local dates and times
Form Input Types
Form input types degrade gracefully
à Unknown input types are treatedas text-type
http://bit.ly/I65jai
Form Field Attributes
Autofocus
– Supportfor placingthe focus on a specific form element
<input type="text“ autofocus>
Placeholder
– Supportfor placingplaceholder text inside a form field
<input type="text“ placeholder=“your name”>
Roadmap
• Intro
• New Structural Tags and Attributes
• Forms
• Audio & Video
• Offline Data
• Geolocalization
• Web Sockets
• Server-Sent Events
• Canvas& SVG
Audio
<audio> : a standardway to embed an audio file on a web page
<audio controls>
<source src="song.ogg" type="audio/ogg" />
<source src="song.mp3" type="audio/mpeg" />
Not Supported
</audio>
Multiplesources à the browser will use the firstrecognized
format
Audio Attributes
Audio JavaScript API
HTML5provides a set of JavaScript APIs for interacting with an
audio element
For example:
play() pause() load() currentTime ended
volume…
à http://www.w3.org/wiki/HTML/Elements/audio
Video
<video> : a standardway to embed a video file on a web page
<video width="320" height="240" controls>
<source src="movie.mp4" type="video/mp4" />
<source src="movie.ogg" type="video/ogg" />
Not Supported
</video>
Multiplesources à the browser will use the firstrecognized
format
Video attributes
Video JavaScript API
HTML5provides a set of Javascript APIs for interactingwith a
video element
For example:
play() pause() load() currentTime ended
volume…
à http://www.w3.org/wiki/HTML/Elements/video
A note on YouTube videos
<video> works only if you havea direct link to the
MP4 file of the YouTube video
If you havejust a link to the YouTube page of your video,
simply embed it in your page
<iframe width="560" height="315"
src="http://www.youtube.com/embed/Wp20Sc8qPeo"
frameborder="0" allowfullscreen></iframe>
Roadmap
• Intro
• New Structural Tags and Attributes
• Forms
• Audio & Video
• Offline Data
• Geolocalization
• Web Sockets
• Canvas& SVG
Offline Data
LocalStorage
stores datain key/valuepairs
it is tied to a specific domain/app
persists across browser sessions
SessionStorage
stores datain key/valuepairs
it is tied to a specific domain/app
data is erased when a browser session ends
We will havea dedicated
lecture to offline data
storage on mobile devices
Offline Data
WebSQL Database
relationalDB
support for tables creation,insert, update,…
transactional
tied to a specific domain/app
persists across browser sessions
Its evolutionis called IndexedDB, but it is actuallynot fully
supported yet in iOS
Roadmap
• Intro
• New Structural Tags and Attributes
• Forms
• Audio & Video
• Offline Data
• Geolocalization
• Web Sockets
• Canvas& SVG
Geolocalization
Gets Latitudeand Longitude from the user’s browser
There is also a watchPositionmethod wich calls a JS function
every time the user moves
We will havea dedicated lecture to
geolocalizationon mobile devices
Example
function getLocation() {
if(navigator.geolocation) {
navigator.geolocation.getCurrentPosition(showPosition);
} else {
console.log(‘no geolocalization’);
}
}
function showPosition(position) {
console.log(position.coords.latitude);
console.log(position.coords.longitude);
}
getCurrentPosition()
Roadmap
• Intro
• New Structural Tags and Attributes
• Forms
• Audio & Video
• Offline Data
• Geolocalization
• Web Sockets
• Canvas& SVG
WebSockets
Bidirectional,full-duplex communicationbetween devices and
server
Specificallysuited for
chat,videogames, drawings sharing, real-timeinfo
Requires a Web Socket Serverto handle the protocol
Alternative - Polling via AJAX
+ Near real-time updates (not purely real-time)
+ easy to implement
+ no new technologies needed
- they are requested from the client à increased networktraffic
- AJAX requests generally havea small payloadand relatively
high amountof httpheaders (wasted bandwith)
Roadmap
• Intro
• New Structural Tags and Attributes
• Forms
• Audio & Video
• Offline Data
• Geolocalization
• Web Sockets
• Canvas& SVG
Canvas & SVG
Canvas & SVG allowyou to creategraphics inside the browser
http://bit.ly/Ie4HKu
Canvas & SVG
Canvas
draws 2D graphics, on the fly
you use JavaScriptto draw on the canvas
rendered pixel by pixel
example:
http://www.w3schools.com/html/tryit.asp?filename=tryhtml5_canvas_tut_path
SVG
describes 2D graphics in XML
every element is availablewithin theSVG DOM
JavaScriptevent handlers for an element
example:
http://www.w3schools.com/svg/tryit.asp?filename=trysvg_circle
Roadmap
Anatomy of a web app
HTML5
CSS3
Roadmap
• Intro
• Basics
• Selectors
• Box Model
• Positioning & Floats
• Fonts
• Visual Effects
• Media Queries
Intro
Let’s imagine FlipboardwithoutCSS3
CSS3 Main Drivers
Simplicity
– less images
– less markup
– less JavaScript
– no Flash
Better performance
– fewer HTTP requests
Better Search Engine Placement
– text as real text,not images or Flash contents
– speed
Roadmap
• Intro
• Basics
• Selectors
• Box Model
• Positioning & Floats
• Fonts
• Visual Effects
• Media Queries
Basics
GenericSyntax:
selector {
property: value;
property2: value2, value3;
...
}
Inheritance
If an HTML elementB is nestedinto anotherelementA
àB inheritsthe style of A unlessB has an explicit style
definition
body {
background-color: red;
}
div {
background-color: green;
}
Combining Selectors
Selectors can be combined
h1, h2, h3 {
background-color: red;
}
Lists
ul {
list-style-image: url(image.png);
list-style-position: inside;
list-style-style: circle;
}
Position
inside | outside
Style
disc | circle
square | decimal
lower-roman |
upper-roman|
lower-alpha |
upper-alpha|
none
Backgrounds
You can style a backgroundof any element
div {
background: url(img.png), url(img2.png);
background-size: 80px, 60px;
background-repeat: no-repeat, no-repeat;
background-origin: content-box, top left;
}
repeat
no-repeat | repeat
repeat-x | repeat-y
origin
top left | top center | top right | center left
| border-box | content-box etc.
Background & Colors
div {
background-color: blue;
background-color: rgba(0, 0, 255, 0.2);
}
RGBA = RGB + opacity
Gradients
They can be used in every place you can use an image
div {
background: -webkit-gradient(linear, right top,
left bottom, from(red), to(green));
}
linear à the type of gradient (also radial,or repeating-linear)
right-top à startof the gradient
left-bottom à end of the gradient
from à startingcolor
to à finalcolor
Text
p {
color: grey;
letter-spacing: 5px;
text-align: justify;
text-decoration: underline;
text-indent: 10px;
text-transform: capitalize;
word-spacing: 10px;
}
text-align
left | right
center | justify
Text-decoration
none
underline
overline
line throughtext-transform
none | capitalize |
lowercase | uppercase
Text Effects
p {
text-shadow: 2px 10px 5px #FF0000;
text-overflow: ellipsis;
word-wrap:break-word;
}
2px à horizontalshadow
10px à verticalshadow
5px à blur distance
#FF0000 à color
Other Text Properties
Roadmap
• Intro
• Basics
• Selectors
• Box Model
• Positioning & Floats
• Fonts
• Visual Effects
• Media Queries
Selectors
Classical waysto select elements in CSS2:
• by type
a { color: red; }
• by id
#redLink { color: red; }
• by class
.redLink { color: red; }
Other Selectors from CSS1 & CSS2
• div p à all <p> elements inside a <div>
• div>p à all <p> elements where the parentis a <div>
• div+p à all <p> elements that are placed immediatelyafter
<div>
• [target] à all elements witha target attribute
• [target=_blank]à all elements with target= "_blank“
• p:first-childà every<p> element that is the firstchild of its
parent
Some selectors introduced in CSS3
• a[href^="https"]à every <a> element whose src attribute
value begins with "https”
• a[href$=".pdf"]à every <a> element whose src attributevalue
ends with ".pdf”
• a[href*=“mobile"]à every<a> element whose src attribute
value contains the substring “mobile“
• p:nth-child(2) à every<p> element that is the second child of
its parent
• p:nth-last-child(2)à every <p> element thatis the second
child of its parent,counting from the last child
• :not(p) à every element thatis not a <p> element
Roadmap
• Intro
• Basics
• Selectors
• Box Model
• Positioning & Floats
• Fonts
• Visual Effects
• Media Queries
The Box Model
http://www.adamkaplan.me/grid/
http://www.adamkaplan.me/grid/
Tip
Tells the browser not to include borders and padding in the
width of your content
à you havemore control on the layoutof your app
http://www.adamkaplan.me/grid/
Tip
Borders & dimensions
div {
width: 100px;
height: 40px;
padding: 10px;
border: 5px solid gray;
margin: 10px;
border-radius: 10px;
box-shadow: 10px 10px 5px red;
}
Roadmap
• Intro
• Basics
• Selectors
• Box Model
• Positioning & Floats
• Fonts
• Visual Effects
• Media Queries
The Display Property
It specifies if and how an element is displayed
div {
display: none;
}
The element willbe hidden, and the page will be displayed as if the
element is not in the DOM
The Display Property
Other usual values:
block
• a block element is an element thattakes up the full width
available,and has a line break before and afterit
inline
• an inline element only takes up as much width as necessary
• it can containonly otherinline elements
inline-block
• the element is placed as an inline element (on the same line
as adjacentcontent), but it behaves as a block element
– you can set width and height, top and bottom margins and paddings
The visibility Property
It specifies if an element should be visible or hidden
div.hidden {
visibility: hidden;
}
The element willbe hidden, but still affectingthe layout
It can also be set to
visible, collapse (only for tables), inherit
Flex Box
It helps in stylingelements to be arrangedhorizontallyor
vertically
box:
• a new value for the display property
• a new propertybox-orient
#div {
display: box;
box-orient: horizontal;
}
Flex Box main elements
display: box
opts an element and its immediate children into the flexible
box model
box-orient
Values: horizontal| vertical| inherit
How should the box's childrenbe aligned
box-direction
Values: normal| reverse | inherit
sets the order in which the elements will be displayed
Flex Box main elements
box-pack
Values: start| end | center | justify
Sets the alignmentof the box along the box-orient axis
box-orient: horizontal;
box-pack: end;
Flex Box main elements
box-align
Values: start| end | center | baseline | stretch
Sets how the box's children are aligned in the box
box-orient: horizontal;
box-align: center;
Flex Box Children
by default child elements are not flexible
à their dimension is set according to their width
box-flex can be set to any integer
It sets how a child element occupy the
box’s space
#box1 {
width: 100px;
}
#box2 {
box-flex: 1;
}
#box3 {
box-flex: 2;
}
Positioning
• Static
• Relative
• Absolute
• Fixed
Static Positioning
Elements will stackone on top of the next
http://bit.ly/I8cEaF
Relative Positioning
Elements behaveexactly the same
way as statically positioned elements
we can adjust a relatively positioned
element with offset properties:
top, right, bottom,and left
http://bit.ly/I8cEaF
Relative Positioning
It is possible to create a coordinatesystem for child elements
http://bit.ly/I8cEaF
Absolute Positioning
an absolutely positioned element is removed from the normal flow
it won’t affector be
affected by any other
element in the flow
http://bit.ly/I8cEaF
Fixed Positioning
shares all the rules of an absolutely positioned element
a fixed element does not scroll with the document
http://bit.ly/I8cEaF
Float
A floated element willmove as far to the left or right as it can
Elements are floated only horizontally
The floatCSS propertycan acceptone of 4 values:
left, right,none, and inherit
Roadmap
• Intro
• Basics
• Selectors
• Box Model
• Positioning & Floats
• Fonts
• Visual Effects
• Media Queries
Fonts
Before CSS3,web designers had to use fonts thatwere already
installed on the user's device
With CSS3,web designers can use whateverfont they like
@font-face {
font-family: NAME;
src: url(Dimbo.ttf);
font-weight: normal;
font-style: normal;
}
font-style
normal
italic
oblique
font-weight
normal
bold
100
200
…
Fonts Usage
To use the font foran HTML element, refer to the name of the
font (NAME) throughthe font-familyproperty
div {
font-family: NAME;
}
Some Fonts Sources...
www.dafont.com
www.urbanfonts.com
www.losttype.com
Roadmap
• Intro
• Basics
• Selectors
• Box Model
• Positioning & Floats
• Fonts
• Visual Effects
• Media Queries
Visual Effects
Three main mechanisms:
1. Transforms (both 2D and 3D)
2. Transitions
3. Animations
Transforms
A transform is an effect thatlets an element
change shape, size, position,…
You can transform yourelements using 2D or 3D transformations
http://bit.ly/IroJ7S
Transforms
http://bit.ly/IrpUnX
Transforms
http://bit.ly/IrpUnX
Transitions
They are used to add an effect when changing from one style to
another
The effect can be gradual
The effect will startwhen the specified CSS propertychanges
value
Transition syntax
A transitioncontains 4 properties:
• property
– the name of the CSS property the transition effect is for (can be all)
• duration
– how many seconds (or milliseconds)thetransition effect takes to
complete
• timing-function
– linear, ease, ease-in, ease-out, ease-in-out
• delay
– when the transition effect will start
Example
.imageThumbnail {
width; 200px;
transition: all ease-in 3s;
}
.zoomed {
position: absolute;
left: 0px;
top: 0px;
width: 100%;
}
$(‘.imageThumbnail’).addClass(‘zoomed’);
Animations
An animationis an effect thatlets an element graduallychange
from one style to another
You can change style in loop, repeating, etc.
To bind an animationto an element, you have to specify at least:
1. Name of the animation
2. Duration of the animation
div {
animation: test 5s ease-in;
}
Animation Definition
An animationis definedin a keyframe
It splits the animationinto parts, and assign a specific style to
each part
The various steps within an animationare givenas percentuals
0% à beginningofthe animation (from)
100% à end of the animation(to)
Example
@keyframes test{
0% {background: red; left:0px; top:0px;}
25% {background: yellow; left:200px; top:0px;}
50% {background: blue; left:200px; top:200px;}
75% {background: green; left:0px; top:200px;}
100% {background: red; left:0px; top:0px;}
}
result in
http://goo.gl/kFZrLs
Animation Properties
http://bit.ly/IrpUnX
Transitions VS Animations
• Trigger
– Transitions mustbe bound to a CSS property change
– Animations startautonomously
• States
– Transitions havestartand end states
– Animations can havemultiplestates
• Repeats
– Transitions can be perfomed once for each activation
– Animations can be looped
Roadmap
• Intro
• Basics
• Selectors
• Box Model
• Positioning & Floats
• Fonts
• Visual Effects
• Media Queries
Media Queries
They allow you to to change style based on specific conditions
For example, theycan be about
• device’s displaysize
• orientationof the device
• Resolution of the display
• ...
Example
Media Types
Media Queries are based on Media Types
A media type is a specificationof the actualmedia thatis being
used to access the page
Examples of media types include
• screen: computerscreens
• print:printed document
• braille: forBraille-based devices
• tv: for televisiondevices
Media Types
There are two main waysto specify a media type:
• <link> in the HTML page
<link rel=“stylesheet”
href=“style.css” media=“screen” />
• @media within the CSS file
@media screen {
div { color: red; }
}
Media Queries
A media query is a boolean expression
The CSSassociated withthe media query expression is applied
only if it evaluates to true
A media query consists of
1. a media type
2. a set of media features
@media screen and orientation: portrait
The Full Media Feature List
http://slidesha.re/I5oFHZ
The AND operator
You can combine multiple expressions by using the and operator
@media screen and (max-device-width: 480px){
/* your style */
}
The COMMA operator
The comma keyword acts as an or operator
@media screen and (color),
handheld and (color) {
/* your style */
}
The NOT operator
You can explicitlyignore a specific type of device by using the not
operator
@media not (width:480px) {
/* your style */
}
Examples
Retina Displays
@media only screen and -webkit-min-device-pixel-ratio: 2
iPad in landscape orientation
@media only screen and
(device-width: 768px) and (orientation: landscape)
iPhone and Android devices
@media only screen and
(min-device-width: 320px) and (max-device-width: 480px)
References
http://www.w3schools.com
https://developer.mozilla.org/en-US/docs/Web/CSS
LAB
1. develop a simple HTML pagefor showing a list of
products in Loveitaly
– HTML, CSS
2. develop a simple HTML pageshowing the details about a
specific product in Loveitaly

More Related Content

What's hot

Fast Cordova applications
Fast Cordova applicationsFast Cordova applications
Fast Cordova applicationsIvano Malavolta
 
Building Web Sites that Work Everywhere
Building Web Sites that Work EverywhereBuilding Web Sites that Work Everywhere
Building Web Sites that Work EverywhereDoris Chen
 
Usability in the GeoWeb
Usability in the GeoWebUsability in the GeoWeb
Usability in the GeoWebDave Bouwman
 
SPTechCon 2014 How to develop and debug client side code in SharePoint
SPTechCon 2014 How to develop and debug client side code in SharePointSPTechCon 2014 How to develop and debug client side code in SharePoint
SPTechCon 2014 How to develop and debug client side code in SharePointMark Rackley
 
Codemotion 2013 - Designing complex applications using html5 and knockoutjs
Codemotion 2013 - Designing complex applications using html5 and knockoutjsCodemotion 2013 - Designing complex applications using html5 and knockoutjs
Codemotion 2013 - Designing complex applications using html5 and knockoutjsFabio Franzini
 
Introduction to Client Side Dev in SharePoint Workshop
Introduction to Client Side Dev in SharePoint WorkshopIntroduction to Client Side Dev in SharePoint Workshop
Introduction to Client Side Dev in SharePoint WorkshopMark Rackley
 
HTML CSS JavaScript jQuery Training
HTML CSS JavaScript jQuery TrainingHTML CSS JavaScript jQuery Training
HTML CSS JavaScript jQuery Trainingubshreenath
 
www.webre24h.com - Ajax security
www.webre24h.com - Ajax securitywww.webre24h.com - Ajax security
www.webre24h.com - Ajax securitywebre24h
 
HTML5 Introduction
HTML5 IntroductionHTML5 Introduction
HTML5 Introductiondynamis
 
Advanced CSRF and Stateless Anti-CSRF
Advanced CSRF and Stateless Anti-CSRFAdvanced CSRF and Stateless Anti-CSRF
Advanced CSRF and Stateless Anti-CSRFjohnwilander
 
SPSNH 2014 - The SharePoint & jQueryGuide
SPSNH 2014 - The SharePoint & jQueryGuideSPSNH 2014 - The SharePoint & jQueryGuide
SPSNH 2014 - The SharePoint & jQueryGuideMark Rackley
 
Rapi::Blog talk - TPC 2017
Rapi::Blog talk - TPC 2017Rapi::Blog talk - TPC 2017
Rapi::Blog talk - TPC 2017Henry Van Styn
 
Front end development best practices
Front end development best practicesFront end development best practices
Front end development best practicesKarolina Coates
 
Mobile Information Architecture
Mobile Information ArchitectureMobile Information Architecture
Mobile Information ArchitectureChristian Crumlish
 
2/15/2012 - Wrapping Your Head Around the SharePoint Beast
2/15/2012 - Wrapping Your Head Around the SharePoint Beast2/15/2012 - Wrapping Your Head Around the SharePoint Beast
2/15/2012 - Wrapping Your Head Around the SharePoint BeastMark Rackley
 
RapidApp - YAPC::NA 2014
RapidApp - YAPC::NA 2014RapidApp - YAPC::NA 2014
RapidApp - YAPC::NA 2014Henry Van Styn
 

What's hot (20)

Introduction to html5
Introduction to html5Introduction to html5
Introduction to html5
 
Html5 Overview
Html5 OverviewHtml5 Overview
Html5 Overview
 
Fast Cordova applications
Fast Cordova applicationsFast Cordova applications
Fast Cordova applications
 
Building Web Sites that Work Everywhere
Building Web Sites that Work EverywhereBuilding Web Sites that Work Everywhere
Building Web Sites that Work Everywhere
 
Usability in the GeoWeb
Usability in the GeoWebUsability in the GeoWeb
Usability in the GeoWeb
 
SPTechCon 2014 How to develop and debug client side code in SharePoint
SPTechCon 2014 How to develop and debug client side code in SharePointSPTechCon 2014 How to develop and debug client side code in SharePoint
SPTechCon 2014 How to develop and debug client side code in SharePoint
 
Codemotion 2013 - Designing complex applications using html5 and knockoutjs
Codemotion 2013 - Designing complex applications using html5 and knockoutjsCodemotion 2013 - Designing complex applications using html5 and knockoutjs
Codemotion 2013 - Designing complex applications using html5 and knockoutjs
 
Introduction to Client Side Dev in SharePoint Workshop
Introduction to Client Side Dev in SharePoint WorkshopIntroduction to Client Side Dev in SharePoint Workshop
Introduction to Client Side Dev in SharePoint Workshop
 
HTML CSS JavaScript jQuery Training
HTML CSS JavaScript jQuery TrainingHTML CSS JavaScript jQuery Training
HTML CSS JavaScript jQuery Training
 
www.webre24h.com - Ajax security
www.webre24h.com - Ajax securitywww.webre24h.com - Ajax security
www.webre24h.com - Ajax security
 
HTML5 Introduction
HTML5 IntroductionHTML5 Introduction
HTML5 Introduction
 
Advanced CSRF and Stateless Anti-CSRF
Advanced CSRF and Stateless Anti-CSRFAdvanced CSRF and Stateless Anti-CSRF
Advanced CSRF and Stateless Anti-CSRF
 
HTML5 JS APIs
HTML5 JS APIsHTML5 JS APIs
HTML5 JS APIs
 
SPSNH 2014 - The SharePoint & jQueryGuide
SPSNH 2014 - The SharePoint & jQueryGuideSPSNH 2014 - The SharePoint & jQueryGuide
SPSNH 2014 - The SharePoint & jQueryGuide
 
Rapi::Blog talk - TPC 2017
Rapi::Blog talk - TPC 2017Rapi::Blog talk - TPC 2017
Rapi::Blog talk - TPC 2017
 
Front end development best practices
Front end development best practicesFront end development best practices
Front end development best practices
 
Aria Widgets
Aria WidgetsAria Widgets
Aria Widgets
 
Mobile Information Architecture
Mobile Information ArchitectureMobile Information Architecture
Mobile Information Architecture
 
2/15/2012 - Wrapping Your Head Around the SharePoint Beast
2/15/2012 - Wrapping Your Head Around the SharePoint Beast2/15/2012 - Wrapping Your Head Around the SharePoint Beast
2/15/2012 - Wrapping Your Head Around the SharePoint Beast
 
RapidApp - YAPC::NA 2014
RapidApp - YAPC::NA 2014RapidApp - YAPC::NA 2014
RapidApp - YAPC::NA 2014
 

Viewers also liked

Web-based Hybrid Mobile Apps: State of the Practice and Research opportunitie...
Web-based Hybrid Mobile Apps: State of the Practice and Research opportunitie...Web-based Hybrid Mobile Apps: State of the Practice and Research opportunitie...
Web-based Hybrid Mobile Apps: State of the Practice and Research opportunitie...Ivano Malavolta
 
[2015/2016] User experience design of mobil apps
[2015/2016] User experience design of mobil apps[2015/2016] User experience design of mobil apps
[2015/2016] User experience design of mobil appsIvano Malavolta
 
[2015/2016] Mobile thinking
[2015/2016] Mobile thinking[2015/2016] Mobile thinking
[2015/2016] Mobile thinkingIvano Malavolta
 
[2015/2016] Apache Cordova
[2015/2016] Apache Cordova[2015/2016] Apache Cordova
[2015/2016] Apache CordovaIvano Malavolta
 
[2015/2016] Modern development paradigms
[2015/2016] Modern development paradigms[2015/2016] Modern development paradigms
[2015/2016] Modern development paradigmsIvano Malavolta
 
Design patterns for mobile apps
Design patterns for mobile appsDesign patterns for mobile apps
Design patterns for mobile appsIvano Malavolta
 
UI design for mobile apps
UI design for mobile appsUI design for mobile apps
UI design for mobile appsIvano Malavolta
 
Leveraging Web Analytics for Automatically Generating Mobile Navigation Model...
Leveraging Web Analytics for Automatically Generating Mobile Navigation Model...Leveraging Web Analytics for Automatically Generating Mobile Navigation Model...
Leveraging Web Analytics for Automatically Generating Mobile Navigation Model...Ivano Malavolta
 
[2015/2016] Apache Cordova APIs
[2015/2016] Apache Cordova APIs[2015/2016] Apache Cordova APIs
[2015/2016] Apache Cordova APIsIvano Malavolta
 
[2015/2016] The REST architectural style
[2015/2016] The REST architectural style[2015/2016] The REST architectural style
[2015/2016] The REST architectural styleIvano Malavolta
 
[2015/2016] Require JS and Handlebars JS
[2015/2016] Require JS and Handlebars JS[2015/2016] Require JS and Handlebars JS
[2015/2016] Require JS and Handlebars JSIvano Malavolta
 
[2015/2016] User-centred design
[2015/2016] User-centred design[2015/2016] User-centred design
[2015/2016] User-centred designIvano Malavolta
 
[2015/2016] Geolocation and mapping
[2015/2016] Geolocation and mapping[2015/2016] Geolocation and mapping
[2015/2016] Geolocation and mappingIvano Malavolta
 
Mission planning of autonomous quadrotors
Mission planning of autonomous quadrotorsMission planning of autonomous quadrotors
Mission planning of autonomous quadrotorsIvano Malavolta
 
Beyond Native Apps: Web Technologies to the Rescue! [SPLASH 2016 - Mobile! k...
Beyond Native Apps:  Web Technologies to the Rescue! [SPLASH 2016 - Mobile! k...Beyond Native Apps:  Web Technologies to the Rescue! [SPLASH 2016 - Mobile! k...
Beyond Native Apps: Web Technologies to the Rescue! [SPLASH 2016 - Mobile! k...Ivano Malavolta
 
Modeling behaviour via UML state machines [Software Modeling] [Computer Scie...
Modeling behaviour via  UML state machines [Software Modeling] [Computer Scie...Modeling behaviour via  UML state machines [Software Modeling] [Computer Scie...
Modeling behaviour via UML state machines [Software Modeling] [Computer Scie...Ivano Malavolta
 
Modeling objects interaction via UML sequence diagrams [Software Modeling] [...
Modeling objects interaction via UML sequence diagrams  [Software Modeling] [...Modeling objects interaction via UML sequence diagrams  [Software Modeling] [...
Modeling objects interaction via UML sequence diagrams [Software Modeling] [...Ivano Malavolta
 
The road ahead for architectural languages [ACVI 2016]
The road ahead for architectural languages [ACVI 2016]The road ahead for architectural languages [ACVI 2016]
The road ahead for architectural languages [ACVI 2016]Ivano Malavolta
 

Viewers also liked (20)

Web-based Hybrid Mobile Apps: State of the Practice and Research opportunitie...
Web-based Hybrid Mobile Apps: State of the Practice and Research opportunitie...Web-based Hybrid Mobile Apps: State of the Practice and Research opportunitie...
Web-based Hybrid Mobile Apps: State of the Practice and Research opportunitie...
 
[2015/2016] User experience design of mobil apps
[2015/2016] User experience design of mobil apps[2015/2016] User experience design of mobil apps
[2015/2016] User experience design of mobil apps
 
[2015/2016] Mobile thinking
[2015/2016] Mobile thinking[2015/2016] Mobile thinking
[2015/2016] Mobile thinking
 
[2015/2016] Apache Cordova
[2015/2016] Apache Cordova[2015/2016] Apache Cordova
[2015/2016] Apache Cordova
 
[2015/2016] Modern development paradigms
[2015/2016] Modern development paradigms[2015/2016] Modern development paradigms
[2015/2016] Modern development paradigms
 
Design patterns for mobile apps
Design patterns for mobile appsDesign patterns for mobile apps
Design patterns for mobile apps
 
UI design for mobile apps
UI design for mobile appsUI design for mobile apps
UI design for mobile apps
 
Leveraging Web Analytics for Automatically Generating Mobile Navigation Model...
Leveraging Web Analytics for Automatically Generating Mobile Navigation Model...Leveraging Web Analytics for Automatically Generating Mobile Navigation Model...
Leveraging Web Analytics for Automatically Generating Mobile Navigation Model...
 
[2015/2016] Apache Cordova APIs
[2015/2016] Apache Cordova APIs[2015/2016] Apache Cordova APIs
[2015/2016] Apache Cordova APIs
 
[2015/2016] The REST architectural style
[2015/2016] The REST architectural style[2015/2016] The REST architectural style
[2015/2016] The REST architectural style
 
[2015/2016] Require JS and Handlebars JS
[2015/2016] Require JS and Handlebars JS[2015/2016] Require JS and Handlebars JS
[2015/2016] Require JS and Handlebars JS
 
[2015/2016] Backbone JS
[2015/2016] Backbone JS[2015/2016] Backbone JS
[2015/2016] Backbone JS
 
[2015/2016] User-centred design
[2015/2016] User-centred design[2015/2016] User-centred design
[2015/2016] User-centred design
 
[2015/2016] Geolocation and mapping
[2015/2016] Geolocation and mapping[2015/2016] Geolocation and mapping
[2015/2016] Geolocation and mapping
 
Mission planning of autonomous quadrotors
Mission planning of autonomous quadrotorsMission planning of autonomous quadrotors
Mission planning of autonomous quadrotors
 
Beyond Native Apps: Web Technologies to the Rescue! [SPLASH 2016 - Mobile! k...
Beyond Native Apps:  Web Technologies to the Rescue! [SPLASH 2016 - Mobile! k...Beyond Native Apps:  Web Technologies to the Rescue! [SPLASH 2016 - Mobile! k...
Beyond Native Apps: Web Technologies to the Rescue! [SPLASH 2016 - Mobile! k...
 
Modeling behaviour via UML state machines [Software Modeling] [Computer Scie...
Modeling behaviour via  UML state machines [Software Modeling] [Computer Scie...Modeling behaviour via  UML state machines [Software Modeling] [Computer Scie...
Modeling behaviour via UML state machines [Software Modeling] [Computer Scie...
 
Modeling objects interaction via UML sequence diagrams [Software Modeling] [...
Modeling objects interaction via UML sequence diagrams  [Software Modeling] [...Modeling objects interaction via UML sequence diagrams  [Software Modeling] [...
Modeling objects interaction via UML sequence diagrams [Software Modeling] [...
 
[2015/2016] JavaScript
[2015/2016] JavaScript[2015/2016] JavaScript
[2015/2016] JavaScript
 
The road ahead for architectural languages [ACVI 2016]
The road ahead for architectural languages [ACVI 2016]The road ahead for architectural languages [ACVI 2016]
The road ahead for architectural languages [ACVI 2016]
 

Similar to [2015/2016] HTML5 and CSS3 Refresher

HTML5 and CSS3 refresher
HTML5 and CSS3 refresherHTML5 and CSS3 refresher
HTML5 and CSS3 refresherIvano Malavolta
 
HTML5 & CSS3 refresher for mobile apps
HTML5 & CSS3 refresher for mobile appsHTML5 & CSS3 refresher for mobile apps
HTML5 & CSS3 refresher for mobile appsIvano Malavolta
 
HTML5: An Overview
HTML5: An OverviewHTML5: An Overview
HTML5: An OverviewNagendra Um
 
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5Sadaaki HIRAI
 
A brief introduction on HTML5 and responsive layouts
A brief introduction on HTML5 and responsive layoutsA brief introduction on HTML5 and responsive layouts
A brief introduction on HTML5 and responsive layoutsTim Wray
 
WordCamp Thessaloniki2011 The NextWeb
WordCamp Thessaloniki2011 The NextWebWordCamp Thessaloniki2011 The NextWeb
WordCamp Thessaloniki2011 The NextWebGeorge Kanellopoulos
 
It is not HTML5. but ... / HTML5ではないサイトからHTML5を考える
It is not HTML5. but ... / HTML5ではないサイトからHTML5を考えるIt is not HTML5. but ... / HTML5ではないサイトからHTML5を考える
It is not HTML5. but ... / HTML5ではないサイトからHTML5を考えるSadaaki HIRAI
 
Creating Great Applications in SharePoint 2010 with Silverlight 4
Creating Great Applications in SharePoint 2010 with Silverlight 4Creating Great Applications in SharePoint 2010 with Silverlight 4
Creating Great Applications in SharePoint 2010 with Silverlight 4Boston Area SharePoint Users Group
 
Ie9 dev overview (300) beta
Ie9 dev overview (300) betaIe9 dev overview (300) beta
Ie9 dev overview (300) betaKirk Yamamoto
 
VizEx View HTML5 Workshop
VizEx View HTML5 WorkshopVizEx View HTML5 Workshop
VizEx View HTML5 WorkshopDavid Manock
 

Similar to [2015/2016] HTML5 and CSS3 Refresher (20)

HTML5 and CSS3 refresher
HTML5 and CSS3 refresherHTML5 and CSS3 refresher
HTML5 and CSS3 refresher
 
HTML5 & CSS3 refresher for mobile apps
HTML5 & CSS3 refresher for mobile appsHTML5 & CSS3 refresher for mobile apps
HTML5 & CSS3 refresher for mobile apps
 
HTML5 Refresher
HTML5 RefresherHTML5 Refresher
HTML5 Refresher
 
HTML5: An Overview
HTML5: An OverviewHTML5: An Overview
HTML5: An Overview
 
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
 
A brief introduction on HTML5 and responsive layouts
A brief introduction on HTML5 and responsive layoutsA brief introduction on HTML5 and responsive layouts
A brief introduction on HTML5 and responsive layouts
 
Word camp nextweb
Word camp nextwebWord camp nextweb
Word camp nextweb
 
Word camp nextweb
Word camp nextwebWord camp nextweb
Word camp nextweb
 
WordCamp Thessaloniki2011 The NextWeb
WordCamp Thessaloniki2011 The NextWebWordCamp Thessaloniki2011 The NextWeb
WordCamp Thessaloniki2011 The NextWeb
 
Html5 more than just html5 v final
Html5  more than just html5 v finalHtml5  more than just html5 v final
Html5 more than just html5 v final
 
It is not HTML5. but ... / HTML5ではないサイトからHTML5を考える
It is not HTML5. but ... / HTML5ではないサイトからHTML5を考えるIt is not HTML5. but ... / HTML5ではないサイトからHTML5を考える
It is not HTML5. but ... / HTML5ではないサイトからHTML5を考える
 
Creating Great Applications in SharePoint 2010 with Silverlight 4
Creating Great Applications in SharePoint 2010 with Silverlight 4Creating Great Applications in SharePoint 2010 with Silverlight 4
Creating Great Applications in SharePoint 2010 with Silverlight 4
 
Html5
Html5Html5
Html5
 
HTML 5
HTML 5HTML 5
HTML 5
 
HTML5 - A Whirlwind tour
HTML5 - A Whirlwind tourHTML5 - A Whirlwind tour
HTML5 - A Whirlwind tour
 
Ie9 dev overview (300) beta
Ie9 dev overview (300) betaIe9 dev overview (300) beta
Ie9 dev overview (300) beta
 
HTML5 Tutorial
HTML5 TutorialHTML5 Tutorial
HTML5 Tutorial
 
Html 5
Html 5Html 5
Html 5
 
VizEx View HTML5 Workshop
VizEx View HTML5 WorkshopVizEx View HTML5 Workshop
VizEx View HTML5 Workshop
 
VizEx View HTML5 Workshop
VizEx View HTML5 WorkshopVizEx View HTML5 Workshop
VizEx View HTML5 Workshop
 

More from Ivano Malavolta

Conducting Experiments on the Software Architecture of Robotic Systems (QRARS...
Conducting Experiments on the Software Architecture of Robotic Systems (QRARS...Conducting Experiments on the Software Architecture of Robotic Systems (QRARS...
Conducting Experiments on the Software Architecture of Robotic Systems (QRARS...Ivano Malavolta
 
The Green Lab - Research cocktail @Vrije Universiteit Amsterdam (October 2020)
The Green Lab - Research cocktail  @Vrije Universiteit Amsterdam (October 2020)The Green Lab - Research cocktail  @Vrije Universiteit Amsterdam (October 2020)
The Green Lab - Research cocktail @Vrije Universiteit Amsterdam (October 2020)Ivano Malavolta
 
Software sustainability and Green IT
Software sustainability and Green ITSoftware sustainability and Green IT
Software sustainability and Green ITIvano Malavolta
 
Navigation-aware and Personalized Prefetching of Network Requests in Android ...
Navigation-aware and Personalized Prefetching of Network Requests in Android ...Navigation-aware and Personalized Prefetching of Network Requests in Android ...
Navigation-aware and Personalized Prefetching of Network Requests in Android ...Ivano Malavolta
 
How Maintainability Issues of Android Apps Evolve [ICSME 2018]
How Maintainability Issues of Android Apps Evolve [ICSME 2018]How Maintainability Issues of Android Apps Evolve [ICSME 2018]
How Maintainability Issues of Android Apps Evolve [ICSME 2018]Ivano Malavolta
 
Collaborative Model-Driven Software Engineering: a Classification Framework a...
Collaborative Model-Driven Software Engineering: a Classification Framework a...Collaborative Model-Driven Software Engineering: a Classification Framework a...
Collaborative Model-Driven Software Engineering: a Classification Framework a...Ivano Malavolta
 
Experimenting on Mobile Apps Quality - a tale about Energy, Performance, and ...
Experimenting on Mobile Apps Quality - a tale about Energy, Performance, and ...Experimenting on Mobile Apps Quality - a tale about Energy, Performance, and ...
Experimenting on Mobile Apps Quality - a tale about Energy, Performance, and ...Ivano Malavolta
 
Modeling objects interaction via UML sequence diagrams [Software Design] [Com...
Modeling objects interaction via UML sequence diagrams [Software Design] [Com...Modeling objects interaction via UML sequence diagrams [Software Design] [Com...
Modeling objects interaction via UML sequence diagrams [Software Design] [Com...Ivano Malavolta
 
Modeling behaviour via UML state machines [Software Design] [Computer Science...
Modeling behaviour via UML state machines [Software Design] [Computer Science...Modeling behaviour via UML state machines [Software Design] [Computer Science...
Modeling behaviour via UML state machines [Software Design] [Computer Science...Ivano Malavolta
 
Object-oriented design patterns in UML [Software Design] [Computer Science] [...
Object-oriented design patterns in UML [Software Design] [Computer Science] [...Object-oriented design patterns in UML [Software Design] [Computer Science] [...
Object-oriented design patterns in UML [Software Design] [Computer Science] [...Ivano Malavolta
 
Structure modeling with UML [Software Design] [Computer Science] [Vrije Unive...
Structure modeling with UML [Software Design] [Computer Science] [Vrije Unive...Structure modeling with UML [Software Design] [Computer Science] [Vrije Unive...
Structure modeling with UML [Software Design] [Computer Science] [Vrije Unive...Ivano Malavolta
 
Requirements engineering with UML [Software Design] [Computer Science] [Vrije...
Requirements engineering with UML [Software Design] [Computer Science] [Vrije...Requirements engineering with UML [Software Design] [Computer Science] [Vrije...
Requirements engineering with UML [Software Design] [Computer Science] [Vrije...Ivano Malavolta
 
Modeling and abstraction, software development process [Software Design] [Com...
Modeling and abstraction, software development process [Software Design] [Com...Modeling and abstraction, software development process [Software Design] [Com...
Modeling and abstraction, software development process [Software Design] [Com...Ivano Malavolta
 
[2017/2018] Agile development
[2017/2018] Agile development[2017/2018] Agile development
[2017/2018] Agile developmentIvano Malavolta
 
Reconstructing microservice-based architectures
Reconstructing microservice-based architecturesReconstructing microservice-based architectures
Reconstructing microservice-based architecturesIvano Malavolta
 
[2017/2018] AADL - Architecture Analysis and Design Language
[2017/2018] AADL - Architecture Analysis and Design Language[2017/2018] AADL - Architecture Analysis and Design Language
[2017/2018] AADL - Architecture Analysis and Design LanguageIvano Malavolta
 
[2017/2018] Architectural languages
[2017/2018] Architectural languages[2017/2018] Architectural languages
[2017/2018] Architectural languagesIvano Malavolta
 
[2017/2018] Introduction to Software Architecture
[2017/2018] Introduction to Software Architecture[2017/2018] Introduction to Software Architecture
[2017/2018] Introduction to Software ArchitectureIvano Malavolta
 
[2017/2018] RESEARCH in software engineering
[2017/2018] RESEARCH in software engineering[2017/2018] RESEARCH in software engineering
[2017/2018] RESEARCH in software engineeringIvano Malavolta
 

More from Ivano Malavolta (20)

Conducting Experiments on the Software Architecture of Robotic Systems (QRARS...
Conducting Experiments on the Software Architecture of Robotic Systems (QRARS...Conducting Experiments on the Software Architecture of Robotic Systems (QRARS...
Conducting Experiments on the Software Architecture of Robotic Systems (QRARS...
 
The H2020 experience
The H2020 experienceThe H2020 experience
The H2020 experience
 
The Green Lab - Research cocktail @Vrije Universiteit Amsterdam (October 2020)
The Green Lab - Research cocktail  @Vrije Universiteit Amsterdam (October 2020)The Green Lab - Research cocktail  @Vrije Universiteit Amsterdam (October 2020)
The Green Lab - Research cocktail @Vrije Universiteit Amsterdam (October 2020)
 
Software sustainability and Green IT
Software sustainability and Green ITSoftware sustainability and Green IT
Software sustainability and Green IT
 
Navigation-aware and Personalized Prefetching of Network Requests in Android ...
Navigation-aware and Personalized Prefetching of Network Requests in Android ...Navigation-aware and Personalized Prefetching of Network Requests in Android ...
Navigation-aware and Personalized Prefetching of Network Requests in Android ...
 
How Maintainability Issues of Android Apps Evolve [ICSME 2018]
How Maintainability Issues of Android Apps Evolve [ICSME 2018]How Maintainability Issues of Android Apps Evolve [ICSME 2018]
How Maintainability Issues of Android Apps Evolve [ICSME 2018]
 
Collaborative Model-Driven Software Engineering: a Classification Framework a...
Collaborative Model-Driven Software Engineering: a Classification Framework a...Collaborative Model-Driven Software Engineering: a Classification Framework a...
Collaborative Model-Driven Software Engineering: a Classification Framework a...
 
Experimenting on Mobile Apps Quality - a tale about Energy, Performance, and ...
Experimenting on Mobile Apps Quality - a tale about Energy, Performance, and ...Experimenting on Mobile Apps Quality - a tale about Energy, Performance, and ...
Experimenting on Mobile Apps Quality - a tale about Energy, Performance, and ...
 
Modeling objects interaction via UML sequence diagrams [Software Design] [Com...
Modeling objects interaction via UML sequence diagrams [Software Design] [Com...Modeling objects interaction via UML sequence diagrams [Software Design] [Com...
Modeling objects interaction via UML sequence diagrams [Software Design] [Com...
 
Modeling behaviour via UML state machines [Software Design] [Computer Science...
Modeling behaviour via UML state machines [Software Design] [Computer Science...Modeling behaviour via UML state machines [Software Design] [Computer Science...
Modeling behaviour via UML state machines [Software Design] [Computer Science...
 
Object-oriented design patterns in UML [Software Design] [Computer Science] [...
Object-oriented design patterns in UML [Software Design] [Computer Science] [...Object-oriented design patterns in UML [Software Design] [Computer Science] [...
Object-oriented design patterns in UML [Software Design] [Computer Science] [...
 
Structure modeling with UML [Software Design] [Computer Science] [Vrije Unive...
Structure modeling with UML [Software Design] [Computer Science] [Vrije Unive...Structure modeling with UML [Software Design] [Computer Science] [Vrije Unive...
Structure modeling with UML [Software Design] [Computer Science] [Vrije Unive...
 
Requirements engineering with UML [Software Design] [Computer Science] [Vrije...
Requirements engineering with UML [Software Design] [Computer Science] [Vrije...Requirements engineering with UML [Software Design] [Computer Science] [Vrije...
Requirements engineering with UML [Software Design] [Computer Science] [Vrije...
 
Modeling and abstraction, software development process [Software Design] [Com...
Modeling and abstraction, software development process [Software Design] [Com...Modeling and abstraction, software development process [Software Design] [Com...
Modeling and abstraction, software development process [Software Design] [Com...
 
[2017/2018] Agile development
[2017/2018] Agile development[2017/2018] Agile development
[2017/2018] Agile development
 
Reconstructing microservice-based architectures
Reconstructing microservice-based architecturesReconstructing microservice-based architectures
Reconstructing microservice-based architectures
 
[2017/2018] AADL - Architecture Analysis and Design Language
[2017/2018] AADL - Architecture Analysis and Design Language[2017/2018] AADL - Architecture Analysis and Design Language
[2017/2018] AADL - Architecture Analysis and Design Language
 
[2017/2018] Architectural languages
[2017/2018] Architectural languages[2017/2018] Architectural languages
[2017/2018] Architectural languages
 
[2017/2018] Introduction to Software Architecture
[2017/2018] Introduction to Software Architecture[2017/2018] Introduction to Software Architecture
[2017/2018] Introduction to Software Architecture
 
[2017/2018] RESEARCH in software engineering
[2017/2018] RESEARCH in software engineering[2017/2018] RESEARCH in software engineering
[2017/2018] RESEARCH in software engineering
 

Recently uploaded

Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 

Recently uploaded (20)

Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 

[2015/2016] HTML5 and CSS3 Refresher

  • 1. Gran Sasso Science Institute Ivano Malavolta HTML5 & CSS3 refresher
  • 2. Roadmap Anatomy of a web app HTML5 CSS3
  • 3. What is a Web App? A software built with webtechnologies that is accessible via a (mobile) browser The browser may be either the standard device browser or an embedded browser (Hybrid app)
  • 4. Anatomy of a Web App
  • 5. Data Usually mobile apps do not talk directlywiththe database à do not even think about JDBC, drivers,etc! àThey pass through an applicationserver and communicate via: • standard HTTP requests forHTML content (eg PHP) • REST-fullservices (XML, JSON, etc.) • SOAP
  • 6. Roadmap Anatomy of a web app HTML5 CSS3
  • 7. HTML 5 • Intro • New Structural Tags and Attributes • Forms • Audio & Video • Offline Data • Geolocalization • Web Sockets • Canvas& SVG
  • 8. HTML 5 HTML5 will be the new standard for HTML HTML5 is still a work in progress W3Cfinal recomendation: 2020 Top browsers supportmany (not all)of the new HTML5 elements http://mobilehtml5.org http://caniuse.com
  • 9. What is HTML5? HTML5 Markup JavaScript CSS3Multimedia
  • 10. The minimal HTML5 page <!DOCTYPE html> <html> <head> <title>Title</title> </head> <body> … </body> </html>
  • 11. Roadmap • Intro • New Structural Tags and Attributes • Forms • Audio & Video • Offline Data • Geolocalization • Web Sockets • Canvas& SVG
  • 12. New Structural Tags Main Goal: separate presentation from content • Poor accessibility • Unnecessary complexity • Larger document size Most of the presentational features from earlier versions of HTML are no longer supported
  • 13. New Structural Tags <header> header region of a page or section <footer> footer region of a page or section <nav> navigation region of a pageor section <section> logical region of a page <article> a complete piece of content <aside> secondary or related content
  • 15. Other Structural Tags <command> a commandbutton that a user can invoke <details> additional details that the user can view or hide <summary> a visible heading for a <details> element <meter> an amount within a range <progress> shows real-time progress towards a goal <figure> self-contained content, like illustrations, diagrams, photos, code listings, etc. <figcaption> caption of a figure <mark> marked/highlighted text <time> a date/time <wbr>Definesa possible line-break
  • 16. Custom Data Attributes Can be used to add metadataabout any element within an HTML5 page They are ignored by the validatorfor HTML5 documents They all startwith the data- pattern They can be read by any browser using JavaScriptviathe getAttribute() method
  • 17. Roadmap • Intro • New Structural Tags and Attributes • Forms • Audio & Video • Offline Data • Geolocalization • Web Sockets • Canvas& SVG
  • 18. Forms Main Goal: reduce the JavaScriptfor validation and format management Example:
  • 19. Form Input Types <input type="search"> for search boxes <input type="number"> for spinboxes <input type="range"> for sliders <input type="color"> for color pickers <input type="tel"> for telephone numbers <input type="url"> for web addresses <input type="email"> for email addresses <input type="date"> for calendar datepickers <input type="month"> for months <input type="week"> for weeks <input type="time"> for timestamps <input type="datetime"> for precisetimestamps <input type="datetime-local"> for local dates and times
  • 20. Form Input Types Form input types degrade gracefully à Unknown input types are treatedas text-type http://bit.ly/I65jai
  • 21. Form Field Attributes Autofocus – Supportfor placingthe focus on a specific form element <input type="text“ autofocus> Placeholder – Supportfor placingplaceholder text inside a form field <input type="text“ placeholder=“your name”>
  • 22. Roadmap • Intro • New Structural Tags and Attributes • Forms • Audio & Video • Offline Data • Geolocalization • Web Sockets • Server-Sent Events • Canvas& SVG
  • 23. Audio <audio> : a standardway to embed an audio file on a web page <audio controls> <source src="song.ogg" type="audio/ogg" /> <source src="song.mp3" type="audio/mpeg" /> Not Supported </audio> Multiplesources à the browser will use the firstrecognized format
  • 25. Audio JavaScript API HTML5provides a set of JavaScript APIs for interacting with an audio element For example: play() pause() load() currentTime ended volume… à http://www.w3.org/wiki/HTML/Elements/audio
  • 26. Video <video> : a standardway to embed a video file on a web page <video width="320" height="240" controls> <source src="movie.mp4" type="video/mp4" /> <source src="movie.ogg" type="video/ogg" /> Not Supported </video> Multiplesources à the browser will use the firstrecognized format
  • 28. Video JavaScript API HTML5provides a set of Javascript APIs for interactingwith a video element For example: play() pause() load() currentTime ended volume… à http://www.w3.org/wiki/HTML/Elements/video
  • 29. A note on YouTube videos <video> works only if you havea direct link to the MP4 file of the YouTube video If you havejust a link to the YouTube page of your video, simply embed it in your page <iframe width="560" height="315" src="http://www.youtube.com/embed/Wp20Sc8qPeo" frameborder="0" allowfullscreen></iframe>
  • 30. Roadmap • Intro • New Structural Tags and Attributes • Forms • Audio & Video • Offline Data • Geolocalization • Web Sockets • Canvas& SVG
  • 31. Offline Data LocalStorage stores datain key/valuepairs it is tied to a specific domain/app persists across browser sessions SessionStorage stores datain key/valuepairs it is tied to a specific domain/app data is erased when a browser session ends We will havea dedicated lecture to offline data storage on mobile devices
  • 32. Offline Data WebSQL Database relationalDB support for tables creation,insert, update,… transactional tied to a specific domain/app persists across browser sessions Its evolutionis called IndexedDB, but it is actuallynot fully supported yet in iOS
  • 33.
  • 34. Roadmap • Intro • New Structural Tags and Attributes • Forms • Audio & Video • Offline Data • Geolocalization • Web Sockets • Canvas& SVG
  • 35. Geolocalization Gets Latitudeand Longitude from the user’s browser There is also a watchPositionmethod wich calls a JS function every time the user moves We will havea dedicated lecture to geolocalizationon mobile devices
  • 36. Example function getLocation() { if(navigator.geolocation) { navigator.geolocation.getCurrentPosition(showPosition); } else { console.log(‘no geolocalization’); } } function showPosition(position) { console.log(position.coords.latitude); console.log(position.coords.longitude); }
  • 38. Roadmap • Intro • New Structural Tags and Attributes • Forms • Audio & Video • Offline Data • Geolocalization • Web Sockets • Canvas& SVG
  • 39. WebSockets Bidirectional,full-duplex communicationbetween devices and server Specificallysuited for chat,videogames, drawings sharing, real-timeinfo Requires a Web Socket Serverto handle the protocol
  • 40. Alternative - Polling via AJAX + Near real-time updates (not purely real-time) + easy to implement + no new technologies needed - they are requested from the client à increased networktraffic - AJAX requests generally havea small payloadand relatively high amountof httpheaders (wasted bandwith)
  • 41. Roadmap • Intro • New Structural Tags and Attributes • Forms • Audio & Video • Offline Data • Geolocalization • Web Sockets • Canvas& SVG
  • 42. Canvas & SVG Canvas & SVG allowyou to creategraphics inside the browser http://bit.ly/Ie4HKu
  • 43. Canvas & SVG Canvas draws 2D graphics, on the fly you use JavaScriptto draw on the canvas rendered pixel by pixel example: http://www.w3schools.com/html/tryit.asp?filename=tryhtml5_canvas_tut_path SVG describes 2D graphics in XML every element is availablewithin theSVG DOM JavaScriptevent handlers for an element example: http://www.w3schools.com/svg/tryit.asp?filename=trysvg_circle
  • 44. Roadmap Anatomy of a web app HTML5 CSS3
  • 45. Roadmap • Intro • Basics • Selectors • Box Model • Positioning & Floats • Fonts • Visual Effects • Media Queries
  • 47. CSS3 Main Drivers Simplicity – less images – less markup – less JavaScript – no Flash Better performance – fewer HTTP requests Better Search Engine Placement – text as real text,not images or Flash contents – speed
  • 48. Roadmap • Intro • Basics • Selectors • Box Model • Positioning & Floats • Fonts • Visual Effects • Media Queries
  • 50. Inheritance If an HTML elementB is nestedinto anotherelementA àB inheritsthe style of A unlessB has an explicit style definition body { background-color: red; } div { background-color: green; }
  • 51. Combining Selectors Selectors can be combined h1, h2, h3 { background-color: red; }
  • 52. Lists ul { list-style-image: url(image.png); list-style-position: inside; list-style-style: circle; } Position inside | outside Style disc | circle square | decimal lower-roman | upper-roman| lower-alpha | upper-alpha| none
  • 53. Backgrounds You can style a backgroundof any element div { background: url(img.png), url(img2.png); background-size: 80px, 60px; background-repeat: no-repeat, no-repeat; background-origin: content-box, top left; } repeat no-repeat | repeat repeat-x | repeat-y origin top left | top center | top right | center left | border-box | content-box etc.
  • 54. Background & Colors div { background-color: blue; background-color: rgba(0, 0, 255, 0.2); } RGBA = RGB + opacity
  • 55. Gradients They can be used in every place you can use an image div { background: -webkit-gradient(linear, right top, left bottom, from(red), to(green)); } linear à the type of gradient (also radial,or repeating-linear) right-top à startof the gradient left-bottom à end of the gradient from à startingcolor to à finalcolor
  • 56. Text p { color: grey; letter-spacing: 5px; text-align: justify; text-decoration: underline; text-indent: 10px; text-transform: capitalize; word-spacing: 10px; } text-align left | right center | justify Text-decoration none underline overline line throughtext-transform none | capitalize | lowercase | uppercase
  • 57. Text Effects p { text-shadow: 2px 10px 5px #FF0000; text-overflow: ellipsis; word-wrap:break-word; } 2px à horizontalshadow 10px à verticalshadow 5px à blur distance #FF0000 à color
  • 59. Roadmap • Intro • Basics • Selectors • Box Model • Positioning & Floats • Fonts • Visual Effects • Media Queries
  • 60. Selectors Classical waysto select elements in CSS2: • by type a { color: red; } • by id #redLink { color: red; } • by class .redLink { color: red; }
  • 61. Other Selectors from CSS1 & CSS2 • div p à all <p> elements inside a <div> • div>p à all <p> elements where the parentis a <div> • div+p à all <p> elements that are placed immediatelyafter <div> • [target] à all elements witha target attribute • [target=_blank]à all elements with target= "_blank“ • p:first-childà every<p> element that is the firstchild of its parent
  • 62. Some selectors introduced in CSS3 • a[href^="https"]à every <a> element whose src attribute value begins with "https” • a[href$=".pdf"]à every <a> element whose src attributevalue ends with ".pdf” • a[href*=“mobile"]à every<a> element whose src attribute value contains the substring “mobile“ • p:nth-child(2) à every<p> element that is the second child of its parent • p:nth-last-child(2)à every <p> element thatis the second child of its parent,counting from the last child • :not(p) à every element thatis not a <p> element
  • 63. Roadmap • Intro • Basics • Selectors • Box Model • Positioning & Floats • Fonts • Visual Effects • Media Queries
  • 65. http://www.adamkaplan.me/grid/ Tip Tells the browser not to include borders and padding in the width of your content à you havemore control on the layoutof your app
  • 67. Borders & dimensions div { width: 100px; height: 40px; padding: 10px; border: 5px solid gray; margin: 10px; border-radius: 10px; box-shadow: 10px 10px 5px red; }
  • 68. Roadmap • Intro • Basics • Selectors • Box Model • Positioning & Floats • Fonts • Visual Effects • Media Queries
  • 69. The Display Property It specifies if and how an element is displayed div { display: none; } The element willbe hidden, and the page will be displayed as if the element is not in the DOM
  • 70. The Display Property Other usual values: block • a block element is an element thattakes up the full width available,and has a line break before and afterit inline • an inline element only takes up as much width as necessary • it can containonly otherinline elements inline-block • the element is placed as an inline element (on the same line as adjacentcontent), but it behaves as a block element – you can set width and height, top and bottom margins and paddings
  • 71. The visibility Property It specifies if an element should be visible or hidden div.hidden { visibility: hidden; } The element willbe hidden, but still affectingthe layout It can also be set to visible, collapse (only for tables), inherit
  • 72. Flex Box It helps in stylingelements to be arrangedhorizontallyor vertically box: • a new value for the display property • a new propertybox-orient #div { display: box; box-orient: horizontal; }
  • 73. Flex Box main elements display: box opts an element and its immediate children into the flexible box model box-orient Values: horizontal| vertical| inherit How should the box's childrenbe aligned box-direction Values: normal| reverse | inherit sets the order in which the elements will be displayed
  • 74. Flex Box main elements box-pack Values: start| end | center | justify Sets the alignmentof the box along the box-orient axis box-orient: horizontal; box-pack: end;
  • 75. Flex Box main elements box-align Values: start| end | center | baseline | stretch Sets how the box's children are aligned in the box box-orient: horizontal; box-align: center;
  • 76. Flex Box Children by default child elements are not flexible à their dimension is set according to their width box-flex can be set to any integer It sets how a child element occupy the box’s space #box1 { width: 100px; } #box2 { box-flex: 1; } #box3 { box-flex: 2; }
  • 78. Static Positioning Elements will stackone on top of the next http://bit.ly/I8cEaF
  • 79. Relative Positioning Elements behaveexactly the same way as statically positioned elements we can adjust a relatively positioned element with offset properties: top, right, bottom,and left http://bit.ly/I8cEaF
  • 80. Relative Positioning It is possible to create a coordinatesystem for child elements http://bit.ly/I8cEaF
  • 81. Absolute Positioning an absolutely positioned element is removed from the normal flow it won’t affector be affected by any other element in the flow http://bit.ly/I8cEaF
  • 82. Fixed Positioning shares all the rules of an absolutely positioned element a fixed element does not scroll with the document http://bit.ly/I8cEaF
  • 83. Float A floated element willmove as far to the left or right as it can Elements are floated only horizontally The floatCSS propertycan acceptone of 4 values: left, right,none, and inherit
  • 84. Roadmap • Intro • Basics • Selectors • Box Model • Positioning & Floats • Fonts • Visual Effects • Media Queries
  • 85. Fonts Before CSS3,web designers had to use fonts thatwere already installed on the user's device With CSS3,web designers can use whateverfont they like @font-face { font-family: NAME; src: url(Dimbo.ttf); font-weight: normal; font-style: normal; } font-style normal italic oblique font-weight normal bold 100 200 …
  • 86. Fonts Usage To use the font foran HTML element, refer to the name of the font (NAME) throughthe font-familyproperty div { font-family: NAME; }
  • 88. Roadmap • Intro • Basics • Selectors • Box Model • Positioning & Floats • Fonts • Visual Effects • Media Queries
  • 89. Visual Effects Three main mechanisms: 1. Transforms (both 2D and 3D) 2. Transitions 3. Animations
  • 90. Transforms A transform is an effect thatlets an element change shape, size, position,… You can transform yourelements using 2D or 3D transformations http://bit.ly/IroJ7S
  • 93. Transitions They are used to add an effect when changing from one style to another The effect can be gradual The effect will startwhen the specified CSS propertychanges value
  • 94. Transition syntax A transitioncontains 4 properties: • property – the name of the CSS property the transition effect is for (can be all) • duration – how many seconds (or milliseconds)thetransition effect takes to complete • timing-function – linear, ease, ease-in, ease-out, ease-in-out • delay – when the transition effect will start
  • 95. Example .imageThumbnail { width; 200px; transition: all ease-in 3s; } .zoomed { position: absolute; left: 0px; top: 0px; width: 100%; } $(‘.imageThumbnail’).addClass(‘zoomed’);
  • 96. Animations An animationis an effect thatlets an element graduallychange from one style to another You can change style in loop, repeating, etc. To bind an animationto an element, you have to specify at least: 1. Name of the animation 2. Duration of the animation div { animation: test 5s ease-in; }
  • 97. Animation Definition An animationis definedin a keyframe It splits the animationinto parts, and assign a specific style to each part The various steps within an animationare givenas percentuals 0% à beginningofthe animation (from) 100% à end of the animation(to)
  • 98. Example @keyframes test{ 0% {background: red; left:0px; top:0px;} 25% {background: yellow; left:200px; top:0px;} 50% {background: blue; left:200px; top:200px;} 75% {background: green; left:0px; top:200px;} 100% {background: red; left:0px; top:0px;} } result in http://goo.gl/kFZrLs
  • 100. Transitions VS Animations • Trigger – Transitions mustbe bound to a CSS property change – Animations startautonomously • States – Transitions havestartand end states – Animations can havemultiplestates • Repeats – Transitions can be perfomed once for each activation – Animations can be looped
  • 101. Roadmap • Intro • Basics • Selectors • Box Model • Positioning & Floats • Fonts • Visual Effects • Media Queries
  • 102. Media Queries They allow you to to change style based on specific conditions For example, theycan be about • device’s displaysize • orientationof the device • Resolution of the display • ...
  • 104.
  • 105. Media Types Media Queries are based on Media Types A media type is a specificationof the actualmedia thatis being used to access the page Examples of media types include • screen: computerscreens • print:printed document • braille: forBraille-based devices • tv: for televisiondevices
  • 106. Media Types There are two main waysto specify a media type: • <link> in the HTML page <link rel=“stylesheet” href=“style.css” media=“screen” /> • @media within the CSS file @media screen { div { color: red; } }
  • 107. Media Queries A media query is a boolean expression The CSSassociated withthe media query expression is applied only if it evaluates to true A media query consists of 1. a media type 2. a set of media features @media screen and orientation: portrait
  • 108. The Full Media Feature List http://slidesha.re/I5oFHZ
  • 109. The AND operator You can combine multiple expressions by using the and operator @media screen and (max-device-width: 480px){ /* your style */ }
  • 110. The COMMA operator The comma keyword acts as an or operator @media screen and (color), handheld and (color) { /* your style */ }
  • 111. The NOT operator You can explicitlyignore a specific type of device by using the not operator @media not (width:480px) { /* your style */ }
  • 112. Examples Retina Displays @media only screen and -webkit-min-device-pixel-ratio: 2 iPad in landscape orientation @media only screen and (device-width: 768px) and (orientation: landscape) iPhone and Android devices @media only screen and (min-device-width: 320px) and (max-device-width: 480px)
  • 114. LAB 1. develop a simple HTML pagefor showing a list of products in Loveitaly – HTML, CSS 2. develop a simple HTML pageshowing the details about a specific product in Loveitaly