# :first-child

Selects an element that is the first child of its parent.

## What does `:first-child` do?

`:first-child` picks an element only when it's the first child of its parent.

```css
.menu li:first-child { border-left: none; }
```

Level: Apprentice · [More CSS terms at this level](https://www.ask-codey.com/glossary/subjects/css/apprentice)

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/first-child
