# New-HTMLTab

Creates a new HTML tab with customizable content and icons.

Project

PSWriteHTML

Generate HTML reports, dashboards, and emails from PowerShell without writing HTML, CSS, or JavaScript.

[View on GitHub](https://github.com/EvotecIT/PSWriteHTML) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteHTML/releases/tag/v1.41.0) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteHTML/1.40.0)

Stars **1,025**

Forks **114**

Open issues 

PowerShell Gallery downloads **7,576,901**

Release **v1.45.0**

Language: PowerShell Updated: 2026-11-19

Command 

**Module**

`PSWriteHTML`

Creates a new HTML tab with customizable content and icons.

## Syntax

```
New-HTMLTab
[-AnchorName <String>]
[[-Heading] <String>]
[[-HtmlData] <ScriptBlock>]
[-IconBrands <String>]
[-IconColor <String>]
[-IconSize <Object>]
[-Name <String>]
[-TextColor <String>]
[-TextSize <Object>]
[-TextTransform <uppercase|lowercase|capitalize>]
[<CommonParameters>]
```

[#](#method-new-htmltab-string-string-scriptblock-string-string-object-string-string-object-string)

Parameter set: `FontAwesomeBrands`

```
New-HTMLTab
[-AnchorName <String>]
[[-Heading] <String>]
[[-HtmlData] <ScriptBlock>]
[-IconColor <String>]
[-IconSize <Object>]
[-IconSolid <String>]
[-Name <String>]
[-TextColor <String>]
[-TextSize <Object>]
[-TextTransform <uppercase|lowercase|capitalize>]
[<CommonParameters>]
```

[#](#method-new-htmltab-string-string-scriptblock-string-object-string-string-string-object-string)

Parameter set: `FontAwesomeSolid`

```
New-HTMLTab
[-AnchorName <String>]
[[-Heading] <String>]
[[-HtmlData] <ScriptBlock>]
[-IconColor <String>]
[-IconRegular <String>]
[-IconSize <Object>]
[-Name <String>]
[-TextColor <String>]
[-TextSize <Object>]
[-TextTransform <uppercase|lowercase|capitalize>]
[<CommonParameters>]
```

[#](#method-new-htmltab-string-string-scriptblock-string-string-object-string-string-object-string-2)

Parameter set: `FontAwesomeRegular`

## Description

The New-HTMLTab function creates a new HTML tab with the specified content, heading, and icon. It supports different parameter sets for FontAwesomeBrands, FontAwesomeRegular, and FontAwesomeSolid icons.

## Examples

### Example 1

```powershell
New-HTMLTab -HtmlData { Get-Process } -Heading "Processes" -Name "ProcessTab" -IconBrands "windows"
```

Creates a new tab displaying the list of processes with a Windows icon.

### Example 2

```powershell
New-HTMLTab -HtmlData { Get-Service } -Heading "Services" -Name "ServiceTab" -IconRegular building
```

Creates a new tab displaying the list of services with a hard drive icon.

### Example 3

```powershell
New-HTMLTab -HtmlData { Get-EventLog -LogName System } -Heading "System Events" -Name "EventTab" -IconSolid "exclamation-triangle"
```

Creates a new tab displaying the system events log with an exclamation triangle icon.

## Parameters

**-AnchorName String optional**

New-HTMLTab - Add text-transform

**-Heading String optionalposition: 1aliases: TabHeading**

The heading or title of the tab.

**-HtmlData ScriptBlock optionalposition: 0**

The HTML content to be displayed within the tab. This should be provided as a ScriptBlock.

**-IconBrands String optionalsets: FontAwesomeBrands**

The icon to be displayed for FontAwesomeBrands. Use tab completion to select from available options.

**-IconColor String optional**

**-IconSize Object optional**

**-Name String optionalaliases: TabName**

The name of the tab.

**-TextColor String optional**

**-TextSize Object optional**

**-TextTransform String optional**

Possible values: `uppercase`, `lowercase`, `capitalize`

**-IconSolid String optionalsets: FontAwesomeSolid**

The icon to be displayed for FontAwesomeSolid. Use tab completion to select from available options.

**-IconRegular String optionalsets: FontAwesomeRegular**

The icon to be displayed for FontAwesomeRegular. Use tab completion to select from available options.

## Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see [about_CommonParameters](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:7691A810BB927469099FCF937AC0C300816754C44B74DABF711D94ABDAB62B24 -->
