SlideShare a Scribd company logo
1 of 29
Download to read offline
HTML5 & CSS
AN OVERVIEW
HTML5 // Cleaning redundancy


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
HTML5 // Cleaning redundancy




 AM !
B <!doctype html>
HTML5 // Cleaning redundancy


                  <meta http-equiv="Content-Type"
HTML 4.01         content="text/html; charset=utf-8">




                  <?xml version="1.0" encoding="UTF-8"?>
XHTML 1.0         <meta http-equiv="Content-Type"
                  content="text/html; charset=utf-8">
HTML5 // Cleaning redundancy




<meta charset=”utf-8”>
                       BA M!!
               D ouble
HTML5 // Cleaning redundancy



<link rel="stylesheet" href="styles.css" type="text/css" />



<script src=”jquery.js” type=”text/javascript”></script>
HTML5 // Cleaning redundancy



<link rel="stylesheet" href="styles.css" type=”text/css” />



<script src=”jquery.js” type=”text/javascript”></script>
HTML5 // Cleaning redundancy



<link rel="stylesheet" href="styles.css” />



<script src=”jquery.js”></script>




                              ...looks much prettier!
HTML5 // New elements

<header>                                                                    <video>

<nav>                                                                   <figure>

<section>                                                               <footer>

<article>                                                                    <time>

<aside>                                                          <datalist>


           To check all elements: http://joshduck.com/periodic-table.html
HTML5 // Common structure
<body>                           <div class=”article”>
   <div class=”header”>             <h1>Article head</h1>
      <h1>Company logo</h1>         <p>Article paragraph</p>
      <p>Tagline</p>                <div class=”aside”>
   </div>                              <p>pointer for article</p>
   <div class=”nav”>                </div>
      <ul>                       </div>
         <li>link1</li>          <div class=”figure”>
         <li>link2</li>             <img src=”...”>
      </ul>                         <div class=”figcaption”>text</div>
   </div>                        </div>
   <div class=”section”>         <footer>
      <div class=”article”>         &copy;
         <div class=”header”>       <time datetime=”2012-11-08”>
            <h1>...</h1>               2012</time>
         </div>                  </footer>
         <div class=”section”>   </body>
         ...
         </div>
      </div>
HTML5 // Common structure
<body>                           <article>
   <header>                         <h1>Article head</h1>
      <h1>Company logo</h1>         <p>Article paragraph</p>
      <p>Tagline</p>                <aside>
   </header>                           <p>pointer for article</p>
   <nav>                            </aside>
      <ul>                       </article>
         <li>link1</li>          <figure>
         <li>link2</li>             <img src=”...”>
      </ul>                         <figcaption>text</figcaption>
   </nav>                        </figure>
   <section>                     <footer>
      <article>                     &copy;
         <header>                   <time datetime=”2012-11-08”>
            <h1>...</h1>               2012</time>
         </header>               </footer>
         <section>               </body>
         ...
         </section>
      </article>
                              ...much better semantic!
HTML5 // Common structure

<section class=”item”>
   <header>
      <h1></h1>
   </header>
   <footer class=”meta”>...</footer>
   <div class=”content”>
      ...
   </div>
   <nav class=”links”>
   ...
   </nav>
</section>
HTML5 // Common structure



<a href=”#” target=“_blank”>
   <div class=”panel”>
      <h2>Banner title</h2>
      <p>Get your 50% discount now, mofo!</p>
   </div>
</a>
HTML5 // Forms

<input type=”text” required>

<input type=”email” value=”i@i.com”>

<input type=”date” min=”2010-08-14” max=”2016-08-14” value=”2010-08-10”>

<input type=”range” min=”0” max=”50” value=”11”>

<input type=”search” placeholder=”Type city or property”>

<input type=”tel” placeholder=”(353)657778888 patter=”[regexp]”>

<input type=”color” placeholder=”#ff00ff”>

<input type=”number” step=”1” min=”-5” max=”10” value=”0”>




                                             ...example available
HTML5 // Audio & Video




<audio id=”audio” scr=”song.mp3” controls></audio>

<video id=”video” src=”video.mov” autoplay controls></video>
HTML5 // Audio & Video
                          d egrad e grac efully.
                       ...

<video id=”video” src=”video.mov” autoplay controls>
   <object data=”video.mov”>
   <!-- fallback content -->
   </object>
</video>
CSS // Pseudo classes

Relational         Links      Input       Text

:not               :link      :focus      :first-letter
:empty             :visited   :target     :first-line
                   :hover     :enabled    :lang
                   :active    :disabled   ::selection
Position                      :checked


