---
title: "SVGElement.Id"
url: "https://reference.aspose.com/html/java/com.aspose.html.dom.svg/svgelement/id/"
product: "Aspose.HTML for Java API Reference"
description: "SVGElement property. The value of the id attribute on the given element or the empty String if id is not present"
---

## SVGElement.Id property

The value of the ‘id’ attribute on the given element, or the empty String if ‘id’ is not present.

```java
public String Id { get; set; }
```

### Property Value

The identifier.

### Exceptions

| exception | condition |
| --- | --- |
| [dOMException](../../../com.aspose.html.dom/domexception/) | Code NO_MODIFICATION_ALLOWED_ERR. Raised on an attempt to change the value of a read only attribute. |

### See Also

* class [SVGElement](../)
* package [com.aspose.html.dom.svg](../../../com.aspose.html.dom.svg/)
* package [Aspose.HTML](../../../)
