L. Adivina

Salida

Ábrelo en otra pestaña.

Revísalo en gilpgedit.

1<!DOCTYPE html>
2<html lang="es">
3
4<head>
5 <meta charset="UTF-8">
6 <meta name="viewport"
7 content="width=device-width">
8 <title>Adivina</title>
9 <style>
10 html {
11 font-family: sans-serif;
12 text-align: center;
13 }
14
15 img {
16 max-height: 40vh;
17 max-width: 100%;
18 }
19 </style>
20</head>
21
22<body>
23 <h1>Adivina</h1>
24 <figure>
25 <img src="https://media.giphy.com/media/JKNn9A98JBVlu/giphy.gif"
26 alt="Imagen de un animal">
27 <figcaption>
28 ¿Qúe animal es este?
29 </figcaption>
30 </figure>
31 <p>
32 <button onclick="rana()">
33 Una Rana
34 </button>
35 <button onclick="oso()">
36 Un Oso
37 </button>
38 </p>
39 <script>
40 function rana() {
41 alert(
42 "Claro que no es una rana.")
43 }
44
45 function oso() {
46 alert("Claro que si es un oso.")
47 }
48 </script>
49</body>
50
51</html>
skip_previous skip_next