:first-child
:last-child
:nth-child(n)
:nth-of-type(n)
:first-of-type
:last-of-type
:nth-last-of-type(n)
:nth-last-child(n)
:only-of-type
CSS // Pseudo classes

Relational         Links        Input       Text

:not               :link        :focus      :first-letter
:empty             :visited     :target     :first-line
                   :hover       :enabled    :lang
                   :active      :disabled   ::selection
Position                        :checked


:first-child
:last-child
:nth-child(n)
:nth-of-type(n)
                              BAD NEWs...
:first-of-type
:last-of-type
                              Most of these don’t
:nth-last-of-type(n)
:nth-last-child(n)
:only-of-type
                              work on old popular
                              browsers! :(
CSS // Pseudo classes

Relational         Links         Input          Text

:not               :link         :focus         :first-letter
:empty             :visited      :target        :first-line
                   :hover        :enabled       :lang
                   :active       :disabled      ::selection
Position                         :checked


:first-child
:last-child
:nth-child(n)
:nth-of-type(n)
                              SOLUTION?
:first-of-type
:last-of-type
                              Use more markup or
:nth-last-of-type(n)
:nth-last-child(n)            try Selectivizr.com
:only-of-type
CSS // Pseudo classes

Relational         Links        Input        Text

:not               :link        :focus       :first-letter
:empty             :visited     :target      :first-line
                   :hover       :enabled     :lang
                   :active      :disabled    ::selection
Position                        :checked


:first-child
:last-child
:nth-child(n)
:nth-of-type(n)
                              GOOD NEWS...
:first-of-type
:last-of-type
                              They all work great on
:nth-last-of-type(n)
:nth-last-child(n)
:only-of-type
                              IE9, webkit browsers,
                              Firefox and Opera...
CSS // Pseudo classes

Relational         Links         Input         Text

:not               :link         :focus        :first-letter
:empty             :visited      :target       :first-line
                   :hover        :enabled      :lang
                   :active       :disabled     ::selection
Position                         :checked


:first-child
:last-child
:nth-child(n)
:nth-of-type(n)
                              GOOD NEWS...
:first-of-type
:last-of-type
                              ... meaning, very suitable
:nth-last-of-type(n)
:nth-last-child(n)
:only-of-type
                              to work on mobile
                              browsers :)
CSS // Some examples


elem:nth-child(5) { color:orange; }




elem:nth-child(n+6) { color:orange; }




elem:nth-child(-n+5) { color:orange; }




elem:nth-child(4n-7) { color:orange; }
CSS // Some examples


elem:nth-child(odd) { color:orange; }




elem:nth-child(even) { color:orange; }




elem:last-child { color:orange; }




elem:last-child(2) { color:orange; }
CSS // Some examples

 “What goes around comes around”

       <blockquote>
HTML      <p>What goes around comes around</p>
       </blockquote>



       p:before {                 p:after {

CSS       content:’”’;
          color:light-green;
                                     content:’”’;
                                     color:light-green;
       }                          }
CSS // Some examples

                i   WARNING!

HTML   <p class=”warning”>Warning!</p>




       p:before {
CSS       content:””;
          background:url(warning-icon.png) 0 0 no-repeat;
          display:inline-block;
          margin-right:10px;
       }
CSS // Some examples

               i   SIGN UP HERE

HTML   <p class=”sign-up”>sign up here</p>


 CSS   .sign-up:before {
          content:””;
          background:url(warning-icon.png) 0 0 no-repeat;
          display:inline-block;
          margin-right:10px;
       }

       .sign-up:after {
          content:””;
          background:url(arrow.png) 0 0 no-repeat;
          position:absolute;
          bottom:-15px; left:50%;
       }
CSS // Some examples

               i   SIGN UP HERE

HTML   <p class=”sign-up”>sign up here</p>


 CSS   .sign-up:before {
          /* same code as previous slide */
       }

       .sign-up:after {
          content:””;
          position:absolute; bottom:0; left:50%;
          width: 0;
          height: 0;
          border-left: 15px solid transparent;

                                                   ro w im g!
       }
          border-right: 15px solid transparent;
          border-top: 30px solid orange;
                                              no ar
RESOURCES
http://html5doctor.com/css3-pseudo-classes-and-html5-forms
http://www.developer.nokia.com/document/Mobile_Web_Templates_for_Smartphones_Examples/content.html
http://mobilehtml5.org/
http://css-tricks.com/pseudo-class-selectors/
http://css-tricks.com/pseudo-element-roundup/
http://www.sitepoint.com/css3-tabs-using-target-selector/
http://slides.html5rocks.com/#landing-slide
http://selectivizr.com
Thanks!

More Related Content

What's hot

