<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ejercici 1</title>
<link rel="stylesheet" href="ejercicio1.css">
</head>
<body>
<ul class="lista-ingredientes">
<li class="items">6 huevos</li>
<li class="items">200 grs de tocino</li>
<li class="items">1/2 pimentón</li>
<li class="items">1 tomate</li>
<li class="items">1 cuchara de aceite</li>
<li class="items">150 grs de queso muzzarella</li>
<li class="items">Sal a gusto</li>
</ul>
</body>
</html>
Css
.items:first-child{font-style: italic}
.items:nth-child(4){font-weight: bold}
.items:last-child{font-style: italic}
/*
.items:child-first{font-style: italic}
.items:child-nth(4){font-weight: bold}
.items:child-last{font-style: italic}
.items:child-first{font-weight: bold}
.items:child-nth(4){font-style: italic}
.items:child-last{font-weight: bold}
/*
Ejercicio: 04 Explorando las pseudo-clases