Académique Documents
Professionnel Documents
Culture Documents
d’applications Web
CHAPITRE 1
Introduction au HTML
HTML
commencent par un signe inférieur "<" et terminent par un signe supérieur ">".
Les éléments vont nous servir à définir des objets dans notre page.
Un élément est constitué d’une paire de balises (ouvrante et fermante)
Attributs
Les balises peuvent avoir des attributs pour spécifier certaines caractéristiques de
présentation.
La syntaxe :
<balise attribut1="valeur1"
attribut2="valeur2" attribut3="valeur3"> blabla </balise>
<head>
<meta name="author" content=“Mme Melki">
<meta name="Description" content="Ce document blabla">
<meta name="Keywords" content=“HTML;CSS; JavaAScript">
<meta charset="utf-8" />
</head>
Balises de documents (3)
<head>
<style>
body{background-color:yellow;}
p {color:blue;}
</style>
</head>
Balises de documents (4)
La baise <body>
Attributs:
background="image" image de fond d’écran
text="couleur" couleur du texte
link ="couleur" couleur des liens non consultés
alink ="couleur" couleur des liens actifs
Couleur: aqua, black, fuschia, gray, green, lime, marroon, navy,
olive, purple, red, silver, teal, white, yellow
Les autres couleurs sont définie en hexa (exemple: #FF0000 =rouge)
1ère page HTML
<html>
<head>
</head>
<body>
</body>
</html>
Ajouter le titre de la page
<html>
<head>
<title>This is a page title</title>
</head>
<body>
</body>
</html>
Ajouter un titre de paragraphe
<html>
<head>
<title>This is a page title</title>
</head>
<body>
<h1>A heading On My First Webpage</h1>
</body>
</html>
Ajouter du texte
<html>
<head>
<title>This is a page title</title>
</head>
<body>
</body>
</html>
Ajouter du texte
Attributs de la balise <body>
<html>
<head>
<title>This is a page title</title>
</head>
<body style="background-color:yellow; color:"blue" >
<! My page starts here>
<h1>A heading On My First Webpage</h1>
<p>Here is some text in a paragraph</p>
<p>Here is the next paragraph</p>
</body>
</html>
Attributs de la balise <body>
Exercice
</head>
<body>
</body>
</html>
Questions?