Progressive Prototyping w/HTML5, CSS3 and jQuery
Progressive Prototyping w/HTML5, CSS3 and jQueryProgressive Prototyping w/HTML5, CSS3 and jQuery
Progressive Prototyping w/HTML5, CSS3 and jQueryTodd Zaki Warfel
 
Prototyping w/HTML5 and CSS3
Prototyping w/HTML5 and CSS3Prototyping w/HTML5 and CSS3
Prototyping w/HTML5 and CSS3Todd Zaki Warfel
 
Doctype html public
Doctype html publicDoctype html public
Doctype html publicEddy_TKJ
 
Beyond HTML - Scriptsprachen, Frameworks, Templatesprachen und vieles mehr
Beyond HTML - Scriptsprachen, Frameworks, Templatesprachen und vieles mehrBeyond HTML - Scriptsprachen, Frameworks, Templatesprachen und vieles mehr
Beyond HTML - Scriptsprachen, Frameworks, Templatesprachen und vieles mehrJens-Christian Fischer
 
Keypoints html5
Keypoints html5Keypoints html5
Keypoints html5dynamis
 
JavaScript Advanced - Useful methods to power up your code
JavaScript Advanced - Useful methods to power up your codeJavaScript Advanced - Useful methods to power up your code
JavaScript Advanced - Useful methods to power up your codeLaurence Svekis ✔
 
Espacios en-tu-vida
Espacios en-tu-vidaEspacios en-tu-vida
Espacios en-tu-vidaepacheco1
 
What you need to know bout html5
What you need to know bout html5What you need to know bout html5
What you need to know bout html5Kevin DeRudder
 
Introduction to web components
Introduction to web componentsIntroduction to web components
Introduction to web componentsMarc Bächinger
 
Rapid and Responsive - UX to Prototype with Bootstrap
Rapid and Responsive - UX to Prototype with BootstrapRapid and Responsive - UX to Prototype with Bootstrap
Rapid and Responsive - UX to Prototype with BootstrapJosh Jeffryes
 
HTML5: Smart Markup for Smarter Websites [Future of Web Apps, Las Vegas 2011]
HTML5: Smart Markup for Smarter Websites [Future of Web Apps, Las Vegas 2011]HTML5: Smart Markup for Smarter Websites [Future of Web Apps, Las Vegas 2011]
HTML5: Smart Markup for Smarter Websites [Future of Web Apps, Las Vegas 2011]Aaron Gustafson
 
Drupal Theme Development - DrupalCon Chicago 2011
Drupal Theme Development - DrupalCon Chicago 2011Drupal Theme Development - DrupalCon Chicago 2011
Drupal Theme Development - DrupalCon Chicago 2011Ryan Price
 
Progressive downloads and rendering (Stoyan Stefanov)
Progressive downloads and rendering (Stoyan Stefanov)Progressive downloads and rendering (Stoyan Stefanov)
Progressive downloads and rendering (Stoyan Stefanov)Ontico
 

What's hot (20)

Html5
Html5Html5
Html5
 
Progressive Prototyping w/HTML5, CSS3 and jQuery
Progressive Prototyping w/HTML5, CSS3 and jQueryProgressive Prototyping w/HTML5, CSS3 and jQuery
Progressive Prototyping w/HTML5, CSS3 and jQuery
 
Html5 ux london
Html5 ux londonHtml5 ux london
Html5 ux london
 
Prototyping w/HTML5 and CSS3
Prototyping w/HTML5 and CSS3Prototyping w/HTML5 and CSS3
Prototyping w/HTML5 and CSS3
 
Doctype html public
Doctype html publicDoctype html public
Doctype html public
 
Beyond HTML - Scriptsprachen, Frameworks, Templatesprachen und vieles mehr
Beyond HTML - Scriptsprachen, Frameworks, Templatesprachen und vieles mehrBeyond HTML - Scriptsprachen, Frameworks, Templatesprachen und vieles mehr
Beyond HTML - Scriptsprachen, Frameworks, Templatesprachen und vieles mehr
 
Keypoints html5
Keypoints html5Keypoints html5
Keypoints html5
 
Introduction to Html5
Introduction to Html5Introduction to Html5
Introduction to Html5
 
Mobile themes, QR codes, and shortURLs
Mobile themes, QR codes, and shortURLsMobile themes, QR codes, and shortURLs
Mobile themes, QR codes, and shortURLs
 
JavaScript Advanced - Useful methods to power up your code
JavaScript Advanced - Useful methods to power up your codeJavaScript Advanced - Useful methods to power up your code
JavaScript Advanced - Useful methods to power up your code
 
JavaScript
JavaScriptJavaScript
JavaScript
 
