--- id: 587d7fa7367417b2b2512bc6 title: Add Inline Styling to Elements required: - src: 'https://cdnjs.cloudflare.com/ajax/libs/d3/4.3.0/d3.min.js' challengeType: 6 videoUrl: '' localeTitle: Añadir estilo en línea a los elementos --- ## Description
D3 le permite agregar estilos CSS en línea en elementos dinámicos con el método style() . El método style() toma un par clave-valor separado por comas como argumento. Aquí hay un ejemplo para establecer el color del texto de la selección en azul: selection.style("color","blue");
## Instructions
Agregue el método style() al código en el editor para hacer que todo el texto mostrado tenga una font-family de verdana .
## Tests
```yml tests: - text: Tus elementos h2 deben tener una font-family de verdana. testString: 'assert($("h2").css("font-family") == "verdana", "Your h2 elements should have a font-family of verdana.");' - text: Su código debe utilizar el método style() . testString: 'assert(code.match(/\.style/g), "Your code should use the style() method.");' ```
## Challenge Seed
```html ```
## Solution
```js // solution required ```