SlideShare a Scribd company logo
1 of 35
Download to read offline
HTML 5   CSS 3
                                                     	
  
                                                     	
  
                                                	
  
                                                	
  
                          Александр	
  Котоманов	
  
                                        Верстальщик	
  


19.08.10	
                                           1	
  
План	
  тренинга	
  
•      Что	
  нового	
  в	
  HTML	
  5	
  
•      Вебшрифты	
  
•      Audio	
  и	
  Video	
  
•      Canvas	
  и	
  SVG	
  
•      Drag&Drop	
  
•      Формы	
  
•      CSS	
  3	
  
•      JS	
  APIs	
  
•      Поддержка	
  браузерами	
  



     19.08.10	
                                        2	
  
HTML	
  5.	
  Немного	
  истории	
  
         	
  
         1991	
  HTML	
  	
  
         1994	
  HTML	
  2	
  	
  
         1996	
  CSS	
  1	
  +	
  JavaScript	
  	
  
         1997	
  HTML	
  4	
  	
  
         1998	
  CSS	
  2	
  	
  
         2000	
  XHTML	
  1	
  	
  
         2005	
  AJAX	
  	
  
         2009	
  HTML	
  5	
  	
  
	
     19.08.10	
                                            3	
  
HTML	
  5.	
  Уже	
  сейчас	
  
	
  
Правильный	
  Doctype!	
  
     	
  
     <!DOCTYPE	
  html>	
  




 19.08.10	
                                         4	
  
HTML	
  5.	
  Уже	
  сейчас	
  

Для	
  IE	
  	
  
<!-­‐-­‐[if	
  IE]>	
  
<script>	
  
document.createElement(’header’);	
  
document.createElement(’footer’);	
  
document.createElement(’sec€on’);	
  
document.createElement(’aside’);	
  
document.createElement(’nav’);	
  
document.createElement(’ar€cle’);	
  
</script>	
  	
  
<![endif]-­‐-­‐>	
  	
  

   19.08.10	
                                         5	
  
HTML	
  5.	
  Уже	
  сейчас	
  

Мой	
  выбор:	
  
   <!-­‐-­‐[if	
  lte	
  IE	
  8]>	
  
   <script	
  type="text/javascript"	
  src="hˆp://html5shiv.googlecode.com/svn/
   trunk/html5.js"></script>	
  
   <![endif]-­‐-­‐>	
  	
  




 19.08.10	
                                                                        6	
  
HTML	
  5.	
  Уже	
  сейчас	
  
Для	
  FF	
  2	
  и	
  Camino	
  1:	
  
    <html	
  lang="en"	
  xmlns="hˆp://www.w3.org/1999/xhtml">	
  
    Content-­‐type	
  из	
  text/html	
  в	
  applica€on/xhtml
    +xml	
  
    RewriteCond	
  %{REQUEST_URI}	
  .html$	
  
    RewriteCond	
  %{HTTP_USER_AGENT}	
  rv:1.(([1-­‐8]|9pre|9a|9b[0-­‐4]).
    [0-­‐9.]+).*Gecko	
  
    RewriteRule	
  .*	
  -­‐	
  [T=applica€on/xhtml+xml]	
  	
  
