HTML  e  CSS	
Daniela Carvalho
danicarvalho@gmail.com
www.cibercultural.com
CSS	
http://www.maujor.com/tutorial/intrtut.php
Sintaxe	
p { font-family: Arial, Helvetica, sans-serif;
font-size: 1em;
}
seletor
declaração
propriedade
valor
Sintaxe	
p { font-family: Arial, Helvetica, sans-serif;
font-size: 1em;
}
seletor
declaração
propriedade
valor
Sintaxe	
p { font-family: Arial, Helvetica, sans-serif;
font-size: 1em;
}
seletor
declaração
propriedade
valor
Sintaxe	
seletor
declaração
propriedade
valor
p { font-family: Arial, Helvetica, sans-serif;
font-size: 1em;
}
Exemplo	
div #conteudo { font-family: Arial, Helvetica, sans-serif;}
div#conteudo { font-family: Arial, Helvetica, sans-serif;}
Tipos  de  Seletores	
•  Globais: p, h1, a, div
•  Classes: .coluna
•  Id: #topo
Funcionamento	
•  Arquivo
o  Ex: principal.css
•  Na página
o  Ex:
<head>
<style>
p {font-family: Arial, Helvetica, sans-serif;}
</style>
</head>
•  Na linha
o  Ex:
<p style=“font-family:Arial,Helvetica,sans-serif;”> Texto de parágrafo </p>
Render
Telas
Suporte	
http://caniuse.com/#cats=CSS
Importância	
Seletor	
 ID	
 Classes	
 Elementos	
 Especificidade	
body	
 0	
 0	
 1	
 1	
#mainContent	
 1	
 0	
 0	
 100	
quote	
 0	
 1	
 0	
 10	
div  p	
 0	
 0	
 2	
 2	
#sidebar  p	
 1	
 0	
 1	
 101
Modelo	
http://colecaoaprender.blogspot.com.br/
Wireframe	
Topo	
Navegação	
Lateral	
 Conteúdo	
Rodapé
<html>
<head>…<head>
<body>
<div id=“topo”></div>
<div id=“navegacao”></div>
<div id=“conteudo”></div>
<div id=“lateral”></div>
<div id=“rodape”></div>
</body>
</html>
<html>
<head>…<head>
<body>
<header></header>
<nav></nav>
<article></article>
<aside></aside>
<footer></footer>
</body>
</html>
Lembrete
Media  Types	
•  all
•  braille
•  embossed
•  handheld
•  print
•  projection
•  screen
•  speech
•  tty
•  tv
Media  Types	
link rel=“”stylesheet” href=“desktop.css” media=“[not |
only ] screen [and] (expressão)”
link rel=“stylesheet” href=“desktop.css” media=“only
screen and (min-width:0px) and (max-width:480px)”
hNp://www.sonora.iar.unicamp.br/index.php/sonora1/article/view/28
CSS  3	
http://css3generator.com/
Grid  Layout
Grid  Layout	
http://colecaoaprender.blogspot.com.br/2014/08/grid-webdesign.html
Validação  W3C	
http://validator.w3.org/
Editores  Gratuitos	
1.  SublimeText (http://www.sublimetext.com/)
2.  Aptana (http://www.aptana.com/)

Sintaxe do CSS - Aprenda a estrutura das regras e suas propriedades.