SlideShare ist ein Scribd-Unternehmen logo
1 von 57
Downloaden Sie, um offline zu lesen
SCHÖNERES
WEB MIT
HTML5 & CSS3
PROGRESSIVE
ENHANCEMENT
—
HTML5
—
CSS3
GENC RASHITI
– UX Designer @ Ginetta™
– HTML + CSS Ninja
– Enthusiast
ICH LIEBE …
frischen Jazz / Terry Pratchett / 2D Fighting
Games / wohlgeformte Buchstaben / abgerundete
Ecken
@RAWDIGGIE
MÜSSEN WEBSEITEN
IN ALLEN BROWSERN
GENAU GLEICH
AUSSEHEN?
NO!
HELL
NO!
PROGRESSIVE
ENHANCEMENT
(ENRICHMENT)
«Progressive Enhancement beschreibt eine Methode
im Webdesign, die Barrierefreiheit, semantische
Auszeichnung und Trennung von Information und
Präsentation beinhaltet, um eine Website auch für
Endgeräte benutzbar zu machen, die nur über
eingeschränkte Funktionen (JavaScript-/CSS-/
Flash-Unterstützung) verfügen.»
— http://www.wikipedia.de
The Chocolatey Layers of Progressive Enhancement
Illustration von Kevin Cornell
HTML5
DOCTYPE
XHTML 1.0
<!DOCTYPE	
  html	
  PUBLIC
	
  "-­‐//W3C//DTD	
  XHTML	
  1.0	
  Strict	
  //EN"
	
  "http://www.w3.org/TR/xhtml1/DTD/xhtml-­‐strict.dtd">
HTML5
<!DOCTYPE	
  html>
META TAGS
XHTML 1.0
<meta	
  http-­‐equiv="Content-­‐Type"	
  content="text/html"	
  »
charset=UTF-­‐8"	
  />
HTML5
<meta	
  charset="UTF-­‐8">
SCRIPT TAG
XHTML 1.0
<script	
  type="text/javascript"	
  src="file.js"></script>
HTML5
<script	
  src="file.js"></script>
LINK TAG
XHTML 1.0
<link	
  rel="stylesheet"	
  type="text/css"	
  href="file.css"	
  />
HTML5
<link	
  rel="stylesheet"	
  href="file.css">
SYNTAX
XHTML 1.0
<br	
  />
– XML Syntax
– Tags lowercase
HTML5
<br> oder <BR> oder <br	
  /> …
– uppercase
– lowercase
– quoted
– unquoted
– …
BLOCK LINKS
XHTML 1.0
<h2><a	
  href="/product">Title</a></h2>
<p><a	
  href="/product">Check	
  it	
  out!</a></p>
HTML5
<a	
  href="/product">
	
  	
  <h2>Title</h2>
	
  	
  <p>Check	
  it	
  out!</p>
</a>
BITTE NICHT!
– obsolete (depricated) elements + attributes
frame, frameset, noframe
acronym
font, big, center, strike
bgcolor, cellspacing, cellpadding, valign 
…
WAS NOCH?
RICH MEDIA
canvas, audio, video
WEBFORMS 2.0
<input	
  id="age"	
  type="text"	
  placeholder="Ihr	
  Alter"	
  »	
  
required>
<input	
  id="tel"	
  type="tel">
<input	
  id="email"	
  type="email">
<input	
  id="url"	
  type="url">
section	
  	
  	
  	
  
header
hgroup	
  	
  	
  	
  	
  
footer
SEMANTIK
aside	
  	
  	
  	
  	
  	
  
nav
article	
  	
  	
  	
  
…
header
header
section
header
section
footer
header
section
footer
article
header
section
footer
nav
article
article macht glücklich!
Publiziert am 2. Oktober, 2010 von Genc Rashiti
Jemand musste Josef K. verleumdet haben, denn ohne dass er
etwas Böses getan hätte, wurde er eines Morgens verhaftet.
«Wie ein Hund!» sagte er, es war, als sollte die Scham ihn
überleben.
Als Gregor Samsa eines Morgens aus unruhigen Träumen erwachte, fand er sich
in seinem Bett zu einem ungeheueren Ungeziefer verwandelt. Und es war ihnen
wie eine Bestätigung ihrer neuen Träume und guten Absichten, als am Ziele ihrer
Fahrt die Tochter als erste sich erhob und ihren jungen Körper dehnte. «Es ist ein
eigentümlicher Apparat», sagte der Offizier zu dem Forschungsreisenden und
überblickte mit einem gewissermaßen bewundernden Blick den ihm doch
wohlbekannten Apparat. Sie hätten noch ins Boot springen können, aber der
Reisende hob ein schweres, geknotetes Tau vom Boden, drohte ihnen damit und
hielt sie dadurch von dem Sprunge ab. In den letzten Jahrzehnten ist das
Interesse an Hungerkünstlern sehr zurückgegangen. Aber sie überwanden sich,
umdrängten den Käfig und wollten sich gar nicht fortrühren. Jemand musste
Josef K. verleumdet haben, denn ohne dass er etwas Böses getan hätte, wurde er
eines Morgens verhaftet.
<article>
	
  	
  <header>
	
  	
  	
  	
  <h1>article	
  macht	
  glücklich<h1>
	
  	
  </header>
	
  	
  <h2>Jemand	
  musste	
  Josef…</h2>
	
  	
  <p>Als	
  Gregor	
  Samsa	
  eines	
  Morgens…</p>
	
  	
  <footer>
	
  	
  	
  	
  <p>Publiziert	
  am	
  <time	
  datetime="2010-­‐10-­‐2T15:03"	
  pubdate>2.Oktober	
  
