Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
HTML & CSS
Search
Letícia Figueira
June 01, 2014
Design
2
67
HTML & CSS
A small talk I gave to introduce Real Seguro Viagem marketing folks into web pages.
Letícia Figueira
June 01, 2014
Tweet
Share
More Decks by Letícia Figueira
See All by Letícia Figueira
Empreender, Inspirar e Engajar com Tecnologia
leticia
0
39
Rails Girls Montevideo
leticia
0
84
Ruby: passado, presente e além da Web
leticia
0
50
Other Decks in Design
See All in Design
Portfolio 齋藤明敏 Hiroyuki Saito_守秘義務あり
crearedesign
0
290
Cyber Heart Online Book
hjnasby
0
180
harutaka Vision Deck
zenkigenforrecruit
0
220
UXデザインはなぜ定着しないのか?
designstudiopartners
0
960
オルタナUX | AIで高速化するのもいいけど品質も大事なんじゃない?というお話
iflection
6
2.3k
portfolio.pdf
onof003
0
160
AI時代に、僕たちデザイナーはどう歩むか
kazuhirokimura
0
370
組織で取り組むアクセシビリティのはじめ方
masakiohsumi
0
180
CMS管理画面のアクセシビリティ
magi1125
8
2.5k
AIで加速するアクセシビリティのこれから
magi1125
4
670
児童相談所における養育里親委託時の親権者同意に向けたコミュニケーションの実態
trivia
0
540
ビジネス成果を最大限に発揮するPORTFOLIO
ataxi1003
0
540
Featured
See All Featured
What's in a price? How to price your products and services
michaelherold
246
12k
Practical Orchestrator
shlominoach
190
11k
Keith and Marios Guide to Fast Websites
keithpitt
411
22k
Faster Mobile Websites
deanohume
309
31k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.1k
The Cult of Friendly URLs
andyhume
79
6.6k
Designing for Performance
lara
610
69k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
34
3.1k
RailsConf 2023
tenderlove
30
1.2k
What’s in a name? Adding method to the madness
productmarketing
PRO
23
3.7k
Gamification - CAS2011
davidbonilla
81
5.4k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
126
53k
Transcript
HTML & CSS That is so nifty!
O QUE É UMA WEB PAGE? Documento para a web
Escrito em linguagem de marcação (HTML) Estilizado com CSS
O QUE É UMA WEB PAGE? HTML CSS ESTRUTURA APRESENTAÇÃO
COMPORTAMENTO, MAS PULA ESSA!) (JS
HTML
HTML STYLE HEAD META TITLE LINK SCRIPT BODY IMG DIV
H2 P ESTRUTURA DE TAGS
TAGS ✓ TAGS COM CONTEÚDO ! ✓ TAGS AUTO- DESCRITIVAS
<html> <head> <title>Hello, world!</title> </head> <body> <h1 class=“big-title”>Welcome!</h1> <div id=“main”>
<p>This is a paragraph.</p> <a href=“http://site.com”>Link</a> </div> </body> </html> TAGS
ELEMENTOS <html> <head> <title>Hello, world!</title> </head> <body> <h1 class=“big-title”>Welcome!</h1> <div
id=“main”> <p>This is a paragraph.</p> <a href=“http://site.com”>Link</a> </div> </body> </html>
ATRIBUTOS <html> <head> <title>Hello, world!</title> </head> <body> <h1 class=“big-title”>Welcome!</h1> <div
id=“main”> <p>This is a paragraph.</p> <a href=“http://site.com”>Link</a> </div> </body> </html>
<html> <head> <title>Hello, world!</title> </head> <body> <h1 class=“big-title”>Welcome!</h1> <div id=“main”>
<p>This is a paragraph.</p> <a href=“http://site.com”>Link</a> </div> </body> </html> IDS & CLASSES div#main h1.big-title
<html> <head> <title>An Image Tag</title> </head> <body> <img src=“http://site.com/image.png” />
</body> </html> Descrição e atributos: mais curto TAGS AUTO-DESCRITIVAS
BLOCK & INLINE Elementos de bloco ! header section h1..h6
form div footer aside p ul, ol, li article table dt, dl, dd Elementos inline ! span strong img input a em br abbr
WEB BROWSERS SABEM HTML…
… MAS ELES TÊM SOTAQUE! != != != !=
DOCTYPE <!DOCTYPE HTML> //HTML 5 ! <!DOCTYPE HTML PUBLIC "-//W3C//DTD
HTML 4.01//EN" “http://www.w3.org/TR/html4/strict.dtd"> //HTML 4 Vai antes da tag <html>
NA Atributos IDS e classes Tags auto-descritivas É ASSIM…
CSS
Cascading StyleSheets font color image border alignment text images videos
links ESTILO CONTEÚDO
ESTRUTURA DO CSS p { color: red; } Seletor Declaração
Valor Propriedade
SELETORES ✓div: ELEMENTO ! ✓#main: ID ! ✓.repeating-element: CLASSE
SELECIONAR ELEMENTO body { background-color: white; } ! p {
font-size: 14px; font-color: blue; text-align: right; } Parágrafo com texto azul
SELECIONAR IDS #main { width: 50%; float: left; } Ocupa
metade da largura disponível e fica à esquerda
SELECIONAR CLASSES .last-element { margin-right: 0; } Não apresenta margem
à direita
TUDO JUNTO… a.menu-link { text-decoration: none; &:hover { text-decoration: underline;
} } Mostra link sublinhado ao passar o mouse Atalho para o seletor
NA É ASSIM… Seletor de elemento Seletor de classe Propriedades
e valores
SHOW ME WHAT WE CAN DO!
< /THANKS >