<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width-device-width, initial-scale=1.0">
</head>
<body>
<header>
<!-- jaja comentario de html te dice nub jaja --!>
<h1>jajajaja fuiste troleado</h1>
<p>jajaja fuiste troleado por nub</p>
</header
<img src="Nub.png">
<hr>
<button id="nub">no clickees este boton</button>
<script>
// crear variable y asociarlo a su id
var nub = document.getElementById("nub")
// añadirle una función a la variable
nub.addEventListener("click", function() {
// adivina lo que hago
alert("jajaja que nub")
)};
</script>
<style>
/* Ya sin bromas lo recreo en html? */
#nub {
font-family: Times new Román, sans serif;
text-align: justify;
color: darkstainedgrey;
}
</style>
<hr>
<form>
<label for="Nub">
<input type="text" name="nub" id="nub" placeholder="Que nub">
<br><br>
<label for="nub2">
<input type="text" name="nub2" id=nub2" placeholder="que nub2">
<form>
</body>
</html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width-device-width, initial-scale=1.0">
</head>
<body>
<header>
<!-- jaja comentario de html te dice nub jaja --!>
<h1>jajajaja fuiste troleado</h1>
<p>jajaja fuiste troleado por nub</p>
</header
<img src="Nub.png">
<hr>
<button id="nub">no clickees este boton</button>
<script>
// crear variable y asociarlo a su id
var nub = document.getElementById("nub")
// añadirle una función a la variable
nub.addEventListener("click", function() {
// adivina lo que hago
alert("jajaja que nub")
)};
</script>
<style>
/* Ya sin bromas lo recreo en html? */
#nub {
font-family: Times new Román, sans serif;
text-align: justify;
color: darkstainedgrey;
}
</style>
<hr>
<form>
<label for="Nub">
<input type="text" name="nub" id="nub" placeholder="Que nub">
<br><br>
<label for="nub2">
<input type="text" name="nub2" id=nub2" placeholder="que nub2">
<form>
</body>
</html>