--- id: bad87fee1348bd9aecf08806 title: Usa una clase CSS para aplicar estilos a un elemento challengeType: 0 videoUrl: 'https://scrimba.com/c/c2MvDtV' forumTopicId: 18337 dashedName: use-a-css-class-to-style-an-element --- # --description-- Las clases son estilos reutilizables que se pueden agregar a los elementos HTML. A continuación te presentamos un ejemplo de cómo declarar una clase CSS: ```html ``` Puedes ver que hemos creado una clase CSS llamada `blue-text` dentro de la etiqueta `

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


```