SlideShare ist ein Scribd-Unternehmen logo
1 von 51
KARKHA.COM


           WELCOME TO HTML 5 AND CSS 3 WORKSHOP
                               BY
                       KAMALAKANNAN . S
                           9789989552
               https://www.facebook.com/sivkannan
                          @sivkannan77
                    Sundaresan - 9941131357
                   Chockalingam - 9543111174




09/09/12                  Www.karkha.com            1
KARKHA.COM

           ●   We Karkha.com is young and vibrant open source web
                development startup. We rollout by January 2013.
                    ● What we plan to do next four months
                           ●Initially we conduct workshops
                       ●   Weekend courses on open source
                                     ●   Goals
   ●   To bridge the gap between industry required open source technical
                                     skills
  ●    Provide solutions and services for web and mobile application.




09/09/12                           Www.karkha.com                          2
What is HTML5?
“HMTL5 is not a single thing or a monolithic
technology. It is a collection of features,
technologies, and APIs that brings the power of
the desktop and the vibrancy of multimedia
experience to the web—while amplifying the web’s
core strengths of interactivity and connectivity.”
                        - www.HTML5ROCKS.com
HTML5 = fifth revision of HTML + CSS3 + JS


09/09/12             Www.karkha.com              3
HTML 5
 ●   Can i start using HTML5 ?
 ●   Do i need to relearn HTML 4 already i am
     familiar with
 ●   How to updgrade from HTML 4




09/09/12               Www.karkha.com           4
HTML 5 features
 ●   Offline / storage
 ●   Realtime / communication
 ●   File / Hardware Access
 ●   Semantics & Markup
 ●   Audio & Video
 ●   3D Graphics
 ●   Presentation ( CSS3 )

09/09/12                 Www.karkha.com   5
Let experience
 ●   Semantics & markup
 ●   Presentation




09/09/12             Www.karkha.com   6
Semantics & markup




             More meaningful elements




09/09/12            Www.karkha.com      7
Semantics & Markup
Earlier -
<!DOCTYPE html
           PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
           "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
">
HTML 5 -
<!DOCTYPE html>




09/09/12                     Www.karkha.com                     8
Semantics & markup
Earlier -
<html xmlns="http://www.w3.org/1999/xhtml"
       lang="en"
       xml:lang="en">
HTML 5 -
<html lang="en">



09/09/12                Www.karkha.com       9
Semantics & Markup
Earlier -
<meta http-equiv="Content-Type"
content="text/html; charset=utf-8">


HTML 5 -
<meta charset="utf-8" />



09/09/12             Www.karkha.com   10
Semantics & Markup
Earlier -
<link rel="stylesheet" href="style.css"
type="text/css" />


HTML 5 -
<link rel="stylesheet" href="style.css" />



09/09/12              Www.karkha.com         11
Semantics & Markup
Earlier -
<link rel="alternate"
       type="application/atom+xml"
       title="My feed"
       href="/feed/" />


HTML 5 -
NO change

09/09/12                  Www.karkha.com   12
Semantics & Markup
Earlier -
<link rel="shortcut icon" href="/favicon.ico">


HTML 5 -
<link rel=”shortcut icon” href=windows.ico
sizes="32x32 48x48"
type="image/vnd.microsoft.icon">


09/09/12              Www.karkha.com             13
New HTML 5 Elements
How older browser understand new elements defined by HTML 5


All browsers render unknown elements inline, i.e. as if they had a display:inline
CSS rule.


article,aside,details,figcaption,figure,
footer,header,hgroup,menu,nav,section {
    display:block;
}


http://www.html5doctor.com/html-5-reset-stylesheet/


09/09/12                            Www.karkha.com                             14
New HTML 5 Elements
Internet explorer < 9 will not apply any style to unknown
elements
Internet explorer will insert the unknown elements as
empty node in dom
Children's of unknown elements will be treated as siblings
in Dom tree


http://remysharp.com/2009/01/07/html5-enabling-script/



09/09/12                 Www.karkha.com                      15
HEADER
<header>
<hgroup>
  <h1>My header</h1>
  <p class="tagline">A tagline for this header.</p>
</hgroup>
  …
</header>

09/09/12              Www.karkha.com              16
Article
<article>
  <header>
     <h1>A heading for this post or article</h1>
  </header>
  <p>Lorem ipsum..</p>
</article>



09/09/12               Www.karkha.com              17
Dates and Times
<time datetime="2009-10-22" pubdate>October 22, 2009</time>


There are three parts to a <time> element:


●      A machine-readable timestamp
●      Human-readable text content
●      An optional pubdate flag


    datetime="2009-10-22T13:59:47-04:00"


09/09/12                     Www.karkha.com               18
Navigation
<nav>
  <ul>
     <li><a href="#">home</a></li>
     .....
  </ul>
</nav>



09/09/12              Www.karkha.com   19
Section and aside
<section>
...
</section>
The section element represents a generic section of a document or application. A section,
in this context, is a thematic grouping of content, typically with a heading.


<aside>
...
</aside>
The aside element represents a section of a page that consists of content that is
tangentially related to the content around the aside element, and which could be
considered separate from that content. Such sections are often represented as sidebars in
printed typography.



09/09/12                              Www.karkha.com                                   20
Section and aside




09/09/12        Www.karkha.com   21
Footer
The HTML5 specification says, “A footer typically
contains information about its section such as who
wrote it, links to related documents, copyright data,
and the like.”


<footer>
....
</footer>

09/09/12              Www.karkha.com                22
Placeholder Text
<form>
 <input name="search" placeholder="Search with
keyword">
  <input type="submit" value="Search">
</form>




09/09/12            Www.karkha.com           23
Auto focus
<form>
 <input name="search" placeholder="Search with
keyword" autofocus>
  <input type="submit" value="Search">
</form>




09/09/12            Www.karkha.com           24
HTML form elements
             Field Type            HTML Code                    Notes
checkbox                  <input type="checkbox">   can be toggled on or off
radio button              <input type="radio">      can be grouped with other
                                                    inputs
password field            <input type="password">   echos dots instead of
                                                    characters as you type
drop-down lists           <select><option>…
file picker               <input type="file">       pops up an “open file” dialog