Espacios en-tu-vida
Espacios en-tu-vidaEspacios en-tu-vida
Espacios en-tu-vida
 
Guia de-estudio-2
Guia de-estudio-2Guia de-estudio-2
Guia de-estudio-2
 
What you need to know bout html5
What you need to know bout html5What you need to know bout html5
What you need to know bout html5
 
Introduction to web components
Introduction to web componentsIntroduction to web components
Introduction to web components
 
Rapid and Responsive - UX to Prototype with Bootstrap
Rapid and Responsive - UX to Prototype with BootstrapRapid and Responsive - UX to Prototype with Bootstrap
Rapid and Responsive - UX to Prototype with Bootstrap
 
HTML5: Smart Markup for Smarter Websites [Future of Web Apps, Las Vegas 2011]
HTML5: Smart Markup for Smarter Websites [Future of Web Apps, Las Vegas 2011]HTML5: Smart Markup for Smarter Websites [Future of Web Apps, Las Vegas 2011]
HTML5: Smart Markup for Smarter Websites [Future of Web Apps, Las Vegas 2011]
 
HTML5 JS APIs
HTML5 JS APIsHTML5 JS APIs
HTML5 JS APIs
 
Drupal Theme Development - DrupalCon Chicago 2011
Drupal Theme Development - DrupalCon Chicago 2011Drupal Theme Development - DrupalCon Chicago 2011
Drupal Theme Development - DrupalCon Chicago 2011
 
Progressive downloads and rendering (Stoyan Stefanov)
Progressive downloads and rendering (Stoyan Stefanov)Progressive downloads and rendering (Stoyan Stefanov)
Progressive downloads and rendering (Stoyan Stefanov)
 

Viewers also liked

1. Introducción a las Hojas de estilo (CSS)
1. Introducción a las Hojas de estilo (CSS)1. Introducción a las Hojas de estilo (CSS)
1. Introducción a las Hojas de estilo (CSS)Aplicaciones Gráficas
 
Hojas de estilo (css)
Hojas de estilo (css)Hojas de estilo (css)
Hojas de estilo (css)Krolina Agui
 
Hojas de estilo CSS (Cascade Style Sheets)
Hojas de estilo CSS (Cascade Style Sheets)Hojas de estilo CSS (Cascade Style Sheets)
Hojas de estilo CSS (Cascade Style Sheets)Juan Rodríguez
 
Que es CSS? Presentacion Basica para CSS
Que es CSS? Presentacion Basica para CSSQue es CSS? Presentacion Basica para CSS
Que es CSS? Presentacion Basica para CSSjosuew2013
 
Hojas de estilo CSS
Hojas de estilo CSSHojas de estilo CSS
Hojas de estilo CSSRamón RS
 
CSS - ¿Cómo agregar estilos a mi página?
CSS - ¿Cómo agregar estilos a mi página?CSS - ¿Cómo agregar estilos a mi página?
CSS - ¿Cómo agregar estilos a mi página?Harold Maduro
 
Introducción a HTML y CSS
Introducción a HTML y CSSIntroducción a HTML y CSS
Introducción a HTML y CSSAdriana Tienda
 
Maquetado con HTML y CSS
Maquetado con HTML y CSSMaquetado con HTML y CSS
Maquetado con HTML y CSSManuel Razzari
 

Viewers also liked (13)

1. Introducción a las Hojas de estilo (CSS)
1. Introducción a las Hojas de estilo (CSS)1. Introducción a las Hojas de estilo (CSS)
1. Introducción a las Hojas de estilo (CSS)
 
Hojas de estilo (css)
Hojas de estilo (css)Hojas de estilo (css)
Hojas de estilo (css)
 
HTML5 & CSS 3
HTML5 & CSS 3HTML5 & CSS 3
HTML5 & CSS 3
 
Html5 aria-css-ibm-csun-2016
Html5 aria-css-ibm-csun-2016Html5 aria-css-ibm-csun-2016
Html5 aria-css-ibm-csun-2016
 
Hojas de estilo CSS (Cascade Style Sheets)
Hojas de estilo CSS (Cascade Style Sheets)Hojas de estilo CSS (Cascade Style Sheets)
Hojas de estilo CSS (Cascade Style Sheets)
 
Qué es CSS y con qué se come?
Qué es CSS y con qué se come?Qué es CSS y con qué se come?
Qué es CSS y con qué se come?
 
Que es CSS? Presentacion Basica para CSS
Que es CSS? Presentacion Basica para CSSQue es CSS? Presentacion Basica para CSS
Que es CSS? Presentacion Basica para CSS
 