2010</time>	
  von	
  Genc	
  Rashiti</p>
	
  	
  </footer>
</article>
ARTICLE
http://books.alistapart.com/
http://html5doctor.com/
DIE ZUKUNFT
CSS3
CSS3 MODULE
Advanced layout / Aural Style Sheets / Backgrounds and
Borders / Basic User Interfaces / Box Model / Cascading
and Inheritance / Color / Fonts / Generated Content for
Paged Media / Generated and Replaced Content /
Hyperlink Presentation / Line Layout / Lists / Maths /
Multi Column Layout / Namespaces / Object
Model / Paged Media / Positioning / Presentation Levels /
Reader Media Types / Ruby / Scoping / Speech / Syntax /
Tables / Text / Text Layout / Values and Units / Web Fonts
::selection	
  {	
  
	
  	
  background:	
  #d30820;
}	
  /*	
  selektierter	
  Text	
  erhält	
  roten	
  Hintergrund	
  */
#menu	
  a:after	
  {	
  
	
  	
  content:"»";
}	
  /*	
  fügt	
  ein	
  »	
  Symbol	
  ein	
  */
li:last-­‐child	
  {	
  
	
  	
  border-­‐bottom:	
  none;
}	
  /*	
  letztes	
  Listenelement	
  erhält	
  die	
  Farbe	
  #eee	
  */
