Bonjour à tous,
Je voudrais tout reprendre de A à Z la création d'un site.
Je dois avouer que la dernière fois où je l'ai fait date de 1998.
Un fleuve a bien coulé sur le pont... mais mon canot est dégonflé !
Bref, j'ai créé "index.html" dans lequel je fais des includes pour le header, pour le footer, pour le menu-g.
Le prb est que ça ne marche pas, je n'arrive qu'à afficher le html (index).
Je mets les codes si ça peut vous servir afin que vous m'apportiez votre aide.
Merci d'avance.
index.html
header.php
Code html : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27 <!DOCTYPE html> <html lang="fr"> <head> <meta name="Author" content=""> <meta charset="utf-8"> <title></title> </head> <body> <?php include("entete.php"); ?> <?php include("menu-g.php"); ?> <div id="main"> <h1>Mon super site</h1> <p> Essais de site<br /> C'est pas évident ! </p> </div> <?php include("pied_de_page.php"); ?> </body> </html>
menu-g.php
Code html : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 <!DOCTYPE html> <html lang="fr"> <head> <meta charset="utf-8"> <title></title> </head> <body> <table border=1> <tr> <td> rrrrrrrrrrrrrrrrrrrrrrrrrrrrrr </td> </tr> </table> </body> </html>
footer.php
Code html : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 <!DOCTYPE html> <html lang="fr"> <head> <meta charset="utf-8"> <title></title> </head> <div class="dropdown"> button class="dropbtn">Réseaux sociaux</button> <div class="dropdown-content"> <a href="https://www.facebook.com">Facebook</a> <a href="https://www.instagram.com">Instagram</a> <a href="https://www.snapchat.com">Snapchat</a> </div> </div> </body> </html>
Code html : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 <!DOCTYPE html> <html lang="fr"> <head> <meta charset="utf-8"> <title></title> </head> <body> <table border=1> <tr> <td> Copyright </td> </tr> </table> </body> </html>
En fait, je voudrais que ça ressemble à ça !
Merci d'avance de votre aide.
PS ! j'ai vu sur des sites dans la barre d'adresse, par exemple "http://www.exemple.fr/test1/t2=145"... ou un truc comme ça ! C'est bien ou c'est pas bien ?
Partager