- Executores
-
Aprender
Aprender Python Exemplos executáveis, NumPy, pandas e mais Aprender IA / Machine LearningRedes neurais, ML e LLMs do zero Aprender C e C++ Ponteiros, memória, STL e C++ moderno Aprender C#Fundamentos, POO, LINQ, async e exercícios .NET Aprender MatplotlibGráficos de linha, barras, dispersão e pizza com visualizadores Aprender RustOwnership, traits, tratamento de erros e threads Aprender GoSlices, interfaces, goroutines e channels Algoritmos em Python Busca, ordenação, recursão e visualizações O(n) Algoritmos em C e C++ Compare implementações em C e C++ Programação para crianças Aprenda a programar brincando!
- QuizzesNovo
- DesafiosNovo
- Para professoresNovo
- Atualizações
- Me pague um 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.
Pergunta de exemplo
Pergunta 1 de 10Which paragraphs turn red?
<style>
p:first-child { color: red; }
</style>
<div>
<h2>Title</h2>
<p>One</p>
<p>Two</p>
</div>
Mostrar a resposta
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".
O que este quiz cobre
: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
Perguntas frequentes
Preciso de uma conta?
Não. Qualquer pessoa pode jogar. Entre para guardar seu XP, sequência, badges e histórico.
Posso refazer?
Pode. Sua melhor nota fica salva, e as perguntas e respostas são embaralhadas a cada vez.