- Ejecutores
-
Aprender
Aprender Python Ejemplos ejecutables, NumPy, pandas y más Aprender IA / Machine LearningRedes neuronales, ML y LLM desde cero Aprender C y C++ Punteros, memoria, STL y C++ moderno Aprender C#Fundamentos, POO, LINQ, async y ejercicios de .NET Aprender MatplotlibGráficos de líneas, barras, dispersión y sectores con visualizadores Aprender RustOwnership, traits, manejo de errores e hilos Aprender GoSlices, interfaces, goroutines y canales Algoritmos en Python Búsqueda, ordenación, recursión y visualizadores O(n) Algoritmos en C y C++ Compara implementaciones en C y C++ Programación para niños ¡Aprende a programar jugando!
- QuizzesNuevo
- RetosNuevo
- Para docentesNuevo
- Actualizaciones
- Invítame a un café
Quiz de HTML & CSS: Pseudo-classes & Pseudo-elements
This CSS quiz tests pseudo-classes like :first-child, :nth-child(), :not() and :where(), and pseudo-elements like ::before, ::placeholder and ::marker. You will read short snippets and decide which elements match, which rule wins and why some generated content never shows up.
Pregunta de ejemplo
Pregunta 1 de 10Which paragraphs turn red?
<style>
p:first-child { color: red; }
</style>
<div>
<h2>Title</h2>
<p>One</p>
<p>Two</p>
</div>
Ver la respuesta
C. Neither paragraph p:first-child means a p that is the first child of its parent. Here the first child is the h2, so no paragraph matches. p:first-of-type would select "One".
Qué cubre este quiz
:first-childvs:first-of-typeand:nth-child()formulas::before/::afterand thecontentproperty- Specificity of
:not(),:is()and:where() - Link and focus states:
:hover,:focus-visible - Styling parts of elements:
::placeholder,::marker
Preguntas frecuentes
¿Necesito una cuenta?
No. Cualquiera puede jugar. Inicia sesión para guardar tu XP, racha, insignias e historial.
¿Puedo repetirlo?
Sí. Se guarda tu mejor puntuación, y las preguntas y respuestas se mezclan cada vez.