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 part 2
Search
Axel Bouaziz
March 12, 2013
Programming
0
57
HTML / CSS part 2
Formation faite le 12 mars 2013 en collaboration avec Leeaarn.
Axel Bouaziz
March 12, 2013
Tweet
Share
More Decks by Axel Bouaziz
See All by Axel Bouaziz
HTML / CSS part 1
axelbouaziz
1
140
Formation HTML / CSS
axelbouaziz
0
180
Other Decks in Programming
See All in Programming
複雑なフォームに立ち向かう Next.js の技術選定
macchiitaka
3
840
Web技術を最大限活用してRAW画像を現像する / Developing RAW Images on the Web
ssssota
1
180
麻雀点数計算問題生成タスクから学ぶ Single Agentの限界と Agentic Workflowの底力
po3rin
3
700
時間軸から考えるTerraformを使う理由と留意点
fufuhu
16
4.8k
ぬるぬる動かせ! Riveでアニメーション実装🐾
kno3a87
1
250
Android StudioのAIコーディングツール、 ぶっちゃけどうなん???
mkeeda
0
140
Navigation 2 を 3 に移行する(予定)ためにやったこと
yokomii
0
380
Tool Catalog Agent for Bedrock AgentCore Gateway
licux
7
2.6k
概念モデル→論理モデルで気をつけていること
sunnyone
3
320
Server Less Code More - コードを書かない時代に生きるサーバーレスデザイン / server-less-code-more
gawa
4
610
Swift Updates - Learn Languages 2025
koher
2
530
パフォーマンスチューニングで Web 技術を深掘り直す
progfay
5
1.5k
Featured
See All Featured
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
36
2.5k
Designing for humans not robots
tammielis
253
25k
Facilitating Awesome Meetings
lara
55
6.5k
For a Future-Friendly Web
brad_frost
180
9.9k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
30
9.7k
Navigating Team Friction
lara
189
15k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
29
1.9k
How to train your dragon (web standard)
notwaldorf
96
6.2k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Building Better People: How to give real-time feedback that sticks.
wjessup
368
19k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
127
53k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.9k
Transcript
Axel Bouaziz en collaboration avec Leeaarn @axelbouaziz @leeaarn LES BASES
DE LA PROGRAMMATION WEB HTML - PARTIE 2
Différence entre contenu statique et dynamique Qu'est ce que le
HTML ? Différenciation HTML / CSS Construction d'une page web Choisir son éditeur de code Sa première page web Balises et relations parent-enfant Insérer du texte Insérer un lien Insérer une image PROGRAMME PARTIE 1
Insérer une liste Balises et relations parent-enfant Structurer / organiser
son code Encadrer les balises Finaliser le code HTML Comment utiliser mon fichier (FTP / ...) Intêret grandissant du CSS PROGRAMME PARTIE 2
INSÉRER UNE LISTE
Liste non ordonnée Liste ordonnée <ul> <li>Un élément</li> <li>Un autre
élément</li> </ul> <ol> <li>Element 1</li> <li>Element 2</li> </ol>
BALISES ET RELATIONS PARENT-ENFANT
Deux types de balises Parent-enfant <head> </head> <img src="images/mon_image.jpeg" />
<html> <head> </head> <body> </body> </html>
STRUCTURER / ORGANISER SON CODE
Beaucoup de code très difficile de s'y retrouver Nécessité d'encadrer
le contenu header d'un côté, footer de l'autre...etc Propreté du code soyez intraitables !
Apparition des div Qu'est ce que c'est ? A quoi
ça sert ? Comment ça marche ? Ce qui est une div et ce qui n'en est pas ?
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html"; charset="utf-8" /> </head>
<body> <!-- header --> <div> </div> <!-- content --> <div> </div> <!-- sidebar --> <div> </div> <!-- footer --> <div> </div> </body> </html>
ENCADRER LES BALISES
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html"; charset="utf-8" /> </head>
<body> <!-- header --> <div> </div> <!-- content --> <div> </div> <!-- sidebar --> <div> </div> <!-- footer --> <div> </div> </body> </html>
Différencier les balises on leur donne un nom spécifique avec
une class ou un id On se sert de leur nom pour les styliser et leur donner une apparence spécifique
Header <div id="header"> ou <div class="header"> Content <div id="content"> ou
<div class="content"> Sidebar <div id="sidebar"> ou <div class="sidebar"> Footer <div id="footer"> ou <div class="footer"> A LA BASE (HTML 4)
Header <header> Content <section> Sidebar <aside> Footer <footer> MAINTENANT (HTML
5)
Menu de navigation se nomme <nav> Partie du content se
nomme <article> MAINTENANT (HTML 5)
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html"; charset="utf-8" /> </head>
<body> <header> <!-- j'insère ici mon menu, mon logo... --> </header> <section> <!-- j'insère ici mon contenu central : article, image... --> </section> <aside> <!-- j'insère ici ma sidebar : liens vers les réseaux sociaux, articles récents... --> </aside> <footer> <!-- j'insère ici mon pied de page --> </footer> </body> </html>
FINALISER LE CODE HTML
Vérifier que tous les liens fonctionnent changer les "#" en
"/url" Fermer toutes les balises en profiter pour retravailler l'indentation si besoin Insérer un / des commentaire(s) si vous trouvez cela approprié
COMMENT UTILISER MON FICHIER
Pour un CMS déjà en production automatiquement mis à jour
+ vider votre cache Pour mettre mon fichier "en ligne" hébergement + FTP
INTÊRET GRANDISSANT DU CSS
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html"; charset="utf-8" /> </head>
<body> <header> <div id="logo></div> <nav></nav> </header> <section> <article></article> </section> <aside> </aside> <footer> </footer> </body> </html>
J'ai besoin de points de repère pour styliser mon code
HTML id VS class deux indicateurs essentiels réutilisés dans le code CSS
MERCI QUESTIONS ?