# New-HTMLNavTop

Creates a top navigation bar in HTML format with customizable options.

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 top navigation bar in HTML format with customizable options.

## Syntax

```
New-HTMLNavTop
[-Convert]
[[-HomeColor] <String>]
[[-HomeColorBackground] <String>]
[[-HomeLink] <String>]
[-HomeLinkHome]
[[-Logo] <String>]
[[-LogoLink] <String>]
[-LogoLinkHome]
[[-MenuColor] <String>]
[[-MenuColorBackground] <String>]
[[-MenuItemsWidth] <Object>]
[[-NavigationLinks] <ScriptBlock>]
[<CommonParameters>]
```

[#](#method-new-htmlnavtop-switchparameter-string-string-string-switchparameter-string-string-switchparameter-string-string-object-scriptblock)

Parameter set: `All Parameter Sets`

## Description

This function generates a top navigation bar in HTML format with customizable options such as navigation links, logo, colors, and more.

## Examples

### Example 1

```powershell
New-HTMLNavTop -NavigationLinks {
    "Link 1", "Link 2", "Link 3"
} -Logo "logo.png" -LogoLink "https://example.com" -LogoLinkHome -MenuItemsWidth '250px' -MenuColor 'Blue' -MenuColorBackground 'White' -HomeColor 'Red' -HomeColorBackground 'White' -HomeLink "https://example.com/home" -HomeLinkHome
Creates a top navigation bar with specified navigation links, logo, colors, and home link.
```

## Parameters

**-Convert SwitchParameter optional**

Switch parameter to indicate if conversion is needed.

**-HomeColor String optionalposition: 6**

Specifies the color of the home link text.

**-HomeColorBackground String optionalposition: 7**

Specifies the background color of the home link.

**-HomeLink String optionalposition: 8**

Specifies the URL for the home link.

**-HomeLinkHome SwitchParameter optional**

Indicates whether the home link should link to the home page.

**-Logo String optionalposition: 1**

Specifies the path to the logo image.

**-LogoLink String optionalposition: 2**

Specifies the URL to link the logo to.

**-LogoLinkHome SwitchParameter optional**

Indicates whether the logo should link to the home page.

**-MenuColor String optionalposition: 4**

Specifies the color of the menu text.

**-MenuColorBackground String optionalposition: 5**

Specifies the background color of the menu.

**-MenuItemsWidth Object optionalposition: 3**

Specifies the width of the menu items.

**-NavigationLinks ScriptBlock optionalposition: 0**

Specifies the script block containing the navigation links to be displayed.

## 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:A984783F37160D92FA1DB4F777A0767E78DF26191FC378AE9D252F61FE94E8BC -->
