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
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Axel Bouaziz
March 12, 2013
Programming
59
0
Share
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
ネイティブアプリとWebフロントエンドのAPI通信ラッパーにおける共通化の勘所
suguruooki
0
230
Codex CLI でつくる、Issue から merge までの開発フロー
amata1219
0
260
Feature Toggle は捨てやすく使おう
gennei
0
390
飯MCP
yusukebe
0
440
どんと来い、データベース信頼性エンジニアリング / Introduction to DBRE
nnaka2992
1
350
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
1.2k
Ruby and LLM Ecosystem 2nd
koic
1
1.4k
ポーリング処理廃止によるイベント駆動アーキテクチャへの移行
seitarof
3
1.3k
Tamach-sre-3_ANDPAD-shimaison93
mane12yurks38
0
220
Nuxt Server Components
wattanx
0
230
ファインチューニングせずメインコンペを解く方法
pokutuna
0
230
[PHPerKaigi 2026]PHPerKaigi2025の企画CodeGolfが最高すぎて社内で内製して半年運営して得た内製と運営の知見
ikezoemakoto
0
310
Featured
See All Featured
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
460
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Google's AI Overviews - The New Search
badams
0
950
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2k
Paper Plane
katiecoart
PRO
0
48k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4k
Designing for humans not robots
tammielis
254
26k
Why Our Code Smells
bkeepers
PRO
340
58k
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
1
2.5k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
190
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
KATA
mclloyd
PRO
35
15k
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 ?