Hojas de estilo CSS
Hojas de estilo CSSHojas de estilo CSS
Hojas de estilo CSS
 
CSS - ¿Cómo agregar estilos a mi página?
CSS - ¿Cómo agregar estilos a mi página?CSS - ¿Cómo agregar estilos a mi página?
CSS - ¿Cómo agregar estilos a mi página?
 
HTML y CSS
HTML y CSSHTML y CSS
HTML y CSS
 
Introducción a HTML y CSS
Introducción a HTML y CSSIntroducción a HTML y CSS
Introducción a HTML y CSS
 
Maquetado con HTML y CSS
Maquetado con HTML y CSSMaquetado con HTML y CSS
Maquetado con HTML y CSS
 
Curso HTML y CSS, parte 1
Curso HTML y CSS, parte 1Curso HTML y CSS, parte 1
Curso HTML y CSS, parte 1
 

Similar to Html5 & CSS overview

Diazo: Bridging Designers and Programmers
Diazo: Bridging Designers and ProgrammersDiazo: Bridging Designers and Programmers
Diazo: Bridging Designers and ProgrammersTsungWei Hu
 
Slow kinda sucks
Slow kinda sucksSlow kinda sucks
Slow kinda sucksTim Wright
 
2022 HTML5: The future is now
2022 HTML5: The future is now2022 HTML5: The future is now
2022 HTML5: The future is nowGonzalo Cordero
 
CSS3 and jQuery
CSS3 and jQueryCSS3 and jQuery
CSS3 and jQuerypsophy
 
Merkez, Bağcılar antika kol saati 0531 9810190 eski kurmalı
Merkez, Bağcılar antika kol saati 0531 9810190 eski kurmalı Merkez, Bağcılar antika kol saati 0531 9810190 eski kurmalı
Merkez, Bağcılar antika kol saati 0531 9810190 eski kurmalı adin sonsuz
 
Güneşli antika kol saati 0531 9810190 eski kurmalı saat alanlar
Güneşli antika kol saati 0531 9810190 eski kurmalı saat alanlarGüneşli antika kol saati 0531 9810190 eski kurmalı saat alanlar
Güneşli antika kol saati 0531 9810190 eski kurmalı saat alanlaradin sonsuz
 
Yenisahra antika kol saati 0531 9810190 eski kurmalı saat
Yenisahra antika kol saati 0531 9810190 eski kurmalı saat Yenisahra antika kol saati 0531 9810190 eski kurmalı saat
Yenisahra antika kol saati 0531 9810190 eski kurmalı saat adin sonsuz
 
Sakızağacı antika kol saati 0531 9810190 eski kurmalı saat
Sakızağacı antika kol saati 0531 9810190 eski kurmalı saat Sakızağacı antika kol saati 0531 9810190 eski kurmalı saat
Sakızağacı antika kol saati 0531 9810190 eski kurmalı saat adin sonsuz
 
Denizköşkler antika kol saati 0531 9810190 eski kurmalı saat
Denizköşkler antika kol saati 0531 9810190 eski kurmalı saat Denizköşkler antika kol saati 0531 9810190 eski kurmalı saat
Denizköşkler antika kol saati 0531 9810190 eski kurmalı saat adin sonsuz
 
Ataköy,Bakırköy antika kol saati 0531 9810190 eski kurmalı
Ataköy,Bakırköy antika kol saati 0531 9810190 eski kurmalı Ataköy,Bakırköy antika kol saati 0531 9810190 eski kurmalı
Ataköy,Bakırköy antika kol saati 0531 9810190 eski kurmalı adin sonsuz
 
Cevizlik antika kol saati 0531 9810190 eski kurmalı saat alanlar
Cevizlik antika kol saati 0531 9810190 eski kurmalı saat alanlarCevizlik antika kol saati 0531 9810190 eski kurmalı saat alanlar
Cevizlik antika kol saati 0531 9810190 eski kurmalı saat alanlaradin sonsuz
 
Zeytinlik antika kol saati 0531 9810190 eski kurmalı saat
Zeytinlik antika kol saati 0531 9810190 eski kurmalı saat Zeytinlik antika kol saati 0531 9810190 eski kurmalı saat
Zeytinlik antika kol saati 0531 9810190 eski kurmalı saat adin sonsuz
 
Evren,Bağcılar antika kol saati 0531 9810190 eski kurmalı saat
Evren,Bağcılar antika kol saati 0531 9810190 eski kurmalı saat Evren,Bağcılar antika kol saati 0531 9810190 eski kurmalı saat
Evren,Bağcılar antika kol saati 0531 9810190 eski kurmalı saat adin sonsuz
 
