## User Variables

This section defines variables related to the user’s browser or device, focusing on the `userAgent` variable, which captures information about the user's device and browser.

---

### userAgent

**Description:** This variable captures the `HTTP_USER_AGENT` from the server variables, which provides details about the user's browser and operating system. It is useful for determining compatibility or tailoring the experience based on the user's device.

```xml
<xsl:variable name="userAgent" select="/Page/Request/ServerVariables/Item[@name='HTTP_USER_AGENT']"/>
```

---

[Back to Functions.xsl](/Front-End-Developer-Guide/v5/XSLT-Guide/Functions.xsl)

---
