# Tablas

Bootstrap también define una serie de clases para aplicar estilos sobre las tablas de HTML. La más básica es la clase `.table`:

```markup
<table class="table">
  ...
</table>
```

![Ejemplo de tabla](/files/-LwrBOkC1rFrunqmKonr)

**Colores alternos**

Si además aplicamos la clase `.table-striped` a nuestra tabla conseguiremos que las filas presenten colores alternos:

```markup
<table class="table table-striped">
  ...
</table>
```

![Ejemplo de tabla](/files/-LwrBOkE9a79JHrBCZlm)

**Tablas con bordes**

También podemos dibujar un borde al rededor de la tabla añadiendo la clase `.table-bordered`, de la forma:

```markup
<table class="table table-bordered">
  ...
</table>
```

![Ejemplo de tabla](/files/-LwrBOkGNGy29znYHwhj)

**Tablas&#x20;*****Responsive***

Bootstrap proporciona una forma de crear tablas *responsive* que se basa en crear un *scroll* horizontal para que se vean correctamente. Para que esto funcione tenemos que crear una caja contenedora a nuestra tabla con la clase `.table-responsive`:

```markup
<div class="table-responsive">
  <table class="table">
    ...
  </table>
</div>
```

![Ejemplo de tabla responsive](/files/-LwrBOkIvXBUKiSO9YG-)

> *Nota*: este efecto se aplicará únicamente sobre dispositivos pequeños (`<768px`) mientras que en el resto de dispositivos no se notará la diferencia.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ajgallego.gitbook.io/bootstrap-3/capitulo_componentes/capitulo_componentes_tablas.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
