---
id: fast-element.targetedhtmldirective
title: TargetedHTMLDirective class
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-element](./fast-element.md) &gt; [TargetedHTMLDirective](./fast-element.targetedhtmldirective.md)

## TargetedHTMLDirective class

A [HTMLDirective](./fast-element.htmldirective.md) that targets a named attribute or property on a node.

<b>Signature:</b>

```typescript
export declare abstract class TargetedHTMLDirective extends HTMLDirective 
```

## Properties

|  Property | Modifiers | Type | Description |
|  --- | --- | --- | --- |
|  [createPlaceholder](./fast-element.targetedhtmldirective.createplaceholder.md) |  | (index: number) =&gt; string | Creates a placeholder string based on the directive's index within the template. |
|  [targetName](./fast-element.targetedhtmldirective.targetname.md) |  | string \| undefined | Gets/sets the name of the attribute or property that this directive is targeting on the associated node. |