Örnek mah. antika kol saati 0531 9810190 eski kurmalı saat
Örnek mah. antika kol saati 0531 9810190 eski kurmalı saat Örnek mah. antika kol saati 0531 9810190 eski kurmalı saat
Örnek mah. antika kol saati 0531 9810190 eski kurmalı saat adin sonsuz
 
Kayışdağı antika kol saati 0531 9810190 eski kurmalı saat
Kayışdağı antika kol saati 0531 9810190 eski kurmalı saat Kayışdağı antika kol saati 0531 9810190 eski kurmalı saat
Kayışdağı antika kol saati 0531 9810190 eski kurmalı saat adin sonsuz
 
Yeniçamlıca antika kol saati 0531 9810190 eski kurmalı saat
Yeniçamlıca antika kol saati 0531 9810190 eski kurmalı saat Yeniçamlıca antika kol saati 0531 9810190 eski kurmalı saat
Yeniçamlıca antika kol saati 0531 9810190 eski kurmalı saat adin sonsuz
 
Göztepe,Bağcılar antika kol saati 0531 9810190 eski kurmalı
Göztepe,Bağcılar antika kol saati 0531 9810190 eski kurmalı Göztepe,Bağcılar antika kol saati 0531 9810190 eski kurmalı
Göztepe,Bağcılar antika kol saati 0531 9810190 eski kurmalı adin sonsuz
 

Similar to Html5 & CSS overview (20)

Diazo: Bridging Designers and Programmers
Diazo: Bridging Designers and ProgrammersDiazo: Bridging Designers and Programmers
Diazo: Bridging Designers and Programmers
 
CSS3 vs jQuery
CSS3 vs jQueryCSS3 vs jQuery
CSS3 vs jQuery
 
html5
html5html5
html5
 
Slow kinda sucks
Slow kinda sucksSlow kinda sucks
Slow kinda sucks
 
2022 HTML5: The future is now
2022 HTML5: The future is now2022 HTML5: The future is now
2022 HTML5: The future is now
 
CSS3 and jQuery
CSS3 and jQueryCSS3 and jQuery
CSS3 and jQuery
 
HTML5
HTML5HTML5
HTML5
 
Merkez, Bağcılar antika kol saati 0531 9810190 eski kurmalı
Merkez, Bağcılar antika kol saati 0531 9810190 eski kurmalı Merkez, Bağcılar antika kol saati 0531 9810190 eski kurmalı
Merkez, Bağcılar antika kol saati 0531 9810190 eski kurmalı
 
Güneşli antika kol saati 0531 9810190 eski kurmalı saat alanlar
Güneşli antika kol saati 0531 9810190 eski kurmalı saat alanlarGüneşli antika kol saati 0531 9810190 eski kurmalı saat alanlar
Güneşli antika kol saati 0531 9810190 eski kurmalı saat alanlar
 
Yenisahra antika kol saati 0531 9810190 eski kurmalı saat
Yenisahra antika kol saati 0531 9810190 eski kurmalı saat Yenisahra antika kol saati 0531 9810190 eski kurmalı saat
Yenisahra antika kol saati 0531 9810190 eski kurmalı saat
 
Sakızağacı antika kol saati 0531 9810190 eski kurmalı saat
Sakızağacı antika kol saati 0531 9810190 eski kurmalı saat Sakızağacı antika kol saati 0531 9810190 eski kurmalı saat
Sakızağacı antika kol saati 0531 9810190 eski kurmalı saat
 
Denizköşkler antika kol saati 0531 9810190 eski kurmalı saat
Denizköşkler antika kol saati 0531 9810190 eski kurmalı saat Denizköşkler antika kol saati 0531 9810190 eski kurmalı saat
Denizköşkler antika kol saati 0531 9810190 eski kurmalı saat
 
Ataköy,Bakırköy antika kol saati 0531 9810190 eski kurmalı
Ataköy,Bakırköy antika kol saati 0531 9810190 eski kurmalı Ataköy,Bakırköy antika kol saati 0531 9810190 eski kurmalı
Ataköy,Bakırköy antika kol saati 0531 9810190 eski kurmalı
 
Cevizlik antika kol saati 0531 9810190 eski kurmalı saat alanlar
Cevizlik antika kol saati 0531 9810190 eski kurmalı saat alanlarCevizlik antika kol saati 0531 9810190 eski kurmalı saat alanlar
Cevizlik antika kol saati 0531 9810190 eski kurmalı saat alanlar
 
Zeytinlik antika kol saati 0531 9810190 eski kurmalı saat
Zeytinlik antika kol saati 0531 9810190 eski kurmalı saat Zeytinlik antika kol saati 0531 9810190 eski kurmalı saat
Zeytinlik antika kol saati 0531 9810190 eski kurmalı saat
 
