diff --git a/index.html b/index.html new file mode 100644 index 0000000000000000000000000000000000000000..1e7c169002d55e337de02d07107484c3a708d8d0 --- /dev/null +++ b/index.html @@ -0,0 +1,24 @@ +<html lang="en"> +<head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <title>Document</title> + +</head> +<body> + <h1>Pokémon List</h1> + <ul id="pokemon-list"></ul> + <script> + const pokemons = ["Pikachu", "Bulbasaur", "Charmander", "Squirtle"]; + const taille = [2, 4,8,10,7]; + const poids = [3,3,9,10,2000]; + const listElement = document.getElementById("pokemon-list"); + + for (let i = 0; i < pokemons.length; i++) { + const li = document.createElement("li"); + li.textContent = pokemons[i] + ' ' + poids[i] + 'kg ' + taille[i] + 'm'; + listElement.appendChild(li); + }; + </script> +</body> +</html> \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391