submit button             <input type="submit">
plain text                <input type="text">       the type attribute can be
                                                    omitted




09/09/12                           Www.karkha.com                                   25
Email Address and url
<form>
  <input type="email">
  <input type="submit" value="Go">
</form>
<form>
  <input type="url">
  <input type="submit" value="Go">
</form>

09/09/12                 Www.karkha.com   26
Form validation and required
<form novalidate>
  <input type="email">
  <input type="submit" value="Go">
</form>
<form>
  <input type="url" required>
  <input type="submit" value="Go">
</form>

09/09/12                 Www.karkha.com   27
Microdata
The HTML5 microdata is a way to label content to
describe a specific type of information—for example,
reviews, person information, or events. Each information
type describes a specific type of item, such as a person,
and event, or a review. For example, an event has the
properties venue, starting time, name, and category.


Microdata uses simple attributes in HTML tags (often
<span> or <div>) to assign brief and descriptive names to
items and properties.

09/09/12                 Www.karkha.com                     28
Microdata
Without Microdate an HTML source
   <div>
 My name is Bob Smith but people call me Smithy. Here is my home page:
 <a href="http://www.example.com">www.example.com</a>
 I live in Albuquerque, NM and work as an engineer at ACME Corp.
</div>




09/09/12                       Www.karkha.com                            29
Microdata
With Microdate an HTML source
<div itemscope itemtype="http://data-vocabulary.org/Person">
 My name is <span itemprop="name">Bob Smith</span>
 but people call me <span itemprop="nickname">Smithy</span>.
 Here is my home page:
 <a href="http://www.example.com" itemprop="url">www.example.com</a>
  I live in Albuquerque, NM and work as an <span
itemprop="title">engineer</span>
 at <span itemprop="affiliation">ACME Corp</span>.
</div>




09/09/12                         Www.karkha.com                        30
Microdata
   In the first line, itemscope indicates that the content in the <div> is an
item. itemtype="http://data-vocabulary.org/Person indicates that the item is
a Person.
  Each property of the Person item is identified with the itemprop attribute.
For example, itemprop="name" describes the person's name.


Rich Snippets Testing Tools
http://www.google.com/webmasters/tools/richsnippets
Check that Google can correctly parse your structured data markup and
display it in search results.




09/09/12                         Www.karkha.com                             31
Microdata




09/09/12    Www.karkha.com   32
Presentation
●   Background-size
#example1 {
background-size: auto;
}


#example2 {
background-size: 275px 125px;
}



09/09/12                 Www.karkha.com   33
Presentation
●   Background-image mulitple images
#exampleA {
width: 500px;
height: 250px;
background-image: url(decoration.png),
url(ribbon.png), url(old_paper.jpg);
background-repeat: no-repeat;
background-position: left top, right
bottom, left top;
}




09/09/12                               Www.karkha.com   34
Presentation
RGBA (red green blue opacity)
Red, Green and Blue values between 0 and 255
Opacity or alpha value between 0 and 1
Example : background-color: rgba(215, 44, 44, 0.5);
Difference between Opacity and rgba is Opacity sets opacity
value to the element and its children. Whereas RGBA is alpha
or opacity applied to the color of the element, without affecting
the childrens.




09/09/12                   Www.karkha.com                       35
Presentation
text-shadow: 2px 2px
2px #000;
This produces the
following text with a
shadow 2px right and
below of the text, which
blurs for 2px:



09/09/12               Www.karkha.com   36
Presentation
Box-sizing decides the width of the box
whether to include the padding and border .
Content-box will not include the padding
and boder in width
Border-box will include the padding and
border in width
-moz-box-sizing: content-box;
-webkit-box-sizing: content-box;
box-sizing: content-box;


-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;



09/09/12                             Www.karkha.com   37
Presentation
Resize allow element to resize,
normally using js we provide this to
textarea in our sites. Now css3 has
property to resize a element.
div.resize {
width: 100px;
height: 100px;
border: 1px solid;
resize: both;
overflow: auto;
}


09/09/12                        Www.karkha.com   38
Presentation
Substring Matching Attribute Selectors


[att^=val] – the “begins with” selector
[att$=val] – the “ends with” selector
[att*=val] – the “contains” selector
Example
http://www.css3.info/preview/attribute-selectors/


http://www.456bereastreet.com/archive/200601/css_3_selectors_explained/




09/09/12                                  Www.karkha.com                  39
Presentation
Media Queries
<link rel="stylesheet" type="text/css"
media="screen" href="sans-serif.css">
<link rel="stylesheet" type="text/css"
media="print" href="serif.css">




09/09/12              Www.karkha.com     40
Presentation
Media Queries
@media screen {
    * { font-family: sans-serif }
}


@media screen and (min-width: 400px) and (max-width: 700px) { … }
This media query expresses that the style sheet is usable on devices
with viewport (the part of the screen/paper where the document is
rendered) widths between 400 and 700 pixels:



09/09/12                            Www.karkha.com                41
Presentation
Media Queries
This media query expresses that style sheet is usable on
screen and handheld devices if the width of the viewport is
greater than 20em.


@media handheld and (min-width: 20em),
  screen and (min-width: 20em) { … }


The ‘em’ value is relative to the initial value of ‘font-size’.


09/09/12                      Www.karkha.com                      42
Presentation
Column width
-moz-column-width: 13em;
-webkit-column-width: 13em;
-moz-column-gap: 1em;
-webkit-column-gap: 1em;




09/09/12            Www.karkha.com   43
Presentation
Column count
-moz-column-count: 3;
-moz-column-gap: 1em;
-moz-column-rule: 1px solid
black;
-webkit-column-count: 3;
-webkit-column-gap: 1em;
-webkit-column-rule: 1px solid
black;


09/09/12                   Www.karkha.com   44
Presentation
CSS3 Transitions are a presentational effect which allow
property changes in CSS values, such as those that may
be defined to occur on :hover or :focus, to occur smoothly
over a specified duration – rather than happening
instantaneously as is the normal behaviour.


Transition effects can be applied to a wide variety of CSS
properties, including background-color, width, height,
opacity, and many more. Keep reading for further details of
supported properties.

