---
title: "Property additionalAttributes"
manual: "TYPO3 Explained"
version: "12.4"
permalink: "https://docs.typo3.org/permalink/t3coreapi:property-additionalattributes@12.4"
source: "ApiOverview/Fluid/AdditionalAttributes.rst"
rendered: "2026-10-21T15:29:37+00:00"
---

> [!WARNING]
> **Attention**
>
> TYPO3 v12 has reached end-of-life as of April 30th 2026 and
> is no longer being maintained. Use the version switcher on the top
> left of this page to select documentation for a supported version of TYPO3.
>
> Need more time before upgrading?
> You can purchase Extended Long Term Support (ELTS) for TYPO3 v12 here:
> [TYPO3 ELTS](https://typo3.com/services/extended-support-elts).

# Property additionalAttributes {#property-additionalattributes}

All Fluid ViewHelper that create exactly one HTML tag, tag-based ViewHelpers,
can get passed the property `additionalAttributes`.

A tag-based Fluid ViewHelper generally supports most attributes that are
also available in HTML. There are, for example, the attributes `class` and
`id`, which exist in all tag-based ViewHelpers.

Sometimes attributes are needed that are not provided by the
ViewHelper. A common example are data attributes.

**EXT:my_extension/Resources/Private/Templates/SomeTemplate.html**

```html
<f:form.textbox additionalAttributes="{data-anything: 'some info', data-something: some.variable}" />
```

The property `additionalAttributes` is especially helpful if only a
few of these additional attributes are needed. Otherwise, it is often
reasonable to write an own ViewHelper which extends the corresponding
ViewHelper.

The property `additionalAttributes` is provided by the
`TagBasedViewHelper` so it is also available to custom ViewHelpers
based on this class. See chapter [Developing a custom ViewHelper](https://docs.typo3.org/permalink/t3coreapi:fluid-custom-viewhelper@12.4).
