SlideShare une entreprise Scribd logo
1  sur  60
Make your design shine with HTML5 and CSS3
Beatriz Oliveira
HTML5
HTML5 Collection of features Don’t throw anything away Easy to get started It already works! It’s here to stay!
<!DOCTYPE html>
New semantic elements HTML5 elements
<!DOCTYPE html> <html lang="en"> <head>…</head> <body>   <header>     <hgroup>…</hgroup>     <nav>…</nav>   </header>   <section> 	<article>…</article> 	<article>…</article>   </section>  <footer>…</footer> </body> </html>
demo
CSS3
CSS3 It’s here to stay! Use in non critical areas Focus on experience level Start today!
multiple background images CSS3 properties
.foo { background:url(image1.png) no-repeat top left,url(image2.png) repeat-x bottom left,url(image3.png) repeat-y top right;}
parallax scrolling
web fonts CSS3 properties
prepare your IIS server for “.otf” web.config <system.webServer> <staticContent> http://html5boilerplate.com/ http://madskristensen.net/post/Prepare-webconfig-for-HTML5-and-CSS3.aspx
border-radius CSS3 properties
.foo { border-radius: 10px; }
box-shadow CSS3 properties
.foo { box-shadow: 1px 1px 2px 2px #999 inset; }
opacity CSS3 properties
.foo { color: rgba(0, 0, 0, 0.75); }
.foo { opacity: 0.5; }
vendor-specific prefixes CSS3 properties
css transforms CSS3 properties
what are 2D transforms?
“transform" property
transform functions
.foo { transform: rotate(3deg); }
.foo { transform: scaleX(2) scaleY(3); }
.foo { transform: scale(2,3); }
.foo { transform: skewX(5deg) skewY(-20deg); }
.foo { transform: skew(5deg, -20deg); }
.foo { transform: translateX(10px) translateY(20px); }
.foo { transform: translate(10px, 20px); }
“transform-origin" property
.foo { transform-origin: left bottom; }
css transitions CSS3 properties
smooth property changes
.foo {transition-property: background;transition-duration: 0.3s;transition-timimg-function: ease;	transition-delay: 0.5s;}
.foo { transition: background 0.3s ease 0.5s; }
text-shadow CSS3 properties
p { text-shadow: 1px 1px 2px #999; }
new selectors CSS3 selectors
.foo:empty
.foo:first-child
.foo:nth-child(n)
.foo:only-child
.foo:last-child
.foo:target
.foo:checked
.pre ~ .foo
input boxes, css buttons and focus states CSS3 forms
Contacts www.bind.pt Twitter – bindskins beatrizoliveira@bind.pt
questions?

Contenu connexe

Tendances (20)

Eye catching HTML BASICS tips: Learn easily
Eye catching HTML BASICS tips: Learn easilyEye catching HTML BASICS tips: Learn easily
Eye catching HTML BASICS tips: Learn easily
 
Html text formatting
Html text formattingHtml text formatting
Html text formatting
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
Html basic tags
Html basic tagsHtml basic tags
Html basic tags
 
Html Ppt
Html PptHtml Ppt
Html Ppt
 
Html
HtmlHtml
Html
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
Html introduction
Html introductionHtml introduction
Html introduction
 
HTML (Web) basics for a beginner
HTML (Web) basics for a beginnerHTML (Web) basics for a beginner
HTML (Web) basics for a beginner
 
Html1
Html1Html1
Html1
 
Htmltag.ppt
Htmltag.pptHtmltag.ppt
Htmltag.ppt
 
HTML & CSS
HTML & CSSHTML & CSS
HTML & CSS
 
Understanding THML
Understanding THMLUnderstanding THML
Understanding THML
 
Intro to html
Intro to htmlIntro to html
Intro to html
 
Learning Html
Learning HtmlLearning Html
Learning Html
 
Html ppt
Html pptHtml ppt
Html ppt
 
Introduction To HTML
Introduction To HTMLIntroduction To HTML
Introduction To HTML
 
Lecture 2 introduction to html
Lecture 2  introduction to htmlLecture 2  introduction to html
Lecture 2 introduction to html
 
HTML presentation for beginners
HTML presentation for beginnersHTML presentation for beginners
HTML presentation for beginners
 
Html
HtmlHtml
Html
 

Similaire à New HTML5/CSS3 techniques

Html 5 a step towards semantic web
Html 5   a step towards semantic webHtml 5   a step towards semantic web
Html 5 a step towards semantic webSachin Khosla
 
HTML5 - techMaine Presentation 5/18/09
HTML5 - techMaine Presentation 5/18/09HTML5 - techMaine Presentation 5/18/09
HTML5 - techMaine Presentation 5/18/09pemaquid
 
HTML5 - One spec to rule them all
HTML5 - One spec to rule them allHTML5 - One spec to rule them all
HTML5 - One spec to rule them allStu King
 
Html basics IML 140 (weeks 2-3)
Html basics IML 140 (weeks 2-3)Html basics IML 140 (weeks 2-3)
Html basics IML 140 (weeks 2-3)Evan Hughes
 
Html5: What is it?
Html5: What is it? Html5: What is it?
Html5: What is it? joeydehnert
 
Developing Gadgets
Developing GadgetsDeveloping Gadgets
Developing GadgetsQuirk
 
HTML5 - What h#@$ is it?
HTML5 - What h#@$ is it?HTML5 - What h#@$ is it?
HTML5 - What h#@$ is it?Carlos Ramon
 
PL2235 2009 1 HTML
PL2235 2009 1 HTMLPL2235 2009 1 HTML
PL2235 2009 1 HTMLAliamat UBD
 
Optimizing Drupal for Mobile Devices
Optimizing Drupal for Mobile DevicesOptimizing Drupal for Mobile Devices
Optimizing Drupal for Mobile DevicesSugree Phatanapherom
 
Lca2009 Video A11y
Lca2009 Video A11yLca2009 Video A11y
Lca2009 Video A11yguesta3d158
 
Successful Teams follow Standards
Successful Teams follow StandardsSuccessful Teams follow Standards
Successful Teams follow StandardsChristian Heilmann
 

Similaire à New HTML5/CSS3 techniques (20)

Html 5 a step towards semantic web
Html 5   a step towards semantic webHtml 5   a step towards semantic web
Html 5 a step towards semantic web
 
HTML5 - techMaine Presentation 5/18/09
HTML5 - techMaine Presentation 5/18/09HTML5 - techMaine Presentation 5/18/09
HTML5 - techMaine Presentation 5/18/09
 
HTML5: 5 Quick Wins
HTML5:  5 Quick WinsHTML5:  5 Quick Wins
HTML5: 5 Quick Wins
 
HTML5 - One spec to rule them all
HTML5 - One spec to rule them allHTML5 - One spec to rule them all
HTML5 - One spec to rule them all
 
Html basics IML 140 (weeks 2-3)
Html basics IML 140 (weeks 2-3)Html basics IML 140 (weeks 2-3)
Html basics IML 140 (weeks 2-3)
 
HTML and CSS workshop
HTML and CSS workshopHTML and CSS workshop
HTML and CSS workshop
 
Html5 Overview
Html5 OverviewHtml5 Overview
Html5 Overview
 
HTML5
HTML5HTML5
HTML5
 
Understanding html
Understanding htmlUnderstanding html
Understanding html
 
HTML Fundamentals
HTML FundamentalsHTML Fundamentals
HTML Fundamentals
 
Html5: What is it?
Html5: What is it? Html5: What is it?
Html5: What is it?
 
Developing Gadgets
Developing GadgetsDeveloping Gadgets
Developing Gadgets
 
HTML5 - What h#@$ is it?
HTML5 - What h#@$ is it?HTML5 - What h#@$ is it?
HTML5 - What h#@$ is it?
 
PL2235 2009 1 HTML
PL2235 2009 1 HTMLPL2235 2009 1 HTML
PL2235 2009 1 HTML
 
Html5
Html5 Html5
Html5
 
XHTML basics
XHTML basicsXHTML basics
XHTML basics
 
Html5
Html5Html5
Html5
 
Optimizing Drupal for Mobile Devices
Optimizing Drupal for Mobile DevicesOptimizing Drupal for Mobile Devices
Optimizing Drupal for Mobile Devices
 
Lca2009 Video A11y
Lca2009 Video A11yLca2009 Video A11y
Lca2009 Video A11y
 
Successful Teams follow Standards
Successful Teams follow StandardsSuccessful Teams follow Standards
Successful Teams follow Standards
 

New HTML5/CSS3 techniques

Notes de l'éditeur

  1. &lt;system.webServer&gt; &lt;staticContent&gt; &lt;!-- HTML5 Audio/Video mime types--&gt; &lt;removefileExtension=&quot;.mp3&quot; /&gt; &lt;mimeMapfileExtension=&quot;.mp3&quot; mimeType=&quot;audio/mpeg&quot; /&gt; &lt;removefileExtension=&quot;.mp4&quot; /&gt; &lt;mimeMapfileExtension=&quot;.mp4&quot; mimeType=&quot;video/mp4&quot; /&gt; &lt;removefilextension=&quot;.ogg&quot; /&gt; &lt;mimeMapfileExtension=&quot;.ogg&quot; mimeType=&quot;audio/ogg&quot; /&gt; &lt;removefileExtension=&quot;.ogv&quot; /&gt; &lt;mimeMapfileExtension=&quot;.ogv&quot; mimeType=&quot;video/ogg&quot; /&gt; &lt;removefileExtension=&quot;.webm&quot; /&gt; &lt;mimeMapfileExtension=&quot;.webm&quot; mimeType=&quot;video/webm&quot; /&gt; &lt;!-- Proper svgserving. Required for svg webfonts on iPad --&gt; &lt;removefileExtension=&quot;.svg&quot; /&gt; &lt;mimeMapfileExtension=&quot;.svg&quot; mimeType=&quot;images/svg+xml&quot; /&gt; &lt;removefileExtension=&quot;.svgz&quot; /&gt; &lt;mimeMapfileExtension=&quot;.svgz&quot; mimeType=&quot;images/svg+xml&quot; /&gt; &lt;!-- HTML4 Web font mime types --&gt; &lt;!-- Remove default IIS mime type for .eotwhichis application/octet-stream --&gt; &lt;removefileExtension=&quot;.eot&quot; /&gt; &lt;mimeMapfileExtension=&quot;.eot&quot; mimeType=&quot;application/vnd.ms-fontobject&quot; /&gt; &lt;removefileExtension=&quot;.otf&quot; /&gt; &lt;mimeMapfileExtension=&quot;.otf&quot; mimeType=&quot;font/otf&quot; /&gt; &lt;removefileExtension=&quot;.woff&quot; /&gt; &lt;mimeMapfileExtension=&quot;.woff&quot; mimeType=&quot;font/x-woff&quot; /&gt; &lt;removefileExtension=&quot;.crx&quot; /&gt; &lt;mimeMapfileExtension=&quot;.crx&quot; mimeType=&quot;application/x-chrome-extension&quot; /&gt; &lt;removefileExtension=&quot;.xpi&quot; /&gt; &lt;mimeMapfileExtension=&quot;.xpi&quot; mimeType=&quot;application/x-xpinstall&quot; /&gt; &lt;removefileExtension=&quot;.safariextz&quot; /&gt; &lt;mimeMapfileExtension=&quot;.safariextz&quot; mimeType=&quot;application/octet-stream&quot; /&gt; &lt;!-- Flash Video mime types--&gt; &lt;remove fileExtension=&quot;.flv&quot; /&gt; &lt;mimeMapfileExtension=&quot;.flv&quot; mimeType=&quot;video/x-flv&quot; /&gt; &lt;removefileExtension=&quot;.f4v&quot; /&gt; &lt;mimeMapfileExtension=&quot;.f4v&quot; mimeType=&quot;video/mp4&quot; /&gt; &lt;/staticContent&gt;