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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Axel Bouaziz
March 12, 2013
Programming
62
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
HTML / CSS part 2
Formation faite le 12 mars 2013 en collaboration avec Leeaarn.
Axel Bouaziz
March 12, 2013
More Decks by Axel Bouaziz
See All by Axel Bouaziz
HTML / CSS part 1
axelbouaziz
1
150
Formation HTML / CSS
axelbouaziz
0
190
Other Decks in Programming
See All in Programming
エンジニア向け会社紹介/Findy Company Profile
findyinc
6
350k
ECSアプリログをFireLensでコスト削減しようとしたけど諦めた話 in Fargate×Node.js
akihisaikeda
2
4.2k
Dataformのリポジトリを立ち上げるときにまずやること / dataform-day0-2026
snhryt
0
180
スマートグラスで並列バイブコーディング
hyshu
0
250
Observability in Practice:Grafana 與 Edge Device SRE 的那些事
blueswen
0
170
LLM本来の能力を解き放つサンドボックス技術とAI民主化への適用
yukukotani
3
4.5k
TSKaigi Night Talks 2026_TypeScriptでサプライチェーンの整合性を型に閉じ込める
geekplus_tech
0
400
「AIで開発し、AIを届ける」をEvalでつなぐ 〜AIネイティブに始めるプロダクト開発の実践〜 / Connecting "Develop with AI, deliver AI" with Eval
rkaga
4
5.3k
セキュリティの専門家じゃなくてもできる。「セキュリティ意識」をアップデートして サプライチェーン攻撃への耐性を高めよう。
tk3fftk
5
900
正しくソフトウェアを作る、前提を疑うための認知の視点 / doubt-premise
minodriven
21
6.9k
AI駆動開発を妨げる技術的負債の解消アプローチ / ai-refactoring-approach
minodriven
3
270
TAKTでAI駆動開発の品質を設計する
j5ik2o
7
1.5k
Featured
See All Featured
Unsuck your backbone
ammeep
672
58k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
470
Building AI with AI
inesmontani
PRO
1
1.1k
Large-scale JavaScript Application Architecture
addyosmani
515
110k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
250
Evolving SEO for Evolving Search Engines
ryanjones
0
220
[SF Ruby Conf 2025] Rails X
palkan
2
1.1k
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
160
Designing for Timeless Needs
cassininazir
1
260
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
2
580
Accessibility Awareness
sabderemane
1
140
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
950
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 ?