Evren,Bağcılar antika kol saati 0531 9810190 eski kurmalı saat
Evren,Bağcılar antika kol saati 0531 9810190 eski kurmalı saat Evren,Bağcılar antika kol saati 0531 9810190 eski kurmalı saat
Evren,Bağcılar antika kol saati 0531 9810190 eski kurmalı saat
 
Örnek mah. antika kol saati 0531 9810190 eski kurmalı saat
Örnek mah. antika kol saati 0531 9810190 eski kurmalı saat Örnek mah. antika kol saati 0531 9810190 eski kurmalı saat
Örnek mah. antika kol saati 0531 9810190 eski kurmalı saat
 
Kayışdağı antika kol saati 0531 9810190 eski kurmalı saat
Kayışdağı antika kol saati 0531 9810190 eski kurmalı saat Kayışdağı antika kol saati 0531 9810190 eski kurmalı saat
Kayışdağı antika kol saati 0531 9810190 eski kurmalı saat
 
Yeniçamlıca antika kol saati 0531 9810190 eski kurmalı saat
Yeniçamlıca antika kol saati 0531 9810190 eski kurmalı saat Yeniçamlıca antika kol saati 0531 9810190 eski kurmalı saat
Yeniçamlıca antika kol saati 0531 9810190 eski kurmalı saat
 
Göztepe,Bağcılar antika kol saati 0531 9810190 eski kurmalı
Göztepe,Bağcılar antika kol saati 0531 9810190 eski kurmalı Göztepe,Bağcılar antika kol saati 0531 9810190 eski kurmalı
Göztepe,Bağcılar antika kol saati 0531 9810190 eski kurmalı
 

Recently uploaded

Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 

Recently uploaded (20)

Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 

