# Element: elementTiming property



The **`elementTiming`** property of the [Element](https://developer.mozilla.org/en-US/docs/Web/API/Element) interface identifies elements for observation in the [PerformanceElementTiming](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceElementTiming) API.

The `elementTiming` property reflects the value of the [`elementtiming`](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/elementtiming) attribute.

## Value

A string.

## Examples

### Logging the value of `elementTiming`

In this example, adding the [`elementtiming`](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/elementtiming) attribute to the [img](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img) element sets the image to be observed.

```html
<img
  src="image.jpg"
  alt="a nice image"
  elementtiming="big-image"
  id="myImage" />
```

You can get the string value of the `elementtiming` HTML attribute by calling `el.elementTiming`.

```js
const el = document.getElementById("myImage");
console.log(el.elementTiming); // "big-image"
```

For a more complete example on how to use the Element Timing API, see [PerformanceElementTiming](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceElementTiming).

## Specifications

## Browser compatibility

## See also

- [PerformanceElementTiming](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceElementTiming)
- [`elementtiming`](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/elementtiming) HTML attribute