09/09/12                 Www.karkha.com                      45
Presentation

  transition-property
  transition-duration
  transition-timing-function
  Transition-delay


<transition> = <transition-property> <transition-duration> <transition-timing-function>
<transition-delay>
transition: background-color 3s linear 1s;
Try out - http://www.css3maker.com/css3-transition.html
Examples - http://media.24ways.org/2009/14/3/index.html
http://tympanus.net/Tutorials/BlurMenu/
http://leaverou.github.com/animatable/



09/09/12                                  Www.karkha.com                                  46
Presentation
CSS3 Gradients
background: #1e5799; /* Old browsers */
background: -moz-linear-gradient(top, #1e5799 0%, #2989d8 50%, #207cca 51%, #7db9e8 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#1e5799), color-stop(50%,#2989d8), color-
stop(51%,#207cca), color-stop(100%,#7db9e8)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #1e5799 0%,#2989d8 50%,#207cca 51%,#7db9e8 100%); /*
Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #1e5799 0%,#2989d8 50%,#207cca 51%,#7db9e8 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #1e5799 0%,#2989d8 50%,#207cca 51%,#7db9e8 100%); /* IE10+ */
background: linear-gradient(to bottom, #1e5799 0%,#2989d8 50%,#207cca 51%,#7db9e8 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#1e5799', endColorstr='#7db9e8',GradientType=0 ); /*
IE6-9 */

Try out CSS gradient here : http://www.colorzilla.com/gradient-editor/




09/09/12                                             Www.karkha.com                                                   47
Presentation

Firefox -moz-box-shadow:
Safari -webkit-box-shadow:
Opera -o-box-shadow:
IE -ms-box-shadow:



09/09/12      Www.karkha.com   48
Question ?




09/09/12     Www.karkha.com   49
More Reference
http://diveintohtml5.info
http://www.html5rocks.com
http://playground.html5rocks.com
http://developers.whatwg.org
http://beta.html5test.com
http://html5demos.com/
http://www.quirksmode.org
http://gsnedders.html5.org/outliner/
http://www.whatwg.org/specs/web-apps/current-work/multipage/sections.html#the-article-element
http://dev.w3.org/html5/md/
http://support.google.com/webmasters/bin/answer.py?hl=en&answer=176035
http://remysharp.com/2009/01/07/html5-enabling-script/
http://www.css3maker.com/css-gradient.html
http://www.css3.info/preview/
http://css3generator.com/
http://www.w3.org/TR/css3-mediaqueries/
http://www.colorzilla.com/gradient-editor/




09/09/12                                        Www.karkha.com                                  50
Get in touch

http://www.facebook.com/karkhadotcom
Karkha.com@gmail.com
@karkhadotcom
Phone:9789989552



09/09/12      Www.karkha.com    51

Weitere ähnliche Inhalte

Was ist angesagt?

Introduction to HTML5 and CSS3 (revised)
Introduction to HTML5 and CSS3 (revised)Introduction to HTML5 and CSS3 (revised)
Introduction to HTML5 and CSS3 (revised)Joseph Lewis
 
Essential Javascript -- A Javascript &lt;b>Tutorial&lt;/b>
Essential Javascript -- A Javascript &lt;b>Tutorial&lt;/b>Essential Javascript -- A Javascript &lt;b>Tutorial&lt;/b>
Essential Javascript -- A Javascript &lt;b>Tutorial&lt;/b>tutorialsruby
 
Html 5 New Features
Html 5 New FeaturesHtml 5 New Features
Html 5 New FeaturesAta Ebrahimi
 
05 RD PoSD Tutorial_xhtml_to_html5_2016
05 RD PoSD Tutorial_xhtml_to_html5_201605 RD PoSD Tutorial_xhtml_to_html5_2016
05 RD PoSD Tutorial_xhtml_to_html5_2016Rich Dron
 
Web Designing Training in Ambala ! BATRA COMPUTER CENTRE
Web Designing Training in Ambala ! BATRA COMPUTER CENTREWeb Designing Training in Ambala ! BATRA COMPUTER CENTRE
Web Designing Training in Ambala ! BATRA COMPUTER CENTREjatin batra
 
Decoding the Web
Decoding the WebDecoding the Web
Decoding the Webnewcircle
 
The Future of the Web: HTML5
The Future of the Web: HTML5The Future of the Web: HTML5
The Future of the Web: HTML5Derek Bender
 
Rails Girls - Introduction to HTML & CSS
Rails Girls - Introduction to HTML & CSSRails Girls - Introduction to HTML & CSS
Rails Girls - Introduction to HTML & CSSTimo Herttua
 
Polymer Polytechnic George Town 2014
Polymer Polytechnic George Town 2014Polymer Polytechnic George Town 2014
Polymer Polytechnic George Town 2014Vin Lim
 
HTML - hypertext markup language
HTML - hypertext markup languageHTML - hypertext markup language
HTML - hypertext markup languageBasmaa Mostafa
 
HTML, CSS and Java Scripts Basics
HTML, CSS and Java Scripts BasicsHTML, CSS and Java Scripts Basics
HTML, CSS and Java Scripts BasicsSun Technlogies
 
Web Standards: Fueling Innovation [Web Design World Boston '08]
Web Standards: Fueling Innovation [Web Design World Boston '08]Web Standards: Fueling Innovation [Web Design World Boston '08]
Web Standards: Fueling Innovation [Web Design World Boston '08]Aaron Gustafson
 
Introduction to HTML5/CSS3 In Drupal 7
Introduction to HTML5/CSS3 In Drupal 7Introduction to HTML5/CSS3 In Drupal 7
Introduction to HTML5/CSS3 In Drupal 7Mediacurrent
 
HTML5 & CSS3 in Drupal (on the Bayou)
HTML5 & CSS3 in Drupal (on the Bayou)HTML5 & CSS3 in Drupal (on the Bayou)
HTML5 & CSS3 in Drupal (on the Bayou)Mediacurrent
 
GDI Seattle Intro to HTML and CSS - Class 1
GDI Seattle Intro to HTML and CSS - Class 1GDI Seattle Intro to HTML and CSS - Class 1
GDI Seattle Intro to HTML and CSS - Class 1Heather Rock
 

Was ist angesagt? (20)

Introduction to HTML5 and CSS3 (revised)
Introduction to HTML5 and CSS3 (revised)Introduction to HTML5 and CSS3 (revised)
Introduction to HTML5 and CSS3 (revised)
 
Essential Javascript -- A Javascript &lt;b>Tutorial&lt;/b>
Essential Javascript -- A Javascript &lt;b>Tutorial&lt;/b>Essential Javascript -- A Javascript &lt;b>Tutorial&lt;/b>
Essential Javascript -- A Javascript &lt;b>Tutorial&lt;/b>
 
HTML5 & CSS3
HTML5 & CSS3 HTML5 & CSS3
HTML5 & CSS3
 
Html 5 New Features
Html 5 New FeaturesHtml 5 New Features
Html 5 New Features
 
Html5 Basic Structure
Html5 Basic StructureHtml5 Basic Structure
Html5 Basic Structure
 
05 RD PoSD Tutorial_xhtml_to_html5_2016
05 RD PoSD Tutorial_xhtml_to_html5_201605 RD PoSD Tutorial_xhtml_to_html5_2016
05 RD PoSD Tutorial_xhtml_to_html5_2016
 
Web Designing Training in Ambala ! BATRA COMPUTER CENTRE
Web Designing Training in Ambala ! BATRA COMPUTER CENTREWeb Designing Training in Ambala ! BATRA COMPUTER CENTRE
Web Designing Training in Ambala ! BATRA COMPUTER CENTRE
 
Decoding the Web
Decoding the WebDecoding the Web
Decoding the Web
 
Html 5 introduction
Html 5 introductionHtml 5 introduction
Html 5 introduction
 
The Future of the Web: HTML5
The Future of the Web: HTML5The Future of the Web: HTML5
The Future of the Web: HTML5
 
Rails Girls - Introduction to HTML & CSS
Rails Girls - Introduction to HTML & CSSRails Girls - Introduction to HTML & CSS
Rails Girls - Introduction to HTML & CSS
 
Polymer Polytechnic George Town 2014
Polymer Polytechnic George Town 2014Polymer Polytechnic George Town 2014
Polymer Polytechnic George Town 2014
 
HTML - hypertext markup language
HTML - hypertext markup languageHTML - hypertext markup language
HTML - hypertext markup language
 
HTML, CSS and Java Scripts Basics
HTML, CSS and Java Scripts BasicsHTML, CSS and Java Scripts Basics
HTML, CSS and Java Scripts Basics
 
lect9
lect9lect9
lect9
 
Web Standards: Fueling Innovation [Web Design World Boston '08]
Web Standards: Fueling Innovation [Web Design World Boston '08]Web Standards: Fueling Innovation [Web Design World Boston '08]
Web Standards: Fueling Innovation [Web Design World Boston '08]
 
Introduccion a HTML5
Introduccion a HTML5Introduccion a HTML5
Introduccion a HTML5
 
Introduction to HTML5/CSS3 In Drupal 7
Introduction to HTML5/CSS3 In Drupal 7Introduction to HTML5/CSS3 In Drupal 7
Introduction to HTML5/CSS3 In Drupal 7
 
HTML5 & CSS3 in Drupal (on the Bayou)
HTML5 & CSS3 in Drupal (on the Bayou)HTML5 & CSS3 in Drupal (on the Bayou)
HTML5 & CSS3 in Drupal (on the Bayou)
 
GDI Seattle Intro to HTML and CSS - Class 1
GDI Seattle Intro to HTML and CSS - Class 1GDI Seattle Intro to HTML and CSS - Class 1
GDI Seattle Intro to HTML and CSS - Class 1
 

Ähnlich wie Html 5 and css 3

Introduction to web components
Introduction to web componentsIntroduction to web components
Introduction to web componentsMarc Bächinger
 
Exploring Critical Rendering Path
Exploring Critical Rendering PathExploring Critical Rendering Path
Exploring Critical Rendering PathRaphael Amorim
 
Polytechnic 1.0 Granada
Polytechnic 1.0 GranadaPolytechnic 1.0 Granada
Polytechnic 1.0 GranadaIsrael Blancas
 
01. 02. html web engineering html &amp; introduction
01. 02. html   web engineering html &amp; introduction01. 02. html   web engineering html &amp; introduction
01. 02. html web engineering html &amp; introductionN Gull
 
331592291-HTML-and-Cascading style sheet
331592291-HTML-and-Cascading style sheet331592291-HTML-and-Cascading style sheet
331592291-HTML-and-Cascading style sheetstephen972973
 
The rise of Polymer and Web Components (Kostas Karolemeas) - GreeceJS #17
The rise of Polymer and Web Components (Kostas Karolemeas) - GreeceJS #17The rise of Polymer and Web Components (Kostas Karolemeas) - GreeceJS #17
The rise of Polymer and Web Components (Kostas Karolemeas) - GreeceJS #17GreeceJS
 
Web Components and Modular CSS
Web Components and Modular CSSWeb Components and Modular CSS
Web Components and Modular CSSAndrew Rota
 
TOSSUG HTML5 讀書會 新標籤與表單
TOSSUG HTML5 讀書會 新標籤與表單TOSSUG HTML5 讀書會 新標籤與表單
TOSSUG HTML5 讀書會 新標籤與表單偉格 高
 
The SharePoint & jQuery Guide
The SharePoint & jQuery GuideThe SharePoint & jQuery Guide
The SharePoint & jQuery GuideMark Rackley
 
The SharePoint and jQuery Guide by Mark Rackley - SPTechCon
The SharePoint and jQuery Guide by Mark Rackley - SPTechConThe SharePoint and jQuery Guide by Mark Rackley - SPTechCon
The SharePoint and jQuery Guide by Mark Rackley - SPTechConSPTechCon
 
Ed presents JSF 2.2 and WebSocket to Gameduell.
Ed presents JSF 2.2 and WebSocket to Gameduell.Ed presents JSF 2.2 and WebSocket to Gameduell.
Ed presents JSF 2.2 and WebSocket to Gameduell.Edward Burns
 
Polymer
Polymer Polymer
Polymer jskvara
 
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
 
Polymer and web component
Polymer and web componentPolymer and web component
Polymer and web componentImam Raza
 
SPSNH 2014 - The SharePoint & jQueryGuide
SPSNH 2014 - The SharePoint & jQueryGuideSPSNH 2014 - The SharePoint & jQueryGuide
SPSNH 2014 - The SharePoint & jQueryGuideMark Rackley
 
Understanding the Web Page Layout
Understanding the Web Page LayoutUnderstanding the Web Page Layout
Understanding the Web Page LayoutJhaun Paul Enriquez
 

Ähnlich wie Html 5 and css 3 (20)

Web technologies part-2
Web technologies part-2Web technologies part-2
Web technologies part-2
 
Introduction to web components
Introduction to web componentsIntroduction to web components
Introduction to web components
 
Exploring Critical Rendering Path
Exploring Critical Rendering PathExploring Critical Rendering Path
Exploring Critical Rendering Path
 
Polytechnic 1.0 Granada
Polytechnic 1.0 GranadaPolytechnic 1.0 Granada
Polytechnic 1.0 Granada
 
HTML.pptx
HTML.pptxHTML.pptx
HTML.pptx
 
01. 02. html web engineering html &amp; introduction
01. 02. html   web engineering html &amp; introduction01. 02. html   web engineering html &amp; introduction
01. 02. html web engineering html &amp; introduction
 
331592291-HTML-and-Cascading style sheet
331592291-HTML-and-Cascading style sheet331592291-HTML-and-Cascading style sheet
331592291-HTML-and-Cascading style sheet
 
The rise of Polymer and Web Components (Kostas Karolemeas) - GreeceJS #17
The rise of Polymer and Web Components (Kostas Karolemeas) - GreeceJS #17The rise of Polymer and Web Components (Kostas Karolemeas) - GreeceJS #17
The rise of Polymer and Web Components (Kostas Karolemeas) - GreeceJS #17
 
Google Polymer Framework
Google Polymer FrameworkGoogle Polymer Framework
Google Polymer Framework
 
Day1
Day1Day1
Day1
 
Web Components and Modular CSS
Web Components and Modular CSSWeb Components and Modular CSS
Web Components and Modular CSS
 
TOSSUG HTML5 讀書會 新標籤與表單
TOSSUG HTML5 讀書會 新標籤與表單TOSSUG HTML5 讀書會 新標籤與表單
TOSSUG HTML5 讀書會 新標籤與表單
 
The SharePoint & jQuery Guide
The SharePoint & jQuery GuideThe SharePoint & jQuery Guide
The SharePoint & jQuery Guide
 
The SharePoint and jQuery Guide by Mark Rackley - SPTechCon
The SharePoint and jQuery Guide by Mark Rackley - SPTechConThe SharePoint and jQuery Guide by Mark Rackley - SPTechCon
The SharePoint and jQuery Guide by Mark Rackley - SPTechCon
 
Ed presents JSF 2.2 and WebSocket to Gameduell.
Ed presents JSF 2.2 and WebSocket to Gameduell.Ed presents JSF 2.2 and WebSocket to Gameduell.
Ed presents JSF 2.2 and WebSocket to Gameduell.
 
Polymer
Polymer Polymer
Polymer
 
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を考える
 
Polymer and web component
Polymer and web componentPolymer and web component
Polymer and web component
 
SPSNH 2014 - The SharePoint & jQueryGuide
SPSNH 2014 - The SharePoint & jQueryGuideSPSNH 2014 - The SharePoint & jQueryGuide
SPSNH 2014 - The SharePoint & jQueryGuide
 
Understanding the Web Page Layout
Understanding the Web Page LayoutUnderstanding the Web Page Layout
Understanding the Web Page Layout
 

Kürzlich hochgeladen

Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfErwinPantujan2
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
Integumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptIntegumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptshraddhaparab530
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfVanessa Camilleri
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptxiammrhaywood
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
Food processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsFood processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsManeerUddin
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfPatidar M
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxVanesaIglesias10
 

Kürzlich hochgeladen (20)

Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
Integumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptIntegumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.ppt
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdf
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
Food processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsFood processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture hons
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdf
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptx
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 

Html 5 and css 3

  • 1. KARKHA.COM WELCOME TO HTML 5 AND CSS 3 WORKSHOP BY KAMALAKANNAN . S 9789989552 https://www.facebook.com/sivkannan @sivkannan77 Sundaresan - 9941131357 Chockalingam - 9543111174 09/09/12 Www.karkha.com 1
  • 2. KARKHA.COM ● We Karkha.com is young and vibrant open source web development startup. We rollout by January 2013. ● What we plan to do next four months ●Initially we conduct workshops ● Weekend courses on open source ● Goals ● To bridge the gap between industry required open source technical skills ● Provide solutions and services for web and mobile application. 09/09/12 Www.karkha.com 2
  • 3. What is HTML5? “HMTL5 is not a single thing or a monolithic technology. It is a collection of features, technologies, and APIs that brings the power of the desktop and the vibrancy of multimedia experience to the web—while amplifying the web’s core strengths of interactivity and connectivity.” - www.HTML5ROCKS.com HTML5 = fifth revision of HTML + CSS3 + JS 09/09/12 Www.karkha.com 3
  • 4. HTML 5 ● Can i start using HTML5 ? ● Do i need to relearn HTML 4 already i am familiar with ● How to updgrade from HTML 4 09/09/12 Www.karkha.com 4
  • 5. HTML 5 features ● Offline / storage ● Realtime / communication ● File / Hardware Access ● Semantics & Markup ● Audio & Video ● 3D Graphics ● Presentation ( CSS3 ) 09/09/12 Www.karkha.com 5
  • 6. Let experience ● Semantics & markup ● Presentation 09/09/12 Www.karkha.com 6
  • 7. Semantics & markup More meaningful elements 09/09/12 Www.karkha.com 7
  • 8. Semantics & Markup Earlier - <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd "> HTML 5 - <!DOCTYPE html> 09/09/12 Www.karkha.com 8
  • 9. Semantics & markup Earlier - <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> HTML 5 - <html lang="en"> 09/09/12 Www.karkha.com 9
  • 10. Semantics & Markup Earlier - <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> HTML 5 - <meta charset="utf-8" /> 09/09/12 Www.karkha.com 10
  • 11. Semantics & Markup Earlier - <link rel="stylesheet" href="style.css" type="text/css" /> HTML 5 - <link rel="stylesheet" href="style.css" /> 09/09/12 Www.karkha.com 11
  • 12. Semantics & Markup Earlier - <link rel="alternate" type="application/atom+xml" title="My feed" href="/feed/" /> HTML 5 - NO change 09/09/12 Www.karkha.com 12
  • 13. Semantics & Markup Earlier - <link rel="shortcut icon" href="/favicon.ico"> HTML 5 - <link rel=”shortcut icon” href=windows.ico sizes="32x32 48x48" type="image/vnd.microsoft.icon"> 09/09/12 Www.karkha.com 13
  • 14. New HTML 5 Elements How older browser understand new elements defined by HTML 5 All browsers render unknown elements inline, i.e. as if they had a display:inline CSS rule. article,aside,details,figcaption,figure, footer,header,hgroup,menu,nav,section { display:block; } http://www.html5doctor.com/html-5-reset-stylesheet/ 09/09/12 Www.karkha.com 14
  • 15. New HTML 5 Elements Internet explorer < 9 will not apply any style to unknown elements Internet explorer will insert the unknown elements as empty node in dom Children's of unknown elements will be treated as siblings in Dom tree http://remysharp.com/2009/01/07/html5-enabling-script/ 09/09/12 Www.karkha.com 15
  • 16. HEADER <header> <hgroup> <h1>My header</h1> <p class="tagline">A tagline for this header.</p> </hgroup> … </header> 09/09/12 Www.karkha.com 16
  • 17. Article <article> <header> <h1>A heading for this post or article</h1> </header> <p>Lorem ipsum..</p> </article> 09/09/12 Www.karkha.com 17
  • 18. Dates and Times <time datetime="2009-10-22" pubdate>October 22, 2009</time> There are three parts to a <time> element: ● A machine-readable timestamp ● Human-readable text content ● An optional pubdate flag datetime="2009-10-22T13:59:47-04:00" 09/09/12 Www.karkha.com 18
  • 19. Navigation <nav> <ul> <li><a href="#">home</a></li> ..... </ul> </nav> 09/09/12 Www.karkha.com 19
  • 20. Section and aside <section> ... </section> The section element represents a generic section of a document or application. A section, in this context, is a thematic grouping of content, typically with a heading. <aside> ... </aside> The aside element represents a section of a page that consists of content that is tangentially related to the content around the aside element, and which could be considered separate from that content. Such sections are often represented as sidebars in printed typography. 09/09/12 Www.karkha.com 20
  • 21. Section and aside 09/09/12 Www.karkha.com 21
  • 22. Footer The HTML5 specification says, “A footer typically contains information about its section such as who wrote it, links to related documents, copyright data, and the like.” <footer> .... </footer> 09/09/12 Www.karkha.com 22
  • 23. Placeholder Text <form> <input name="search" placeholder="Search with keyword"> <input type="submit" value="Search"> </form> 09/09/12 Www.karkha.com 23
  • 24. Auto focus <form> <input name="search" placeholder="Search with keyword" autofocus> <input type="submit" value="Search"> </form> 09/09/12 Www.karkha.com 24
  • 25. HTML form elements Field Type HTML Code Notes checkbox <input type="checkbox"> can be toggled on or off radio button <input type="radio"> can be grouped with other inputs password field <input type="password"> echos dots instead of characters as you type drop-down lists <select><option>… file picker <input type="file"> pops up an “open file” dialog submit button <input type="submit"> plain text <input type="text"> the type attribute can be omitted 09/09/12 Www.karkha.com 25
  • 26. Email Address and url <form> <input type="email"> <input type="submit" value="Go"> </form> <form> <input type="url"> <input type="submit" value="Go"> </form> 09/09/12 Www.karkha.com 26
  • 27. Form validation and required <form novalidate> <input type="email"> <input type="submit" value="Go"> </form> <form> <input type="url" required> <input type="submit" value="Go"> </form> 09/09/12 Www.karkha.com 27
  • 28. Microdata The HTML5 microdata is a way to label content to describe a specific type of information—for example, reviews, person information, or events. Each information type describes a specific type of item, such as a person, and event, or a review. For example, an event has the properties venue, starting time, name, and category. Microdata uses simple attributes in HTML tags (often <span> or <div>) to assign brief and descriptive names to items and properties. 09/09/12 Www.karkha.com 28
  • 29. Microdata Without Microdate an HTML source <div> My name is Bob Smith but people call me Smithy. Here is my home page: <a href="http://www.example.com">www.example.com</a> I live in Albuquerque, NM and work as an engineer at ACME Corp. </div> 09/09/12 Www.karkha.com 29
  • 30. Microdata With Microdate an HTML source <div itemscope itemtype="http://data-vocabulary.org/Person"> My name is <span itemprop="name">Bob Smith</span> but people call me <span itemprop="nickname">Smithy</span>. Here is my home page: <a href="http://www.example.com" itemprop="url">www.example.com</a> I live in Albuquerque, NM and work as an <span itemprop="title">engineer</span> at <span itemprop="affiliation">ACME Corp</span>. </div> 09/09/12 Www.karkha.com 30
  • 31. Microdata In the first line, itemscope indicates that the content in the <div> is an item. itemtype="http://data-vocabulary.org/Person indicates that the item is a Person. Each property of the Person item is identified with the itemprop attribute. For example, itemprop="name" describes the person's name. Rich Snippets Testing Tools http://www.google.com/webmasters/tools/richsnippets Check that Google can correctly parse your structured data markup and display it in search results. 09/09/12 Www.karkha.com 31
  • 32. Microdata 09/09/12 Www.karkha.com 32
  • 33. Presentation ● Background-size #example1 { background-size: auto; } #example2 { background-size: 275px 125px; } 09/09/12 Www.karkha.com 33
  • 34. Presentation ● Background-image mulitple images #exampleA { width: 500px; height: 250px; background-image: url(decoration.png), url(ribbon.png), url(old_paper.jpg); background-repeat: no-repeat; background-position: left top, right bottom, left top; } 09/09/12 Www.karkha.com 34
  • 35. Presentation RGBA (red green blue opacity) Red, Green and Blue values between 0 and 255 Opacity or alpha value between 0 and 1 Example : background-color: rgba(215, 44, 44, 0.5); Difference between Opacity and rgba is Opacity sets opacity value to the element and its children. Whereas RGBA is alpha or opacity applied to the color of the element, without affecting the childrens. 09/09/12 Www.karkha.com 35
  • 36. Presentation text-shadow: 2px 2px 2px #000; This produces the following text with a shadow 2px right and below of the text, which blurs for 2px: 09/09/12 Www.karkha.com 36
  • 37. Presentation Box-sizing decides the width of the box whether to include the padding and border . Content-box will not include the padding and boder in width Border-box will include the padding and border in width -moz-box-sizing: content-box; -webkit-box-sizing: content-box; box-sizing: content-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; 09/09/12 Www.karkha.com 37
  • 38. Presentation Resize allow element to resize, normally using js we provide this to textarea in our sites. Now css3 has property to resize a element. div.resize { width: 100px; height: 100px; border: 1px solid; resize: both; overflow: auto; } 09/09/12 Www.karkha.com 38
  • 39. Presentation Substring Matching Attribute Selectors [att^=val] – the “begins with” selector [att$=val] – the “ends with” selector [att*=val] – the “contains” selector Example http://www.css3.info/preview/attribute-selectors/ http://www.456bereastreet.com/archive/200601/css_3_selectors_explained/ 09/09/12 Www.karkha.com 39
  • 40. Presentation Media Queries <link rel="stylesheet" type="text/css" media="screen" href="sans-serif.css"> <link rel="stylesheet" type="text/css" media="print" href="serif.css"> 09/09/12 Www.karkha.com 40
  • 41. Presentation Media Queries @media screen { * { font-family: sans-serif } } @media screen and (min-width: 400px) and (max-width: 700px) { … } This media query expresses that the style sheet is usable on devices with viewport (the part of the screen/paper where the document is rendered) widths between 400 and 700 pixels: 09/09/12 Www.karkha.com 41
  • 42. Presentation Media Queries This media query expresses that style sheet is usable on screen and handheld devices if the width of the viewport is greater than 20em. @media handheld and (min-width: 20em), screen and (min-width: 20em) { … } The ‘em’ value is relative to the initial value of ‘font-size’. 09/09/12 Www.karkha.com 42
  • 43. Presentation Column width -moz-column-width: 13em; -webkit-column-width: 13em; -moz-column-gap: 1em; -webkit-column-gap: 1em; 09/09/12 Www.karkha.com 43
  • 44. Presentation Column count -moz-column-count: 3; -moz-column-gap: 1em; -moz-column-rule: 1px solid black; -webkit-column-count: 3; -webkit-column-gap: 1em; -webkit-column-rule: 1px solid black; 09/09/12 Www.karkha.com 44
  • 45. Presentation CSS3 Transitions are a presentational effect which allow property changes in CSS values, such as those that may be defined to occur on :hover or :focus, to occur smoothly over a specified duration – rather than happening instantaneously as is the normal behaviour. Transition effects can be applied to a wide variety of CSS properties, including background-color, width, height, opacity, and many more. Keep reading for further details of supported properties. 09/09/12 Www.karkha.com 45
  • 46. Presentation transition-property transition-duration transition-timing-function Transition-delay <transition> = <transition-property> <transition-duration> <transition-timing-function> <transition-delay> transition: background-color 3s linear 1s; Try out - http://www.css3maker.com/css3-transition.html Examples - http://media.24ways.org/2009/14/3/index.html http://tympanus.net/Tutorials/BlurMenu/ http://leaverou.github.com/animatable/ 09/09/12 Www.karkha.com 46
  • 47. Presentation CSS3 Gradients background: #1e5799; /* Old browsers */ background: -moz-linear-gradient(top, #1e5799 0%, #2989d8 50%, #207cca 51%, #7db9e8 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#1e5799), color-stop(50%,#2989d8), color- stop(51%,#207cca), color-stop(100%,#7db9e8)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, #1e5799 0%,#2989d8 50%,#207cca 51%,#7db9e8 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, #1e5799 0%,#2989d8 50%,#207cca 51%,#7db9e8 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #1e5799 0%,#2989d8 50%,#207cca 51%,#7db9e8 100%); /* IE10+ */ background: linear-gradient(to bottom, #1e5799 0%,#2989d8 50%,#207cca 51%,#7db9e8 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#1e5799', endColorstr='#7db9e8',GradientType=0 ); /* IE6-9 */ Try out CSS gradient here : http://www.colorzilla.com/gradient-editor/ 09/09/12 Www.karkha.com 47
  • 48. Presentation Firefox -moz-box-shadow: Safari -webkit-box-shadow: Opera -o-box-shadow: IE -ms-box-shadow: 09/09/12 Www.karkha.com 48
  • 49. Question ? 09/09/12 Www.karkha.com 49

Hinweis der Redaktion

  1. That happens to be one of the 15 doctypes that trigger “standards mode” in all modern browsers. There is nothing wrong with it. If you like it, you can keep it. Or you can change it to the HTML5 doctype, which is shorter and sweeter and also triggers “standards mode” in all modern browsers. That’s it. Just 15 characters. It’s so easy, you can type it by hand and not screw it up.
  2. There is nothing wrong with this markup. Again, if you like it, you can keep it. It is valid HTML5. But parts of it are no longer necessary in HTML5, so you can save a few bytes by removing them.
  3. Regular links (&lt;a href&gt;) simply point to another page. Link relations are a way to explain why you’re pointing to another page. They finish the sentence “I’m pointing to this other page because...” ...it’s a stylesheet containing CSS rules that your browser should apply to this document. ...it’s a feed that contains the same content as this page, but in a standard subscribable format. ...it’s a translation of this page into another language. ...it’s the same content as this page, but in PDF format. ...it’s the next chapter of an online book of which this page is also a par
  4. This link relation is also quite common. &lt;link rel=&quot;alternate&quot;&gt;, combined with either the RSS or Atom media type in the type attribute, enables something called “feed autodiscovery.” It allows syndicated feed readers (like Google Reader) to discover that a site has a news feed of the latest articles. Some browsers also support feed autodiscovery by displaying a special icon next to the URL. (Unlike with rel=&quot;stylesheet&quot;, the type attribute matters here. Don’t drop it!)
  5. Also new in HTML5: the sizes attribute can be used in conjunction with the icon relationship to indicate the size of the referenced icon.
  6. HTML5 provides a solution for this: the &lt;hgroup&gt; element. The &lt;hgroup&gt; element acts as a wrapper for two or more related heading elements. What does “related” mean? It means that, taken together, they only create a single node in the document outline.
  7. The article element represents a component of a page that consists of a self-contained composition in a document, page, application, or site and that is intended to be independently distributable or reusable, e.g. in syndication. This could be a forum post, a magazine or newspaper article, a Web log entry, a user-submitted comment, an interactive widget or gadget, or any other independent item of content.
  8. Dateandtime attribute can have only machine readable date or append T to 24 hour time format with timezone Pubdate specifies the article published date if it recides inside the article tag or the publication date of the entire document
  9. This is more to define the Navigation for html page and differentiate from other list of links, more helpful for people with disabilities.
  10. Web sites can use JavaScript to focus the first input field of a web form automatically. For example, the home page of Google.com will autofocus the input box so you can type your search keywords. While this is convenient for most people, it can be annoying for power users or people with special needs. If you press the space bar expecting to scroll the page, the page will not scroll because the focus is already in a form input field. (It types a space in the field instead of scrolling.) If you focus a different input field while the page is still loading, the site’s autofocus script may “helpfully” move the focus back to the original input field, disrupting your flow and causing you to type in the wrong place.
  11. Web sites can use JavaScript to focus the first input field of a web form automatically. For example, the home page of Google.com will autofocus the input box so you can type your search keywords. While this is convenient for most people, it can be annoying for power users or people with special needs. If you press the space bar expecting to scroll the page, the page will not scroll because the focus is already in a form input field. (It types a space in the field instead of scrolling.) If you focus a different input field while the page is still loading, the site’s autofocus script may “helpfully” move the focus back to the original input field, disrupting your flow and causing you to type in the wrong place.
  12. To sum up: there’s no downside to converting all your email address form fields to type=&quot;email&quot; immediately. Virtually no one will even notice, except iPhone users, who probably won’t notice either. But the ones who do notice will smile quietly and thank you for making their web experience just a little easier
  13. To sum up: there’s no downside to converting all your email address form fields to type=&quot;email&quot; immediately. Virtually no one will even notice, except iPhone users, who probably won’t notice either. But the ones who do notice will smile quietly and thank you for making their web experience just a little easier
  14. To sum up: there’s no downside to converting all your email address form fields to type=&quot;email&quot; immediately. Virtually no one will even notice, except iPhone users, who probably won’t notice either. But the ones who do notice will smile quietly and thank you for making their web experience just a little easier
  15. To sum up: there’s no downside to converting all your email address form fields to type=&quot;email&quot; immediately. Virtually no one will even notice, except iPhone users, who probably won’t notice either. But the ones who do notice will smile quietly and thank you for making their web experience just a little easier
  16. To sum up: there’s no downside to converting all your email address form fields to type=&quot;email&quot; immediately. Virtually no one will even notice, except iPhone users, who probably won’t notice either. But the ones who do notice will smile quietly and thank you for making their web experience just a little easier
  17. To sum up: there’s no downside to converting all your email address form fields to type=&quot;email&quot; immediately. Virtually no one will even notice, except iPhone users, who probably won’t notice either. But the ones who do notice will smile quietly and thank you for making their web experience just a little easier
  18. To sum up: there’s no downside to converting all your email address form fields to type=&quot;email&quot; immediately. Virtually no one will even notice, except iPhone users, who probably won’t notice either. But the ones who do notice will smile quietly and thank you for making their web experience just a little easier
  19. To sum up: there’s no downside to converting all your email address form fields to type=&quot;email&quot; immediately. Virtually no one will even notice, except iPhone users, who probably won’t notice either. But the ones who do notice will smile quietly and thank you for making their web experience just a little easier
  20. To sum up: there’s no downside to converting all your email address form fields to type=&quot;email&quot; immediately. Virtually no one will even notice, except iPhone users, who probably won’t notice either. But the ones who do notice will smile quietly and thank you for making their web experience just a little easier
  21. To sum up: there’s no downside to converting all your email address form fields to type=&quot;email&quot; immediately. Virtually no one will even notice, except iPhone users, who probably won’t notice either. But the ones who do notice will smile quietly and thank you for making their web experience just a little easier
  22. To sum up: there’s no downside to converting all your email address form fields to type=&quot;email&quot; immediately. Virtually no one will even notice, except iPhone users, who probably won’t notice either. But the ones who do notice will smile quietly and thank you for making their web experience just a little easier
  23. To sum up: there’s no downside to converting all your email address form fields to type=&quot;email&quot; immediately. Virtually no one will even notice, except iPhone users, who probably won’t notice either. But the ones who do notice will smile quietly and thank you for making their web experience just a little easier
  24. To sum up: there’s no downside to converting all your email address form fields to type=&quot;email&quot; immediately. Virtually no one will even notice, except iPhone users, who probably won’t notice either. But the ones who do notice will smile quietly and thank you for making their web experience just a little easier
  25. To sum up: there’s no downside to converting all your email address form fields to type=&quot;email&quot; immediately. Virtually no one will even notice, except iPhone users, who probably won’t notice either. But the ones who do notice will smile quietly and thank you for making their web experience just a little easier
  26. To sum up: there’s no downside to converting all your email address form fields to type=&quot;email&quot; immediately. Virtually no one will even notice, except iPhone users, who probably won’t notice either. But the ones who do notice will smile quietly and thank you for making their web experience just a little easier