Project

PSWriteHTML

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

Stars 1,019
Forks 115
Open issues 54
PowerShell Gallery downloads 7,576,901
Release v1.41.0
Language: PowerShell Updated: 2026-10-03
Command

New-HTMLTimeline

Module PSWriteHTML

Creates a new HTML timeline with customizable content.

Syntax

New-HTMLTimeline [[-Content] <ScriptBlock>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Description

This function creates an HTML timeline with the specified content. The timeline can be used to display a sequence of events or steps in a visually appealing manner.

Examples

Authored help example

EXAMPLE 1

New-HTMLTimeline -Content {
    New-HTMLTag -Tag 'div' -Attributes @{ class = 'event' } -Value { "Event 1" }
    New-HTMLTag -Tag 'div' -Attributes @{ class = 'event' } -Value { "Event 2" }
    New-HTMLTag -Tag 'div' -Attributes @{ class = 'event' } -Value { "Event 3" }
}

Creates an HTML timeline with three events.

Parameters

-Content ScriptBlock optionalposition: 0aliases: TimeLineItems
Specifies the content of the HTML timeline as a script block.

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.