Functions/Public/dt.ps1
Function dt { <# .SYNOPSIS Create a dt tag in an HTML document. .EXAMPLE dt .EXAMPLE dt "woop1" -Class "class" .EXAMPLE dt "woop2" -Class "class" -Id "Something" .EXAMPLE dt "woop3" -Class "class" -Id "something" -Style "color:red;" .NOTES Current version 3.1 History: 2018.10.30;@ChristopheKumor;Updated to version 3.0 2018.10.02;bateskevin;Updated to v2. 2018.04.01;bateskevin;Creation. .LINK https://github.com/Stephanevg/PSHTML #> [Cmdletbinding()] Param( [Parameter(Mandatory = $true)] [AllowEmptyString()] [AllowNull()] $Content, [AllowEmptyString()] [AllowNull()] [String]$Class = "", [String]$Id, [AllowEmptyString()] [AllowNull()] [String]$Style, [String]$value, [Hashtable]$Attributes ) Process { $tagname = "dt" Set-HtmlTag -TagName $tagname -Parameters $PSBoundParameters -TagType nonVoid } } |