# Setting Attributes Inherited from a Super Component

Use `<aura:set>` in the markup of a sub component to set the value of an inherited attribute.

Let's look at an example. Here is the `c:setTagSuper` component.

```nolang
<!--c:setTagSuper-->
<aura:component extensible="true">
    <aura:attribute name="address1" type="String" />
    setTagSuper address1: {!v.address1}<br/>
</aura:component>

```

`c:setTagSuper` outputs:

```nolang
setTagSuper address1:
```

The `address1` attribute doesn't output any value yet as it hasn't been set.

Here is the `c:setTagSub` component that extends `c:setTagSuper`.

```nolang
<!--c:setTagSub-->
<aura:component extends="c:setTagSuper">
    <aura:set attribute="address1" value="808 State St" />
</aura:component>

```

`c:setTagSub` outputs:

```nolang
setTagSuper address1: 808 State St
```

`sampleSetTagEx c:setTagSub` sets a value for the `address1` attribute inherited from the super component, `c:setTagSuper`.

:::warning
This usage of `<aura:set>` works for components and abstract components, but it doesn’t work for interfaces. For more information, see [Setting Attributes Inherited from an Interface](/docs/platform/aura-platform/guide/ref-tag-set-attr-intf.md).
:::

If you’re using a component by making a reference to it in your component, you can set the attribute value directly in the markup. For example, `c:setTagSuperRef` makes a reference to `c:setTagSuper` and sets the `address1` attribute directly without using `aura:set`.

```nolang
<!--c:setTagSuperRef-->
<aura:component>
    <c:setTagSuper address1="1 Sesame St" />
</aura:component>

```

`c:setTagSuperRef` outputs:

```nolang
setTagSuper address1: 1 Sesame St

```

**See Also**

- [Component Body](/docs/platform/aura-platform/guide/components-body.md)
- [Inherited Component Attributes](/docs/platform/aura-platform/guide/oo-cmp-attributes.md)
- [Setting Attributes on a Component Reference](/docs/platform/aura-platform/guide/ref-tag-set-cmp-ref.md)
