Conditions d’achèvement
4.3: Correction HTML + CSS + JS
jeu.html
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8"/>
<title>Jeu</title>
<link href="jeu.css" rel="stylesheet" />
</head>
<body>
<div id="cadre">
<img id="tux" src="https://moodle.iutv.univ-paris13.fr/img/bjs/tux.png" alt="tux"/>
</div>
<p>Score: <span id="score">---</span></p>
<script src="jeu.js"></script>
</body>
</html>
jeu.css
body
{
margin: 10px;
}
#cadre
{
width: 500px;
height: 500px;
border: 1px solid black;
}
#tux
{
position: absolute;
top: 100px;
left: 100px;
}
jeu.js
(vide)