COOLE SELEKTOREN
RESULTAT
fresh link » – Liste
– Liste
– Liste
– Liste
:after::selection :last-­‐child
.box_rgba	
  {	
  
	
  	
  background-­‐color:	
  #000;	
  
	
  	
  background-­‐color:	
  rgba(0,	
  0,	
  0,	
  .6);	
  
	
  	
  /*	
  FF3+,	
  Saf3+,	
  Opera	
  10.10+,	
  Chrome,	
  IE9	
  */	
  
	
  	
  
	
  	
  filter:	
  progid:DXImageTransform.Microsoft.gradient	
  »	
  
(startColorStr='#99000000',EndColorStr='#99000000');	
  
	
  	
  /*	
  IE6,	
  IE7	
  */	
  
	
  	
  -­‐ms-­‐filter:	
  "progid:DXImageTransform.Microsoft.gradient	
  »	
  
(startColorStr='#99000000',EndColorStr='#99000000')";	
  
	
  	
  /*	
  IE8	
  */	
  
}
TRANSPARENTER HINTERGRUND
.box_rgba	
  {	
  
	
  	
  background-­‐color:	
  #000;	
  
	
  	
  background-­‐color:	
  rgba(0,	
  0,	
  0,	
  .6);	
  
	
  	
  /*	
  FF3+,	
  Saf3+,	
  Opera	
  10.10+,	
  Chrome,	
  IE9	
  */	
  
	
  	
  
	
  	
  filter:	
  progid:DXImageTransform.Microsoft.gradient	
  »	
  
(startColorStr='#99000000',EndColorStr='#99000000');	
  
	
  	
  /*	
  IE6,	
  IE7	
  */	
  
	
  	
  -­‐ms-­‐filter:	
  "progid:DXImageTransform.Microsoft.gradient	
  »	
  
(startColorStr='#99000000',EndColorStr='#99000000')";	
  
	
  	
  /*	
  IE8	
  */	
  
}
TRANSPARENTER HINTERGRUND
RESULTAT
RGBA Demo
.box_gradient	
  {	
  
	
  	
  background-­‐color:	
  #444;
	
  	
  background-­‐image:	
  -­‐moz-­‐linear-­‐gradient(top,	
  #444444,	
  #999999)
	
  	
  /*	
  FF3.6	
  */	
  
	
  	
  background-­‐image:	
  -­‐webkit-­‐gradient(linear,	
  left	
  top,	
  left	
  bottom,	
  »
color-­‐stop(0,	
  #444444),color-­‐stop(1,	
  #999999));	
  
	
  	
  /*	
  Saf4+,	
  Chrome	
  */
	
  	
  filter:	
  progid:DXImageTransform.Microsoft.gradient	
  »	
  
(startColorStr='#444444',	
  EndColorStr='#999999');	
  
	
  	
  /*	
  IE6,IE7	
  */	
  
	
  	
  -­‐ms-­‐filter:	
  "progid:DXImageTransform.Microsoft.gradient	
  »	
  
(startColorStr='#444444',	
  EndColorStr='#999999')";	
  
	
  	
  /*	
  IE8	
  */
}
VERLAUF
.box_gradient	
  {	
  
	
  	
  background-­‐color:	
  #444444;
	
  	
  background-­‐image:	
  -­‐moz-­‐linear-­‐gradient(top,	
  #444444,	
  #999999)
	
  	
  /*	
  FF3.6	
  */	
  
	
  	
  background-­‐image:	
  -­‐webkit-­‐gradient(linear,	
  left	
  top,	
  left	
  bottom,	
  »
color-­‐stop(0,	
  #444444),color-­‐stop(1,	
  #999999));	
  
	
  	
  /*	
  Saf4+,	
  Chrome	
  */
	
  	
  filter:	
  progid:DXImageTransform.Microsoft.gradient	
  »	
  
(startColorStr='#444444',	
  EndColorStr='#999999');	
  
	
  	
  /*	
  IE6,IE7	
  */	
  
	
  	
  -­‐ms-­‐filter:	
  "progid:DXImageTransform.Microsoft.gradient	
  »	
  
(startColorStr='#444444',	
  EndColorStr='#999999')";	
  
	
  	
  /*	
  IE8	
  */
}
VERLAUF
RESULTAT
.box_shadow	
  {	
  
	
  	
  -­‐moz-­‐box-­‐shadow:	
  0px	
  0px	
  4px	
  rgba(0,0,0,.6);	
  
	
  	
  /*	
  FF3.5+	
  */	
  
	
  	
  -­‐webkit-­‐box-­‐shadow:	
  0px	
  0px	
  4px	
  rgba(0,0,0,.6);	
  
	
  	
  /*	
  Saf3.0+,	
  Chrome	
  */	
  
	
  	
  box-­‐shadow:	
  0px	
  0px	
  4px	
  rgba(0,0,0.6);	
  
	
  	
  /*	
  Opera	
  10.5,	
  IE	
  9	
  */	
  
}
SCHATTENWURF
RESULTAT
.box_round	
  {	
  
	
  	
  -­‐moz-­‐border-­‐radius:	
  3px;	
  
	
  	
  /*	
  FF1+	
  */	
  
	
  	
  -­‐webkit-­‐border-­‐radius:	
  3px;	
  
	
  	
  /*	
  Saf3-­‐4	
  */	
  
	
  	
  border-­‐radius:	
  3px;	
  
	
  	
  /*	
  Opera	
  10.5,	
  IE	
  9,	
  Saf5,	
  Chrome	
  */	
  
}
ABGERUNDETE ECKEN
RESULTAT
.box_textshadow	
  {	
  
	
  	
  text-­‐shadow:	
  0px	
  1px	
  1px	
  rgba(255,255,255,.5);	
  
	
  	
  /*	
  FF3.5+,	
  Opera	
  9+,	
  Saf1+,	
  Chrome	
  */	
  
}
TEXT SCHATTEN
RESULTAT
Button
Button Button
Coole Browser IE
@font-­‐face	
  {	
  
	
  	
  font-­‐family:	
  'WebFont';	
  src:	
  url('DroidSans.eot');	
  /*	
  IE6-­‐8	
  */	
  	
  	
  
	
  	
  src:	
  local('☺'),	
  
	
  	
  url('DroidSans.woff')	
  format('woff'),	
  /*	
  FF3.6,	
  IE9	
  */
	
  	
  url('DroidSans.ttf')	
  format('truetype');	
  
	
  	
  /*	
  Saf3+,Chrome,	
  FF3.5,	
  Opera10+	
  */
}
button	
  {
	
  	
  font-­‐family:	
  "WebFont";
}
WEB FONTS
RESULTAT
Button
.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	
  */	
  	
  
	
  	
  transform:	
  rotate(7.5deg);	
  	
  	
  
	
  	
  filter:	
  progid:DXImageTransform.Microsoft.Matrix	
  »
(sizingMethod='auto	
  expand',	
  M11=0.9914448613738104,	
  »
M12=-­‐0.13052619222005157,M21=0.13052619222005157,	
  »	
  
M22=0.9914448613738104);
	
  	
  /*	
  IE6,	
  IE7	
  */	
  
	
  	
  -­‐ms-­‐filter:	
  "progid:DXImageTransform.Microsoft.Matrix	
  »
(M11=0.9914448613738104,	
  M12=-­‐0.13052619222005157,	
  »
M21=0.13052619222005157,	
  M22=0.9914448613738104,	
  »
sizingMethod='auto	
  expand')";	
  
	
  	
  /*	
  IE8	
  */	
  
zoom:	
  1;	
  
}
ROTATION
.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	
  */	
  	
  
	
  	
  transform:	
  rotate(7.5deg);	
  	
  	
  
	
  	
  filter:	
  progid:DXImageTransform.Microsoft.Matrix	
  »
(sizingMethod='auto	
  expand',	
  M11=0.9914448613738104,	
  »
M12=-­‐0.13052619222005157,M21=0.13052619222005157,	
  »	
  
M22=0.9914448613738104);
	
  	
  /*	
  IE6,	
  IE7	
  */	
  
	
  	
  -­‐ms-­‐filter:	
  "progid:DXImageTransform.Microsoft.Matrix	
  »
(M11=0.9914448613738104,	
  M12=-­‐0.13052619222005157,	
  »
M21=0.13052619222005157,	
  M22=0.9914448613738104,	
  »
sizingMethod='auto	
  expand')";	
  
	
  	
  /*	
  IE8	
  */	
  
zoom:	
  1;	
  
}
ROTATION
RESULTAT
http://handcraftedcss.com/
http://hardboiledwebdesign.com/
DANKE.DANKE.
LINKS / QUELLEN
http://www.delicious.com/rawdiggie/designbriefing

Weitere ähnliche Inhalte

Andere mochten auch

Manual instruction apc3.0
Manual instruction apc3.0Manual instruction apc3.0
Manual instruction apc3.0ahnlabchina
 
Les Drogues
Les DroguesLes Drogues
Les Droguesapaganj
 
Elektronikus médiumok
Elektronikus médiumokElektronikus médiumok
Elektronikus médiumokmenich peter
 
Nick thorne social_media
Nick thorne social_mediaNick thorne social_media
Nick thorne social_medianickthorneltd
 
RANCRAFT YACHTS RANCRAFT 22.20, 2003, 29.000 € For Sale Brochure. Presented B...
RANCRAFT YACHTS RANCRAFT 22.20, 2003, 29.000 € For Sale Brochure. Presented B...RANCRAFT YACHTS RANCRAFT 22.20, 2003, 29.000 € For Sale Brochure. Presented B...
RANCRAFT YACHTS RANCRAFT 22.20, 2003, 29.000 € For Sale Brochure. Presented B...Yachting.vg
 
MobiU2011 Lecture: STRAT131 Mobile Legal Implications - Sedgwick LLP
MobiU2011 Lecture: STRAT131 Mobile Legal Implications - Sedgwick LLPMobiU2011 Lecture: STRAT131 Mobile Legal Implications - Sedgwick LLP
MobiU2011 Lecture: STRAT131 Mobile Legal Implications - Sedgwick LLPKimberly-Clark
 
андрей съедин Syedin.kz_ru
андрей съедин Syedin.kz_ruандрей съедин Syedin.kz_ru
андрей съедин Syedin.kz_ruSamson Bezmyatezhny
 
power point antiguo régimen
power point antiguo régimen power point antiguo régimen
power point antiguo régimen dayana1393
 
Company Profile
Company ProfileCompany Profile
Company ProfileSpiderday
 
Bai4 binsort
Bai4 binsortBai4 binsort
Bai4 binsortnhà tôi
 
Play moblie caroline greener february 2012
Play moblie caroline greener february 2012Play moblie caroline greener february 2012
Play moblie caroline greener february 2012Caroline Greener
 
건축가의미디어_draft_10월의하늘
건축가의미디어_draft_10월의하늘건축가의미디어_draft_10월의하늘
건축가의미디어_draft_10월의하늘Jie-Eun Hwang
 
The Secrets of Using a Corporation Webinar
The Secrets of Using a Corporation WebinarThe Secrets of Using a Corporation Webinar
The Secrets of Using a Corporation WebinarLaughlin Associates
 
Spiritual Facts
Spiritual FactsSpiritual Facts
Spiritual FactsJVGAJJAR
 
The web is social, the web is real time
The web is social, the web is real timeThe web is social, the web is real time
The web is social, the web is real timeAlisa Leonard
 

Andere mochten auch (20)

Prezentace 2
Prezentace 2Prezentace 2
Prezentace 2
 
Manual instruction apc3.0
Manual instruction apc3.0Manual instruction apc3.0
Manual instruction apc3.0
 
Les Drogues
Les DroguesLes Drogues
Les Drogues
 
Mobile marketing &_advertising - IAB Forum 2010
Mobile marketing &_advertising - IAB Forum 2010Mobile marketing &_advertising - IAB Forum 2010
Mobile marketing &_advertising - IAB Forum 2010
 
Elektronikus médiumok
Elektronikus médiumokElektronikus médiumok
Elektronikus médiumok
 
Nick thorne social_media
Nick thorne social_mediaNick thorne social_media
Nick thorne social_media
 
Cap7
Cap7Cap7
Cap7
 
RANCRAFT YACHTS RANCRAFT 22.20, 2003, 29.000 € For Sale Brochure. Presented B...
RANCRAFT YACHTS RANCRAFT 22.20, 2003, 29.000 € For Sale Brochure. Presented B...RANCRAFT YACHTS RANCRAFT 22.20, 2003, 29.000 € For Sale Brochure. Presented B...
RANCRAFT YACHTS RANCRAFT 22.20, 2003, 29.000 € For Sale Brochure. Presented B...
 
MobiU2011 Lecture: STRAT131 Mobile Legal Implications - Sedgwick LLP
MobiU2011 Lecture: STRAT131 Mobile Legal Implications - Sedgwick LLPMobiU2011 Lecture: STRAT131 Mobile Legal Implications - Sedgwick LLP
MobiU2011 Lecture: STRAT131 Mobile Legal Implications - Sedgwick LLP
 
андрей съедин Syedin.kz_ru
андрей съедин Syedin.kz_ruандрей съедин Syedin.kz_ru
андрей съедин Syedin.kz_ru
 
power point antiguo régimen
power point antiguo régimen power point antiguo régimen
power point antiguo régimen
 
Company Profile
Company ProfileCompany Profile
Company Profile
 
Bai4 binsort
Bai4 binsortBai4 binsort
Bai4 binsort
 
Play moblie caroline greener february 2012
Play moblie caroline greener february 2012Play moblie caroline greener february 2012
Play moblie caroline greener february 2012
 
건축가의미디어_draft_10월의하늘
건축가의미디어_draft_10월의하늘건축가의미디어_draft_10월의하늘
건축가의미디어_draft_10월의하늘
 
Memoria Feria Inmobiliaria en Erbil - 2011
Memoria Feria Inmobiliaria en Erbil - 2011Memoria Feria Inmobiliaria en Erbil - 2011
Memoria Feria Inmobiliaria en Erbil - 2011
 
The Secrets of Using a Corporation Webinar
The Secrets of Using a Corporation WebinarThe Secrets of Using a Corporation Webinar
The Secrets of Using a Corporation Webinar
 
VIND je innerlijke Missie
VIND je innerlijke MissieVIND je innerlijke Missie
VIND je innerlijke Missie
 
Spiritual Facts
Spiritual FactsSpiritual Facts
Spiritual Facts
 
The web is social, the web is real time
The web is social, the web is real timeThe web is social, the web is real time
The web is social, the web is real time
 

Ähnlich wie Schöneres Web mit HTML5 + CSS3

Microservices mit Rust
Microservices mit RustMicroservices mit Rust
Microservices mit RustJens Siebert
 
Die Zukunft der Webstandards - Webinale 31.05.2010
Die Zukunft der Webstandards - Webinale 31.05.2010Die Zukunft der Webstandards - Webinale 31.05.2010
Die Zukunft der Webstandards - Webinale 31.05.2010Patrick Lauke
 
Goobi Präsentation Darmstadt 2009
Goobi Präsentation Darmstadt 2009Goobi Präsentation Darmstadt 2009
Goobi Präsentation Darmstadt 2009Ralf Stockmann
 
Die fabelhafte Welt Java(Script)-getriebener Enterprise-WebApps (mit Ext JS)
Die fabelhafte Welt Java(Script)-getriebener Enterprise-WebApps (mit Ext JS)Die fabelhafte Welt Java(Script)-getriebener Enterprise-WebApps (mit Ext JS)
Die fabelhafte Welt Java(Script)-getriebener Enterprise-WebApps (mit Ext JS)Java Usergroup Berlin-Brandenburg
 
Nutze die Macht @ IKT-Forum 09 Linz
Nutze die Macht @ IKT-Forum 09 LinzNutze die Macht @ IKT-Forum 09 Linz
Nutze die Macht @ IKT-Forum 09 LinzEric Eggert
 
Backend-Services mit Rust
Backend-Services mit RustBackend-Services mit Rust
Backend-Services mit RustJens Siebert
 
Einführung in Elasticsearch
Einführung in ElasticsearchEinführung in Elasticsearch
Einführung in ElasticsearchFlorian Hopf
 
Einführung in Elasticsearch
Einführung in ElasticsearchEinführung in Elasticsearch
Einführung in ElasticsearchFlorian Hopf
 
Einfuehrung in Elasticsearch
Einfuehrung in ElasticsearchEinfuehrung in Elasticsearch
Einfuehrung in ElasticsearchFlorian Hopf
 
JsUnconf 2014
JsUnconf 2014JsUnconf 2014
JsUnconf 2014emrox
 
Dojo Und Notes
Dojo Und NotesDojo Und Notes
Dojo Und Notesdominion
 
I thought you were my friend!
I thought you were my friend!I thought you were my friend!
I thought you were my friend!Mario Heiderich
 
Aktuelle Webtechnologien - HTML5, CSS3 und mehr
Aktuelle Webtechnologien - HTML5, CSS3 und mehrAktuelle Webtechnologien - HTML5, CSS3 und mehr
Aktuelle Webtechnologien - HTML5, CSS3 und mehrYves Hoppe
 
Focus on Quality - Bessere Webfrontends durch Web Components
Focus on Quality - Bessere Webfrontends durch Web ComponentsFocus on Quality - Bessere Webfrontends durch Web Components
Focus on Quality - Bessere Webfrontends durch Web ComponentsPatrickHillert
 
Modern angular 02_angular_mit_type_script
Modern angular 02_angular_mit_type_scriptModern angular 02_angular_mit_type_script
Modern angular 02_angular_mit_type_scriptManfred Steyer
 
HTML5 und node.js Grundlagen
HTML5 und node.js GrundlagenHTML5 und node.js Grundlagen
HTML5 und node.js GrundlagenMayflower GmbH
 
Docker und Kubernetes Patterns & Anti-Patterns
Docker und Kubernetes Patterns & Anti-PatternsDocker und Kubernetes Patterns & Anti-Patterns
Docker und Kubernetes Patterns & Anti-PatternsQAware GmbH
 

Ähnlich wie Schöneres Web mit HTML5 + CSS3 (20)

HTML5
HTML5HTML5
HTML5
 
Microservices mit Rust
Microservices mit RustMicroservices mit Rust
Microservices mit Rust
 
Die Zukunft der Webstandards - Webinale 31.05.2010
Die Zukunft der Webstandards - Webinale 31.05.2010Die Zukunft der Webstandards - Webinale 31.05.2010
Die Zukunft der Webstandards - Webinale 31.05.2010
 
Goobi Präsentation Darmstadt 2009
Goobi Präsentation Darmstadt 2009Goobi Präsentation Darmstadt 2009
Goobi Präsentation Darmstadt 2009
 
Die fabelhafte Welt Java(Script)-getriebener Enterprise-WebApps (mit Ext JS)
Die fabelhafte Welt Java(Script)-getriebener Enterprise-WebApps (mit Ext JS)Die fabelhafte Welt Java(Script)-getriebener Enterprise-WebApps (mit Ext JS)
Die fabelhafte Welt Java(Script)-getriebener Enterprise-WebApps (mit Ext JS)
 
Nutze die Macht @ IKT-Forum 09 Linz
Nutze die Macht @ IKT-Forum 09 LinzNutze die Macht @ IKT-Forum 09 Linz
Nutze die Macht @ IKT-Forum 09 Linz
 
Backend-Services mit Rust
Backend-Services mit RustBackend-Services mit Rust
Backend-Services mit Rust
 
Einführung in Elasticsearch
Einführung in ElasticsearchEinführung in Elasticsearch
Einführung in Elasticsearch
 
Einführung in Elasticsearch
Einführung in ElasticsearchEinführung in Elasticsearch
Einführung in Elasticsearch
 
Einfuehrung in Elasticsearch
Einfuehrung in ElasticsearchEinfuehrung in Elasticsearch
Einfuehrung in Elasticsearch
 
JsUnconf 2014
JsUnconf 2014JsUnconf 2014
JsUnconf 2014
 
Dojo Und Notes
Dojo Und NotesDojo Und Notes
Dojo Und Notes
 
I thought you were my friend!
I thought you were my friend!I thought you were my friend!
I thought you were my friend!
 
Hdc2012 cordova-präsi
Hdc2012 cordova-präsiHdc2012 cordova-präsi
Hdc2012 cordova-präsi
 
Aktuelle Webtechnologien - HTML5, CSS3 und mehr
Aktuelle Webtechnologien - HTML5, CSS3 und mehrAktuelle Webtechnologien - HTML5, CSS3 und mehr
Aktuelle Webtechnologien - HTML5, CSS3 und mehr
 
Focus on Quality - Bessere Webfrontends durch Web Components
Focus on Quality - Bessere Webfrontends durch Web ComponentsFocus on Quality - Bessere Webfrontends durch Web Components
Focus on Quality - Bessere Webfrontends durch Web Components
 
Webapplikationen mit Node.js
Webapplikationen mit Node.jsWebapplikationen mit Node.js
Webapplikationen mit Node.js
 
Modern angular 02_angular_mit_type_script
Modern angular 02_angular_mit_type_scriptModern angular 02_angular_mit_type_script
Modern angular 02_angular_mit_type_script
 
HTML5 und node.js Grundlagen
HTML5 und node.js GrundlagenHTML5 und node.js Grundlagen
HTML5 und node.js Grundlagen
 
Docker und Kubernetes Patterns & Anti-Patterns
Docker und Kubernetes Patterns & Anti-PatternsDocker und Kubernetes Patterns & Anti-Patterns
Docker und Kubernetes Patterns & Anti-Patterns
 

Schöneres Web mit HTML5 + CSS3

  • 3. GENC RASHITI – UX Designer @ Ginetta™ – HTML + CSS Ninja – Enthusiast ICH LIEBE … frischen Jazz / Terry Pratchett / 2D Fighting Games / wohlgeformte Buchstaben / abgerundete Ecken @RAWDIGGIE
  • 4. MÜSSEN WEBSEITEN IN ALLEN BROWSERN GENAU GLEICH AUSSEHEN?
  • 6. NO!
  • 8. «Progressive Enhancement beschreibt eine Methode im Webdesign, die Barrierefreiheit, semantische Auszeichnung und Trennung von Information und Präsentation beinhaltet, um eine Website auch für Endgeräte benutzbar zu machen, die nur über eingeschränkte Funktionen (JavaScript-/CSS-/ Flash-Unterstützung) verfügen.» — http://www.wikipedia.de
  • 9. The Chocolatey Layers of Progressive Enhancement
  • 11. HTML5
  • 12. DOCTYPE XHTML 1.0 <!DOCTYPE  html  PUBLIC  "-­‐//W3C//DTD  XHTML  1.0  Strict  //EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml-­‐strict.dtd"> HTML5 <!DOCTYPE  html>
  • 13. META TAGS XHTML 1.0 <meta  http-­‐equiv="Content-­‐Type"  content="text/html"  » charset=UTF-­‐8"  /> HTML5 <meta  charset="UTF-­‐8">
  • 14. SCRIPT TAG XHTML 1.0 <script  type="text/javascript"  src="file.js"></script> HTML5 <script  src="file.js"></script>
  • 15. LINK TAG XHTML 1.0 <link  rel="stylesheet"  type="text/css"  href="file.css"  /> HTML5 <link  rel="stylesheet"  href="file.css">
  • 16. SYNTAX XHTML 1.0 <br  /> – XML Syntax – Tags lowercase HTML5 <br> oder <BR> oder <br  /> … – uppercase – lowercase – quoted – unquoted – …
  • 17. BLOCK LINKS XHTML 1.0 <h2><a  href="/product">Title</a></h2> <p><a  href="/product">Check  it  out!</a></p> HTML5 <a  href="/product">    <h2>Title</h2>    <p>Check  it  out!</p> </a>
  • 18. BITTE NICHT! – obsolete (depricated) elements + attributes frame, frameset, noframe acronym font, big, center, strike bgcolor, cellspacing, cellpadding, valign  …
  • 19. WAS NOCH? RICH MEDIA canvas, audio, video WEBFORMS 2.0 <input  id="age"  type="text"  placeholder="Ihr  Alter"  »   required> <input  id="tel"  type="tel"> <input  id="email"  type="email"> <input  id="url"  type="url">
  • 20.
  • 21. section         header hgroup           footer SEMANTIK aside             nav article         …
  • 22.
  • 28. article macht glücklich! Publiziert am 2. Oktober, 2010 von Genc Rashiti Jemand musste Josef K. verleumdet haben, denn ohne dass er etwas Böses getan hätte, wurde er eines Morgens verhaftet. «Wie ein Hund!» sagte er, es war, als sollte die Scham ihn überleben. Als Gregor Samsa eines Morgens aus unruhigen Träumen erwachte, fand er sich in seinem Bett zu einem ungeheueren Ungeziefer verwandelt. Und es war ihnen wie eine Bestätigung ihrer neuen Träume und guten Absichten, als am Ziele ihrer Fahrt die Tochter als erste sich erhob und ihren jungen Körper dehnte. «Es ist ein eigentümlicher Apparat», sagte der Offizier zu dem Forschungsreisenden und überblickte mit einem gewissermaßen bewundernden Blick den ihm doch wohlbekannten Apparat. Sie hätten noch ins Boot springen können, aber der Reisende hob ein schweres, geknotetes Tau vom Boden, drohte ihnen damit und hielt sie dadurch von dem Sprunge ab. In den letzten Jahrzehnten ist das Interesse an Hungerkünstlern sehr zurückgegangen. Aber sie überwanden sich, umdrängten den Käfig und wollten sich gar nicht fortrühren. Jemand musste Josef K. verleumdet haben, denn ohne dass er etwas Böses getan hätte, wurde er eines Morgens verhaftet.
  • 29. <article>    <header>        <h1>article  macht  glücklich<h1>    </header>    <h2>Jemand  musste  Josef…</h2>    <p>Als  Gregor  Samsa  eines  Morgens…</p>    <footer>        <p>Publiziert  am  <time  datetime="2010-­‐10-­‐2T15:03"  pubdate>2.Oktober   2010</time>  von  Genc  Rashiti</p>    </footer> </article> ARTICLE
  • 33. CSS3 MODULE Advanced layout / Aural Style Sheets / Backgrounds and Borders / Basic User Interfaces / Box Model / Cascading and Inheritance / Color / Fonts / Generated Content for Paged Media / Generated and Replaced Content / Hyperlink Presentation / Line Layout / Lists / Maths / Multi Column Layout / Namespaces / Object Model / Paged Media / Positioning / Presentation Levels / Reader Media Types / Ruby / Scoping / Speech / Syntax / Tables / Text / Text Layout / Values and Units / Web Fonts
  • 34. ::selection  {      background:  #d30820; }  /*  selektierter  Text  erhält  roten  Hintergrund  */ #menu  a:after  {      content:"»"; }  /*  fügt  ein  »  Symbol  ein  */ li:last-­‐child  {      border-­‐bottom:  none; }  /*  letztes  Listenelement  erhält  die  Farbe  #eee  */ COOLE SELEKTOREN
  • 35. RESULTAT fresh link » – Liste – Liste – Liste – Liste :after::selection :last-­‐child
  • 36. .box_rgba  {      background-­‐color:  #000;      background-­‐color:  rgba(0,  0,  0,  .6);      /*  FF3+,  Saf3+,  Opera  10.10+,  Chrome,  IE9  */          filter:  progid:DXImageTransform.Microsoft.gradient  »   (startColorStr='#99000000',EndColorStr='#99000000');      /*  IE6,  IE7  */      -­‐ms-­‐filter:  "progid:DXImageTransform.Microsoft.gradient  »   (startColorStr='#99000000',EndColorStr='#99000000')";      /*  IE8  */   } TRANSPARENTER HINTERGRUND
  • 37. .box_rgba  {      background-­‐color:  #000;      background-­‐color:  rgba(0,  0,  0,  .6);      /*  FF3+,  Saf3+,  Opera  10.10+,  Chrome,  IE9  */          filter:  progid:DXImageTransform.Microsoft.gradient  »   (startColorStr='#99000000',EndColorStr='#99000000');      /*  IE6,  IE7  */      -­‐ms-­‐filter:  "progid:DXImageTransform.Microsoft.gradient  »   (startColorStr='#99000000',EndColorStr='#99000000')";      /*  IE8  */   } TRANSPARENTER HINTERGRUND
  • 39. .box_gradient  {      background-­‐color:  #444;    background-­‐image:  -­‐moz-­‐linear-­‐gradient(top,  #444444,  #999999)    /*  FF3.6  */      background-­‐image:  -­‐webkit-­‐gradient(linear,  left  top,  left  bottom,  » color-­‐stop(0,  #444444),color-­‐stop(1,  #999999));      /*  Saf4+,  Chrome  */    filter:  progid:DXImageTransform.Microsoft.gradient  »   (startColorStr='#444444',  EndColorStr='#999999');      /*  IE6,IE7  */      -­‐ms-­‐filter:  "progid:DXImageTransform.Microsoft.gradient  »   (startColorStr='#444444',  EndColorStr='#999999')";      /*  IE8  */ } VERLAUF
  • 40. .box_gradient  {      background-­‐color:  #444444;    background-­‐image:  -­‐moz-­‐linear-­‐gradient(top,  #444444,  #999999)    /*  FF3.6  */      background-­‐image:  -­‐webkit-­‐gradient(linear,  left  top,  left  bottom,  » color-­‐stop(0,  #444444),color-­‐stop(1,  #999999));      /*  Saf4+,  Chrome  */    filter:  progid:DXImageTransform.Microsoft.gradient  »   (startColorStr='#444444',  EndColorStr='#999999');      /*  IE6,IE7  */      -­‐ms-­‐filter:  "progid:DXImageTransform.Microsoft.gradient  »   (startColorStr='#444444',  EndColorStr='#999999')";      /*  IE8  */ } VERLAUF
  • 42. .box_shadow  {      -­‐moz-­‐box-­‐shadow:  0px  0px  4px  rgba(0,0,0,.6);      /*  FF3.5+  */      -­‐webkit-­‐box-­‐shadow:  0px  0px  4px  rgba(0,0,0,.6);      /*  Saf3.0+,  Chrome  */      box-­‐shadow:  0px  0px  4px  rgba(0,0,0.6);      /*  Opera  10.5,  IE  9  */   } SCHATTENWURF
  • 44. .box_round  {      -­‐moz-­‐border-­‐radius:  3px;      /*  FF1+  */      -­‐webkit-­‐border-­‐radius:  3px;      /*  Saf3-­‐4  */      border-­‐radius:  3px;      /*  Opera  10.5,  IE  9,  Saf5,  Chrome  */   } ABGERUNDETE ECKEN
  • 46. .box_textshadow  {      text-­‐shadow:  0px  1px  1px  rgba(255,255,255,.5);      /*  FF3.5+,  Opera  9+,  Saf1+,  Chrome  */   } TEXT SCHATTEN
  • 49. @font-­‐face  {      font-­‐family:  'WebFont';  src:  url('DroidSans.eot');  /*  IE6-­‐8  */          src:  local('☺'),      url('DroidSans.woff')  format('woff'),  /*  FF3.6,  IE9  */    url('DroidSans.ttf')  format('truetype');      /*  Saf3+,Chrome,  FF3.5,  Opera10+  */ } button  {    font-­‐family:  "WebFont"; } WEB FONTS
  • 51. .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  */        transform:  rotate(7.5deg);          filter:  progid:DXImageTransform.Microsoft.Matrix  » (sizingMethod='auto  expand',  M11=0.9914448613738104,  » M12=-­‐0.13052619222005157,M21=0.13052619222005157,  »   M22=0.9914448613738104);    /*  IE6,  IE7  */      -­‐ms-­‐filter:  "progid:DXImageTransform.Microsoft.Matrix  » (M11=0.9914448613738104,  M12=-­‐0.13052619222005157,  » M21=0.13052619222005157,  M22=0.9914448613738104,  » sizingMethod='auto  expand')";      /*  IE8  */   zoom:  1;   } ROTATION
  • 52. .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  */        transform:  rotate(7.5deg);          filter:  progid:DXImageTransform.Microsoft.Matrix  » (sizingMethod='auto  expand',  M11=0.9914448613738104,  » M12=-­‐0.13052619222005157,M21=0.13052619222005157,  »   M22=0.9914448613738104);    /*  IE6,  IE7  */      -­‐ms-­‐filter:  "progid:DXImageTransform.Microsoft.Matrix  » (M11=0.9914448613738104,  M12=-­‐0.13052619222005157,  » M21=0.13052619222005157,  M22=0.9914448613738104,  » sizingMethod='auto  expand')";      /*  IE8  */   zoom:  1;   } ROTATION