Html5 & CSS overview

  • 1. HTML5 & CSS AN OVERVIEW
  • 2. HTML5 // Cleaning redundancy <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  • 3. HTML5 // Cleaning redundancy AM ! B <!doctype html>
  • 4. HTML5 // Cleaning redundancy <meta http-equiv="Content-Type" HTML 4.01 content="text/html; charset=utf-8"> <?xml version="1.0" encoding="UTF-8"?> XHTML 1.0 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  • 5. HTML5 // Cleaning redundancy <meta charset=”utf-8”> BA M!! D ouble
  • 6. HTML5 // Cleaning redundancy <link rel="stylesheet" href="styles.css" type="text/css" /> <script src=”jquery.js” type=”text/javascript”></script>
  • 7. HTML5 // Cleaning redundancy <link rel="stylesheet" href="styles.css" type=”text/css” /> <script src=”jquery.js” type=”text/javascript”></script>
  • 8. HTML5 // Cleaning redundancy <link rel="stylesheet" href="styles.css” /> <script src=”jquery.js”></script> ...looks much prettier!
  • 9. HTML5 // New elements <header> <video> <nav> <figure> <section> <footer> <article> <time> <aside> <datalist> To check all elements: http://joshduck.com/periodic-table.html
  • 10. HTML5 // Common structure <body> <div class=”article”> <div class=”header”> <h1>Article head</h1> <h1>Company logo</h1> <p>Article paragraph</p> <p>Tagline</p> <div class=”aside”> </div> <p>pointer for article</p> <div class=”nav”> </div> <ul> </div> <li>link1</li> <div class=”figure”> <li>link2</li> <img src=”...”> </ul> <div class=”figcaption”>text</div> </div> </div> <div class=”section”> <footer> <div class=”article”> &copy; <div class=”header”> <time datetime=”2012-11-08”> <h1>...</h1> 2012</time> </div> </footer> <div class=”section”> </body> ... </div> </div>
  • 11. HTML5 // Common structure <body> <article> <header> <h1>Article head</h1> <h1>Company logo</h1> <p>Article paragraph</p> <p>Tagline</p> <aside> </header> <p>pointer for article</p> <nav> </aside> <ul> </article> <li>link1</li> <figure> <li>link2</li> <img src=”...”> </ul> <figcaption>text</figcaption> </nav> </figure> <section> <footer> <article> &copy; <header> <time datetime=”2012-11-08”> <h1>...</h1> 2012</time> </header> </footer> <section> </body> ... </section> </article> ...much better semantic!
  • 12. HTML5 // Common structure <section class=”item”> <header> <h1></h1> </header> <footer class=”meta”>...</footer> <div class=”content”> ... </div> <nav class=”links”> ... </nav> </section>
  • 13. HTML5 // Common structure <a href=”#” target=“_blank”> <div class=”panel”> <h2>Banner title</h2> <p>Get your 50% discount now, mofo!</p> </div> </a>
  • 14. HTML5 // Forms <input type=”text” required> <input type=”email” value=”i@i.com”> <input type=”date” min=”2010-08-14” max=”2016-08-14” value=”2010-08-10”> <input type=”range” min=”0” max=”50” value=”11”> <input type=”search” placeholder=”Type city or property”> <input type=”tel” placeholder=”(353)657778888 patter=”[regexp]”> <input type=”color” placeholder=”#ff00ff”> <input type=”number” step=”1” min=”-5” max=”10” value=”0”> ...example available
  • 15. HTML5 // Audio & Video <audio id=”audio” scr=”song.mp3” controls></audio> <video id=”video” src=”video.mov” autoplay controls></video>
  • 16. HTML5 // Audio & Video d egrad e grac efully. ... <video id=”video” src=”video.mov” autoplay controls> <object data=”video.mov”> <!-- fallback content --> </object> </video>
  • 17. CSS // Pseudo classes Relational Links Input Text :not :link :focus :first-letter :empty :visited :target :first-line :hover :enabled :lang :active :disabled ::selection Position :checked :first-child :last-child :nth-child(n) :nth-of-type(n) :first-of-type :last-of-type :nth-last-of-type(n) :nth-last-child(n) :only-of-type
  • 18. CSS // Pseudo classes Relational Links Input Text :not :link :focus :first-letter :empty :visited :target :first-line :hover :enabled :lang :active :disabled ::selection Position :checked :first-child :last-child :nth-child(n) :nth-of-type(n) BAD NEWs... :first-of-type :last-of-type Most of these don’t :nth-last-of-type(n) :nth-last-child(n) :only-of-type work on old popular browsers! :(
  • 19. CSS // Pseudo classes Relational Links Input Text :not :link :focus :first-letter :empty :visited :target :first-line :hover :enabled :lang :active :disabled ::selection Position :checked :first-child :last-child :nth-child(n) :nth-of-type(n) SOLUTION? :first-of-type :last-of-type Use more markup or :nth-last-of-type(n) :nth-last-child(n) try Selectivizr.com :only-of-type
  • 20. CSS // Pseudo classes Relational Links Input Text :not :link :focus :first-letter :empty :visited :target :first-line :hover :enabled :lang :active :disabled ::selection Position :checked :first-child :last-child :nth-child(n) :nth-of-type(n) GOOD NEWS... :first-of-type :last-of-type They all work great on :nth-last-of-type(n) :nth-last-child(n) :only-of-type IE9, webkit browsers, Firefox and Opera...
  • 21. CSS // Pseudo classes Relational Links Input Text :not :link :focus :first-letter :empty :visited :target :first-line :hover :enabled :lang :active :disabled ::selection Position :checked :first-child :last-child :nth-child(n) :nth-of-type(n) GOOD NEWS... :first-of-type :last-of-type ... meaning, very suitable :nth-last-of-type(n) :nth-last-child(n) :only-of-type to work on mobile browsers :)
  • 22. CSS // Some examples elem:nth-child(5) { color:orange; } elem:nth-child(n+6) { color:orange; } elem:nth-child(-n+5) { color:orange; } elem:nth-child(4n-7) { color:orange; }
  • 23. CSS // Some examples elem:nth-child(odd) { color:orange; } elem:nth-child(even) { color:orange; } elem:last-child { color:orange; } elem:last-child(2) { color:orange; }
  • 24. CSS // Some examples “What goes around comes around” <blockquote> HTML <p>What goes around comes around</p> </blockquote> p:before { p:after { CSS content:’”’; color:light-green; content:’”’; color:light-green; } }
  • 25. CSS // Some examples i WARNING! HTML <p class=”warning”>Warning!</p> p:before { CSS content:””; background:url(warning-icon.png) 0 0 no-repeat; display:inline-block; margin-right:10px; }
  • 26. CSS // Some examples i SIGN UP HERE HTML <p class=”sign-up”>sign up here</p> CSS .sign-up:before { content:””; background:url(warning-icon.png) 0 0 no-repeat; display:inline-block; margin-right:10px; } .sign-up:after { content:””; background:url(arrow.png) 0 0 no-repeat; position:absolute; bottom:-15px; left:50%; }
  • 27. CSS // Some examples i SIGN UP HERE HTML <p class=”sign-up”>sign up here</p> CSS .sign-up:before { /* same code as previous slide */ } .sign-up:after { content:””; position:absolute; bottom:0; left:50%; width: 0; height: 0; border-left: 15px solid transparent; ro w im g! } border-right: 15px solid transparent; border-top: 30px solid orange; no ar