---
name: "SDL_HINT_EMSCRIPTEN_CANVAS_SELECTOR"
section: "3"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_HINT_EMSCRIPTEN_CANVAS_SELECTOR"
---

# SDL\_HINT\_EMSCRIPTEN\_CANVAS\_SELECTOR(3)

Specify the CSS selector used for the "default" window/canvas.

## NAME

SDL\_HINT\_EMSCRIPTEN\_CANVAS\_SELECTOR - Specify the CSS selector used for the "default" window/canvas.

## HEADER FILE

Defined in SDL3/SDL\_hints.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**#define SDL\_HINT\_EMSCRIPTEN\_CANVAS\_SELECTOR** *SDL\_EMSCRIPTEN\_CANVAS\_SELECTOR"*

## DESCRIPTION

This hint only applies to the emscripten platform.

The default value is "#canvas"

This hint should be set before creating a window.

## AVAILABILITY

This hint is available since SDL 3.2.0.
