Lock in $30 Savings on PRO—Offer Ends Soon! ⏳
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
68
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
85
Ruby: passado, presente e além da Web
leticia
0
51
Other Decks in Design
See All in Design
1年目デザイナーが実践する、チーム貢献のための2つのアプローチ
kinomidesign
0
130
mount_company_profile
mount_inc
0
3.6k
Franks Myth
gfht1
0
340
Shaolin_Showdown
solmetts
0
160
AIを身近に感じるために、デザイナー全員で一つのサービスを使ってみた
_psyc0_
0
340
Findyのプロデチームの 歩みとこれから
satty9556
0
350
一次体験を起点にしたUX改善の取り組み / Direct Experience Driven UX Improvements
bitkey
PRO
0
310
Liquid GlassとApp Intents
touyou
0
530
佐藤千晶|ポートフォリオ
chimi_chia
0
310
アイデアを加速させる!Firefly ボードで発想の幅を広げよう
connecre
1
170
【MIXI MEETUP!ー TECH & DESIGN DAYー】新たなSNS「mixi2」の “0→1”開発の舞台裏:デザイナーが語るプロダクト誕生秘話
mixi_design
PRO
0
170
AI業務アプリケーションの体験デザイン
kazuhirokimura
0
230
Featured
See All Featured
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
How STYLIGHT went responsive
nonsquared
100
5.9k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3k
How to Ace a Technical Interview
jacobian
280
24k
Build The Right Thing And Hit Your Dates
maggiecrowley
38
3k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
48
9.8k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
140
34k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
61k
Visualization
eitanlees
150
16k
Side Projects
sachag
455
43k
Building a Scalable Design System with Sketch
lauravandoore
463
34k
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 >