KEMBAR78
New HTML5/CSS3 techniques | PPTX
Make your design shine withHTML5 and CSS3
Beatriz Oliveira
HTML5
HTML5Collection of featuresDon’t throw anything awayEasy to get startedIt already works!It’s here to stay!
<!DOCTYPE html>
New semantic elementsHTML5 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
CSS3It’s here to stay!Use in non critical areasFocus on experience levelStart today!
multiple background imagesCSS3 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 fontsCSS3 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-radiusCSS3 properties
.foo { border-radius: 10px; }
box-shadowCSS3 properties
.foo { box-shadow: 1px 1px 2px 2px #999 inset; }
opacityCSS3 properties
.foo { color: rgba(0, 0, 0, 0.75); }
.foo { opacity: 0.5; }
vendor-specific prefixesCSS3 properties
css transformsCSS3 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 transitionsCSS3 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-shadowCSS3 properties
p { text-shadow: 1px 1px 2px #999; }
new selectorsCSS3 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 statesCSS3 forms
Contactswww.bind.ptTwitter – bindskinsbeatrizoliveira@bind.pt
questions?

New HTML5/CSS3 techniques

Editor's Notes

  • #20 &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;