Académique Documents
Professionnel Documents
Culture Documents
Fiche du projet 2
Inscription.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<link rel="stylesheet" type="text/css" href="style.css" />
<script src="test.js"></script>
</head>
<body>
<nav>
<ul>
<li><a href="#">Inscription </a></li>
<li><a href="#">Commande </a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
Projet 3 : CSS3 4ème SI Lycée Hamida bakir
<section>
<form
name="F"
action="validation.html"
method="POST"
onsubmit="return verif()"
>
<fieldset class="cadre">
<legend class="leg">Inscription</legend>
<label>Nom</label>
<input type="text" name="nom" class="champ" id="n" placeholder="Votre Nom "
onfocus="vider_msg()" /><br />
<label>Prénom</label>
2
Projet 3 : CSS3 4ème SI Lycée Hamida bakir
<div>
<input class="bout" type="submit" value="Valider" name="B1" />
<input class="bout" type="reset" value="Annuler" name="B2"
onclick="vider_msg() /> </div>
<span id="erreur" style="color: white"></span>
</fieldset>
</form>
</section>
<footer>
<p>copyrigth © bac 2022-2023 All rights reserved.</p>
</footer>
<!-- <script src="test.js"></script> on peut le placer ici aussi -->
</body>
</html>
validation.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Page Title</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" type="text/css" media="screen" href="style.css" />
</head>
<body>
<center><p id="text_validation" >inscription effectuée avec succée</p></center>
</body>
</html>
Fichier style.css
/*pour appliquer la même police et la même taille à toute la page
* {
font-family: Arial, Helvetica, sans-serif;
3
Projet 3 : CSS3 4ème SI Lycée Hamida bakir
font-size: 16px;
} */
nav {
height: 15%;
display: flex;
justify-content: center;
align-items: center;
background-color: white;
font-weight: bold;
font-size: 25px;
border: 15px groove greenyellow;}
ul li {
display: inline;
margin: 40px;
}
li a {
text-decoration: none;
border-radius: 5px;
}
li a:hover {
background-color: rgba(17, 205, 238, 0.712);
border: 6px solid rgb(218, 45, 45);
padding: 10px;
font-size: 1.2em;
}
body {
background-image: url("plan.png");
background-size: cover;
background-repeat: no-repeat;
}
.leg {
font-family: papyrus;
font-size: 16pt;
font-weight: bold;
color: white;
padding: 10px;
background-color: rgba(219, 223, 30);
border-radius: 50%;
4
Projet 3 : CSS3 4ème SI Lycée Hamida bakir
5
Projet 3 : CSS3 4ème SI Lycée Hamida bakir
.bout {
width: 150px;
height: 50px;
margin: 30px auto;
border-radius: 15px;
font-family: cursive;
font-size: 18pt;
}
.bout:hover {
background-color: rgb(45, 188, 231);
color: blue;
box-shadow: 10px 10px 10px rgb(186, 189, 166);
}
footer {
height: 20%;
background-color: rgba(174, 152, 99, 0.5);
background-image: linear-gradient(blue, white);
border-top: 1px solid #edf1f7;
padding-top: 5px;
display: flex;
justify-content: center;
font-family: cursive;
font-size: 18pt;
font-weight: bold;
font-style: italic;
color: rgb(19, 63, 25);
}
span {
font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
font-size: 20pt;
color: azure;
}
#text_validation {
font-family: papyrus;
font-size: 16pt;
font-weight: bold;
color: white;
padding: 10px;
6
Projet 3 : CSS3 4ème SI Lycée Hamida bakir
7
Projet 3 : CSS3 4ème SI Lycée Hamida bakir