--- id: bad87fee1348bd9aecf08806 title: Usar uma classe para definir o estilo de um elemento challengeType: 0 videoUrl: 'https://scrimba.com/c/c2MvDtV' forumTopicId: 18337 dashedName: use-a-css-class-to-style-an-element --- # --description-- As classes são declarações de estilos que podem ser reutilizadas em elementos HTML. Aqui está um exemplo de como criar uma classe CSS: ```html ``` Você pode ver que criamos uma classe CSS chamada `blue-text` dentro da tag `

CatPhotoApp

Click here to view more cat photos.

A cute orange cat lying on its back.

Things cats love:

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats


``` # --solutions-- ```html

CatPhotoApp

Click here to view more cat photos.

A cute orange cat lying on its back.

Things cats love:

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats


```