Evotec

Project

PSWriteHTML

PSWriteHTML is an open-source PowerShell project with packages, release history, and working documentation.

Stars 995
Forks 114
Open issues 69
PowerShell Gallery downloads 7,436,513
Release v1.41.0
Language: PowerShell Updated: 2026-04-11

API Reference

Function

New-HTMLHeading

Namespace PSWriteHTML

Creates a new HTML heading with customizable options.

Remarks

This function generates an HTML heading based on the provided parameters such as heading level, text content, underline option, and color.

Examples

Authored help example

EXAMPLE 1


New-HTMLHeading -Heading 'h1' -HeadingText 'Main Title' -Underline -Color 'blue'
Generates an HTML heading of level h1 with the text 'Main Title', underlined, and in blue color.
        

EXAMPLE 2


New-HTMLHeading -Heading 'h3' -HeadingText 'Sub Title' -Color 'green'
Generates an HTML heading of level h3 with the text 'Sub Title' in green color.
        

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.

Syntax

New-HTMLHeading [-Color <String>] [-Heading <h1>] [-HeadingText <String>] [-Underline] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

Color String optionalposition: 2pipeline: False
The color of the heading text.
Heading String optionalposition: 0pipeline: Falsevalues: 6
Specifies the level of the heading. Valid values are 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'.
Possible values: h1, h2, h3, h4, h5, h6
HeadingText String optionalposition: 1pipeline: Falsealiases: Text
The text content to display within the heading.
Underline SwitchParameter optionalposition: namedpipeline: False
Indicates whether the heading should be underlined.