или	
  
    if	
  (preg_match('/rv:1.(([1-­‐8]|9pre|9a|9b[0-­‐4]).[0-­‐9.]+).*Gecko/',	
  $_SERVER
    ['HTTP_USER_AGENT']))	
  {	
  
    	
  	
  header('Content-­‐type:	
  applica€on/xhtml+xml');	
  
    }	
  

  19.08.10	
                                                                               7	
  
HTML	
  5.	
  Уже	
  сейчас	
  


•  UTF-­‐8	
  
  	
  <meta	
  charset="UTF-­‐8">	
  




 19.08.10	
                                       8	
  
HTML	
  4	
  Layout	
  
Семантика:	
  
•  Элементы	
  
•  Id	
  и	
  Class	
  
•  Микроформаты	
  


   Семантика	
  	
  
   (фр.	
  séman€que	
  	
  
   от	
  греч.	
  σημαντικός	
  —	
  
   	
  обозначающий)	
  


 19.08.10	
                                                       9	
  
HTML	
  5	
  Layout	
  


•      header	
  
•      footer	
  
•      sec€on	
  
•      ar€cle	
  
•      aside	
  
•      nav	
  

     19.08.10	
                               10	
  
HTML	
  5	
  Content	
  
•      audio	
  
•      canvas	
  
•      details      	
  


•      dialog	
  
•      embed	
  
•      figure	
  
•      source	
  
•      video	
  
     19.08.10	
                                       11	
  
HTML	
  5	
  Inline	
  elements	
  
•      mark	
  
•      meter	
  
•      €me	
  (date€me)	
  
•      progress	
  




     19.08.10	
                                           12	
  
HTML	
  5	
  Forms	
  




19.08.10	
  
               hˆp://pepelsbey.net/pres/html5-­‐in-­‐fact/e/form/index.htm	
     13	
  
HTML	
  5	
  Forms	
  
•  Datalist           	
  



•  Command	
  
<menu>	
  	
  
    <command	
  onclick="alert('first	
  command')"	
  label="Do	
  1st	
  Command"/>	
  
    	
  <command	
  onclick="alert('second	
  command')"	
  label="Do	
  2nd	
  Command"/>	
  
    	
  <command	
  onclick="alert('third	
  command')"	
  label="Do	
  3rd	
  Command"/>	
  	
  
</menu>	
  

•  Autofocus,	
  Required	
  
•  Type=number,	
  email,	
  url,	
  date,	
  range	
  
•  Output	
  	
  

   19.08.10	
                                                                                       14	
  
Вебшрифты	
  
•  Всё	
  просто:	
  

@font-face {
  font-family: ‘MyFont';
  src: url('myfont.eot'); /* IE6+ */
  src: local('MyFont'),
   url('myfont.woff') format('woff'),
   /* FF3.6 */
   url('myfont.ttf') format('truetype');
   /* Saf3+,Chrome,FF3.5,Opera10+ */
}

  19.08.10	
                               15	
  
Вебшрифты	
  
•  sIFR	
  
•  Typekit	
  
•  Cufon	
  
•  Typotheque	
  
	
  
(Flash	
  /	
  JS	
  /	
  SVG	
  /	
  VML)	
  



  19.08.10	
                                     16	
  
HTML	
  5	
  Audio	
  

                              <audio	
  controls	
  autobuffer>	
  
                              	
  	
  <source	
  src="elvis.ogg"	
  />	
  
                              	
  	
  <source	
  src="elvis.mp3"	
  />	
  
                              </audio>	
  

Кроссбраузерное	
  решение:	
  
hˆp://www.happyworm.com/jquery/jplayer/	
  




 19.08.10	
                                                              17	
  
HTML	
  5	
  Video	
  
•  Было:	
  
    <object	
  classid="clsid:d27cdb6e-­‐ae6d-­‐11cf-­‐96b8-­‐444553540000"	
  width="425"	
  height="344"	
  
    codebase="hˆp://download.macromedia.com/pub/shockwave/cabs/flash/
    swflash.cab#version=6,0,40,0">	
  
    <param	
  name="allowFullScreen"	
  value="true"	
  />	
  
    <param	
  name="allowscriptaccess"	
  value="always"	
  />	
  
    <param	
  name="src"	
  value="hˆp://www.youtube.com/v/oHg5SJYRHA0&hl=en&fs=1&"	
  />	
  
    <param	
  name="allowfullscreen"	
  value="true"	
  />	
  
    <embed	
  type="applica€on/x-­‐shockwave-­‐flash"	
  width="425"	
  height="344"	
  src="hˆp://
    www.youtube.com/v/oHg5SJYRHA0&hl=en&fs=1&"	
  allowscriptaccess="always"	
  
    allowfullscreen="true">	
  
    </embed>	
  
    </object>	
  

•  Стало:	
  
    <video	
  width="640"	
  height="360"	
  src="hˆp://www.youtube.com/demo/google_main.mp"	
  
    autobuffer	
  controls	
  poster="whale.png">	
  
    <a	
  href="hˆp://www.youtube.com/demo/google_main.mp4">download	
  the	
  video</a	
  
    </video>	
  

  19.08.10	
                                                                                                     18	
  
HTML	
  5	
  Video	
  




19.08.10	
                              19	
  
Canvas	
  &	
  SVG	
  




                hˆp://babarun.ru/content/canvas/	
  
                	
  
19.08.10	
                                             20	
  
Canvas	
  &	
  SVG	
  




               hˆp://9elements.com/io/projects/html5/canvas/	
  
               	
  
19.08.10	
                                                         21	
  
Canvas	
  &	
  SVG	
  




               hˆp://svg-­‐edit.googlecode.com/svn/branches/2.4/editor/svg-­‐editor.html	
  
19.08.10	
                                                                                     22	
  
               	
  
Canvas	
  &	
  SVG	
  




               hˆp://ie.microso².com/testdrive/Graphics/55TagCloud/Default.xhtml	
  
19.08.10	
                                                                             23	
  
               	
  
HTML	
  5.	
  Drag	
  &	
  Drop	
  




               hˆp://pepelsbey.net/pres/html5-­‐in-­‐fact/e/drag/index.htm	
  
19.08.10	
                                                                       24	
  
CSS	
  3	
  




.box_round	
  {	
  	
  
	
  	
  	
  	
  -­‐moz-­‐border-­‐radius:	
  15px;	
  /*	
  FF1+	
  */	
  	
  
	
  	
  	
  	
  -­‐webkit-­‐border-­‐radius:	
  15px;	
  /*	
  Saf3+,	
  Chrome	
  */	
  	
  
	
  	
  	
  	
  border-­‐radius:	
  15px;	
  /*	
  Opera	
  10.5,	
  IE	
  9	
  */	
  	
  
	
  	
  	
  	
  }	
  
  19.08.10	
                                                                                    25	
  
CSS	
  3	
  




.box_shadow	
  {	
  	
  
	
  	
  	
  	
  -­‐moz-­‐box-­‐shadow:	
  0px	
  0px	
  20px	
  #ffffff;	
  /*	
  FF3.5+	
  */	
  	
  
	
  	
  	
  	
  -­‐webkit-­‐box-­‐shadow:	
  0px	
  0px	
  20px	
  #ffffff;	
  /*	
  Saf3.0+,	
  Chrome	
  */	
  	
  
	
  	
  	
  	
  box-­‐shadow:	
  0px	
  0px	
  20px	
  #ffffff;	
  /*	
  Opera	
  10.5,	
  IE	
  9.0	
  */	
  	
  
	
  	
  	
  	
  }	
  
  19.08.10	
                                                                                                         26	
  
CSS	
  3	
  




.box_gradient	
  {	
  	
  
	
  	
  	
  	
  background-­‐image:	
  	
  
                      	
  -­‐moz-­‐linear-­‐gradient(top,	
  #444444,	
  #999999);	
  /*	
  FF3.6	
  */	
  	
  
	
  	
  	
  	
  background-­‐image:	
  -­‐webkit-­‐gradient(linear,le²	
  top,le²	
  boˆom,	
  
                      	
  color-­‐stop(0,	
  #444444),color-­‐stop(1,	
  #999999));	
  /*	
  Saf4+,	
  Chrome	
  */	
  	
  	
  
	
  	
  	
  	
  }	
  
  19.08.10	
                                                                                                                      27	
  
CSS	
  3	
  




.box_rotate	
  {	
  	
  
	
  	
  	
  	
  -­‐moz-­‐transform:	
  rotate(7.5deg);	
  /*	
  FF3.5+	
  */	
  	
  
	
  	
  	
  	
  -­‐o-­‐transform:	
  rotate(7.5deg);	
  /*	
  Opera	
  10.5	
  */	
  	
  
	
  	
  	
  	
  -­‐webkit-­‐transform:	
  rotate(7.5deg);	
  /*	
  Saf3.1+,	
  Chrome	
  */	
  	
  
	
  	
  	
  	
  }	
  
  19.08.10	
                                                                                          28	
  
CSS	
  анимация	
  




19.08.10	
  
               hˆp://pepelsbey.net/pro/2009/12/special-­‐effects-­‐tea/5.htm	
     29	
  
               	
  
JS	
  APIs	
  
•      Web	
  Storage	
  
•      Web	
  SQL	
  Database	
  
•      Applica€on	
  Cache	
  API	
  
•      No€fica€ons	
  
•      Drag	
  and	
  Drop	
  
•      Geoloca€on	
  



     19.08.10	
                                 30	
  
hˆp://html5test.com/	
  
19.08.10	
                                31	
  
hˆp://www.findmebyip.com/litmus/	
  
19.08.10	
                                           32	
  
hˆp://html5readiness.com/	
  
19.08.10	
                                     33	
  
(HTML)
•  Черновик	
  спецификации	
  
   hˆp://dev.w3.org/html5/spec/Overview.html	
  
•  hˆp://html5doctor.com/	
  
•  hˆp://diveintohtml5.org/	
  
•  hˆp://html5gallery.com/	
  
•  hˆp://html5demos.com/	
  
•  hˆp://www.quackit.com/html_5/tags/	
  
•  hˆp://media.smashingmagazine.com/cdn_smash/wp-­‐
   content/uploads/images/html5-­‐cheat-­‐sheet/html5-­‐
   cheat-­‐sheet.pdf	
  
 19.08.10	
                                            34	
  
(CSS)
•  hˆp://www.css3.info/	
  
•  hˆp://css3please.com/	
  
•  hˆp://css3generator.com/	
  




 19.08.10	
                       35	
  

More Related Content

Featured

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationErica Santiago
 

Featured (20)

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 

Html5 and-css3

  • 1. HTML 5 CSS 3         Александр  Котоманов   Верстальщик   19.08.10   1  
  • 2. План  тренинга   •  Что  нового  в  HTML  5   •  Вебшрифты   •  Audio  и  Video   •  Canvas  и  SVG   •  Drag&Drop   •  Формы   •  CSS  3   •  JS  APIs   •  Поддержка  браузерами   19.08.10   2  
  • 3. HTML  5.  Немного  истории     1991  HTML     1994  HTML  2     1996  CSS  1  +  JavaScript     1997  HTML  4     1998  CSS  2     2000  XHTML  1     2005  AJAX     2009  HTML  5       19.08.10   3  
  • 4. HTML  5.  Уже  сейчас     Правильный  Doctype!     <!DOCTYPE  html>   19.08.10   4  
  • 5. HTML  5.  Уже  сейчас   Для  IE     <!-­‐-­‐[if  IE]>   <script>   document.createElement(’header’);   document.createElement(’footer’);   document.createElement(’sec€on’);   document.createElement(’aside’);   document.createElement(’nav’);   document.createElement(’ar€cle’);   </script>     <![endif]-­‐-­‐>     19.08.10   5  
  • 6. HTML  5.  Уже  сейчас   Мой  выбор:   <!-­‐-­‐[if  lte  IE  8]>   <script  type="text/javascript"  src="hˆp://html5shiv.googlecode.com/svn/ trunk/html5.js"></script>   <![endif]-­‐-­‐>     19.08.10   6  
  • 7. HTML  5.  Уже  сейчас   Для  FF  2  и  Camino  1:   <html  lang="en"  xmlns="hˆp://www.w3.org/1999/xhtml">   Content-­‐type  из  text/html  в  applica€on/xhtml +xml   RewriteCond  %{REQUEST_URI}  .html$   RewriteCond  %{HTTP_USER_AGENT}  rv:1.(([1-­‐8]|9pre|9a|9b[0-­‐4]). [0-­‐9.]+).*Gecko   RewriteRule  .*  -­‐  [T=applica€on/xhtml+xml]     или   if  (preg_match('/rv:1.(([1-­‐8]|9pre|9a|9b[0-­‐4]).[0-­‐9.]+).*Gecko/',  $_SERVER ['HTTP_USER_AGENT']))  {      header('Content-­‐type:  applica€on/xhtml+xml');   }   19.08.10   7  
  • 8. HTML  5.  Уже  сейчас   •  UTF-­‐8    <meta  charset="UTF-­‐8">   19.08.10   8  
  • 9. HTML  4  Layout   Семантика:   •  Элементы   •  Id  и  Class   •  Микроформаты   Семантика     (фр.  séman€que     от  греч.  σημαντικός  —    обозначающий)   19.08.10   9  
  • 10. HTML  5  Layout   •  header   •  footer   •  sec€on   •  ar€cle   •  aside   •  nav   19.08.10   10  
  • 11. HTML  5  Content   •  audio   •  canvas   •  details   •  dialog   •  embed   •  figure   •  source   •  video   19.08.10   11  
  • 12. HTML  5  Inline  elements   •  mark   •  meter   •  €me  (date€me)   •  progress   19.08.10   12  
  • 13. HTML  5  Forms   19.08.10   hˆp://pepelsbey.net/pres/html5-­‐in-­‐fact/e/form/index.htm   13  
  • 14. HTML  5  Forms   •  Datalist   •  Command   <menu>     <command  onclick="alert('first  command')"  label="Do  1st  Command"/>    <command  onclick="alert('second  command')"  label="Do  2nd  Command"/>    <command  onclick="alert('third  command')"  label="Do  3rd  Command"/>     </menu>   •  Autofocus,  Required   •  Type=number,  email,  url,  date,  range   •  Output     19.08.10   14  
  • 15. Вебшрифты   •  Всё  просто:   @font-face { font-family: ‘MyFont'; src: url('myfont.eot'); /* IE6+ */ src: local('MyFont'), url('myfont.woff') format('woff'), /* FF3.6 */ url('myfont.ttf') format('truetype'); /* Saf3+,Chrome,FF3.5,Opera10+ */ } 19.08.10   15  
  • 16. Вебшрифты   •  sIFR   •  Typekit   •  Cufon   •  Typotheque     (Flash  /  JS  /  SVG  /  VML)   19.08.10   16  
  • 17. HTML  5  Audio   <audio  controls  autobuffer>      <source  src="elvis.ogg"  />      <source  src="elvis.mp3"  />   </audio>   Кроссбраузерное  решение:   hˆp://www.happyworm.com/jquery/jplayer/   19.08.10   17  
  • 18. HTML  5  Video   •  Было:   <object  classid="clsid:d27cdb6e-­‐ae6d-­‐11cf-­‐96b8-­‐444553540000"  width="425"  height="344"   codebase="hˆp://download.macromedia.com/pub/shockwave/cabs/flash/ swflash.cab#version=6,0,40,0">   <param  name="allowFullScreen"  value="true"  />   <param  name="allowscriptaccess"  value="always"  />   <param  name="src"  value="hˆp://www.youtube.com/v/oHg5SJYRHA0&hl=en&fs=1&"  />   <param  name="allowfullscreen"  value="true"  />   <embed  type="applica€on/x-­‐shockwave-­‐flash"  width="425"  height="344"  src="hˆp:// www.youtube.com/v/oHg5SJYRHA0&hl=en&fs=1&"  allowscriptaccess="always"   allowfullscreen="true">   </embed>   </object>   •  Стало:   <video  width="640"  height="360"  src="hˆp://www.youtube.com/demo/google_main.mp"   autobuffer  controls  poster="whale.png">   <a  href="hˆp://www.youtube.com/demo/google_main.mp4">download  the  video</a   </video>   19.08.10   18  
  • 19. HTML  5  Video   19.08.10   19  
  • 20. Canvas  &  SVG   hˆp://babarun.ru/content/canvas/     19.08.10   20  
  • 21. Canvas  &  SVG   hˆp://9elements.com/io/projects/html5/canvas/     19.08.10   21  
  • 22. Canvas  &  SVG   hˆp://svg-­‐edit.googlecode.com/svn/branches/2.4/editor/svg-­‐editor.html   19.08.10   22    
  • 23. Canvas  &  SVG   hˆp://ie.microso².com/testdrive/Graphics/55TagCloud/Default.xhtml   19.08.10   23    
  • 24. HTML  5.  Drag  &  Drop   hˆp://pepelsbey.net/pres/html5-­‐in-­‐fact/e/drag/index.htm   19.08.10   24  
  • 25. CSS  3   .box_round  {            -­‐moz-­‐border-­‐radius:  15px;  /*  FF1+  */            -­‐webkit-­‐border-­‐radius:  15px;  /*  Saf3+,  Chrome  */            border-­‐radius:  15px;  /*  Opera  10.5,  IE  9  */            }   19.08.10   25  
  • 26. CSS  3   .box_shadow  {            -­‐moz-­‐box-­‐shadow:  0px  0px  20px  #ffffff;  /*  FF3.5+  */            -­‐webkit-­‐box-­‐shadow:  0px  0px  20px  #ffffff;  /*  Saf3.0+,  Chrome  */            box-­‐shadow:  0px  0px  20px  #ffffff;  /*  Opera  10.5,  IE  9.0  */            }   19.08.10   26  
  • 27. CSS  3   .box_gradient  {            background-­‐image:      -­‐moz-­‐linear-­‐gradient(top,  #444444,  #999999);  /*  FF3.6  */            background-­‐image:  -­‐webkit-­‐gradient(linear,le²  top,le²  boˆom,    color-­‐stop(0,  #444444),color-­‐stop(1,  #999999));  /*  Saf4+,  Chrome  */              }   19.08.10   27  
  • 28. CSS  3   .box_rotate  {            -­‐moz-­‐transform:  rotate(7.5deg);  /*  FF3.5+  */            -­‐o-­‐transform:  rotate(7.5deg);  /*  Opera  10.5  */            -­‐webkit-­‐transform:  rotate(7.5deg);  /*  Saf3.1+,  Chrome  */            }   19.08.10   28  
  • 29. CSS  анимация   19.08.10   hˆp://pepelsbey.net/pro/2009/12/special-­‐effects-­‐tea/5.htm   29    
  • 30. JS  APIs   •  Web  Storage   •  Web  SQL  Database   •  Applica€on  Cache  API   •  No€fica€ons   •  Drag  and  Drop   •  Geoloca€on   19.08.10   30  
  • 34. (HTML) •  Черновик  спецификации   hˆp://dev.w3.org/html5/spec/Overview.html   •  hˆp://html5doctor.com/   •  hˆp://diveintohtml5.org/   •  hˆp://html5gallery.com/   •  hˆp://html5demos.com/   •  hˆp://www.quackit.com/html_5/tags/   •  hˆp://media.smashingmagazine.com/cdn_smash/wp-­‐ content/uploads/images/html5-­‐cheat-­‐sheet/html5-­‐ cheat-­‐sheet.pdf   19.08.10   34  
  • 35. (CSS) •  hˆp://www.css3.info/   •  hˆp://css3please.com/   •  hˆp://css3generator.com/   19.08.10   35