CSS

Cascade Style Sheets

Sintaxis CSS

h1{ 
    background-color:red;
    align:center; 
  }

Ejemplo

Invocar archivos CSS desde el HTML

<!DOCTYPE html>
<html>
<head>
	<title>ejemplo para css</title>
	<link rel="stylesheet" href="prueba.css">
</head>
<body>
	<p>
	    curso frontend dia 5
	</p>

</body>
</html>
p{
	color: red;
        font-family: arial;
        align: center
}

Prueba.html

Prueba.css

Empezando con los estilos

Color

  • RGB
  • Hexadecimal
  • Por nombre

http://html-color-codes.info/codigos-de-colores-hexadecimales/

Background

  • background-color
  • background-image
  • background-repeat
  • background-attachment
  • background-position

deck

By gdg_unam_aragon