` with the class `.fp-captions`.
* An internal `
` with the class `.fp-cue`.
* The html from the `VTTCue` which is dependent on the browser's implementation of [`getCueAsHTML()`](https://w3c.github.io/webvtt/#dom-vttcue-getcueashtml).
This is a raw HTML example:
```html
Todo mundo quer mais da vida ..
Esta é uma segunda linha
E um terceiro
```
With player versions before version 3.10.0, you must style the subtitles with custom CSS:
```css
/* make the subtitles bigger, fonts full black on a white background */
.fp-captions .fp-cue {font-size: 2em; color: black; background-color: white;}
```
## Listen to plugin events
This section describes the events you can capture to control and manage subtitles within your player instance. To understand event handling differences between CDN or npm implementations, see [Plugin events](/docs/wowza-flowplayer/plugins/about-plugins/#plugin-events).
| CDN event | npm event | Description |
| --- | --- | --- |
| `flowplayer.subtitles.events.TRACK_UPDATED` | `Subtitles.events.TRACK_UPDATED` | Emitted when a different track is selected from the menu and loaded by the player. Returns the `textTrack` which was selected. Empty if subtitles are disabled in the menu. Introduced with v3.4.1 of the player. |
info
There are two additional events that are bound to the subtitles menu web component and emitted when new text tracks are added to the menu or selected. For more, see [Web components subtitle events](/docs/wowza-flowplayer/player/web-components/component-events#subtitles-menu).
#### Example
The following example uses the `TRACK_UPDATED` event to capture when a different subtitle track is selected from the captions menu. It outputs the value of the selected track in the console.
```js
player.on(flowplayer.subtitles.events.TRACK_UPDATED, (event) => {
console.log("Track updated to", event.detail.id)
});
```
```js
player.on(Subtitles.events.TRACK_UPDATED, (event) => {
console.log("Track updated to", event.detail.id)
});
```
## More resources
Below is a list of useful resources to learn about, create, convert, and manage WebVTT subtitles.
embed