Skip to content

Instantly share code, notes, and snippets.

@iddar
Last active October 19, 2017 21:16
Show Gist options
  • Select an option

  • Save iddar/7a2734f0e2855fbfab1f5cda49e0f5b4 to your computer and use it in GitHub Desktop.

Select an option

Save iddar/7a2734f0e2855fbfab1f5cda49e0f5b4 to your computer and use it in GitHub Desktop.
function cambio (nombre) {
var titulo = document.getElementById('titulo')
titulo.style.color = 'green'
}
// var saludo = saludar('iddar')
// console.log(saludo)
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:300,400">  <!-- Google web font "Open Sans" -->
<link rel="stylesheet" href="font-awesome-4.7.0/css/font-awesome.min.css">                <!-- Font Awesome -->
  • Tarea dia 4
  • 1 Instalar GIT
  • 2 clone el repositorio de perezniño-backend
git clone https://github.com/Holowaychitos/pereznino-backend.git
  • 3 instalar las dependencias
npm i
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="style.css">
<title>Cosa</title>
</head>
<body>
<!-- header 1 -->
<h1 id="titulo">hola web</h1>
<button onclick="cambio()">Saludar</button>
<h1 class="nombre_clase">adios a todos</h1>
<h2>hola web</h2>
<h3>hola web</h3>
<h4>hola web</h4>
<div class="imagen_link">
<img
src="img/cute_cat_.jpg"
alt="sexy gato">
<a href="img/cute_cat_.jpg">Ver imagen tamaño completo</a>
</div>
<div class="imagen_link">
<img
src="img/cute_cat_.jpg"
alt="sexy gato">
<a href="img/cute_cat_.jpg">Ver imagen tamaño completo</a>
</div>
<div class="imagen_link">
<img
src="img/cute_cat_.jpg"
alt="sexy gato">
<a href="img/cute_cat_.jpg">Ver imagen tamaño completo</a>
</div>
<div class="imagen_link">
<img
src="img/cute_cat_.jpg"
alt="sexy gato">
<a href="img/cute_cat_.jpg">Ver imagen tamaño completo</a>
</div>
<form class="" action="mipagina.html" method="POST">
<input type="text" name="nombre" value="">
<input type="email" name="email" value="" required>
<input type="password" name="contraseña" maxlength="8" value="">
<input type="submit" name="" value="enviar">
</form>
<div>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit,
</p>
<p>
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris
nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in
</p>
<p>
reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa
qui officia deserunt mollit anim id est laborum.
</p>
</div>
<script src="app.js" charset="utf-8"></script>
</body>
</html>
h1 { color: red; }
h2 { color: blue; }
h3 { color: green; }
h4 { color: aqua; }
img { width: 180px; }
/* selector de id ( # gato) */
#titulo {
text-decoration: underline;
}
/* selector de clase ( . punto) */
.nombre_clase { color: yellow; }
form {
border: solid 1px black;
padding: 10px;
margin-top: 20px;
}
.imagen_link {
padding: 20px;
border: solid 1px black;
border-radius: 10px;
margin-right: 5px;
display: inline-block;
transition: background ease 0.3s;
}
.imagen_link:hover {
background: rgba(0, 0, 0, 0.1)
}
.imagen_link:hover img {
transform: scale(1.1);
}
.imagen_link img {
border: dashed 1px black;
display: block;
margin-bottom: 10px;
transition: transform ease 0.3s;
}
.imagen_link a {
color: red;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment