API Reference
Function
New-HTMLHeading
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
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 SetsParameters
- Color String
- The color of the heading text.
- Heading String
- 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
- The text content to display within the heading.
- Underline SwitchParameter
- Indicates whether the heading should be underlined.