init(_:content:)

Creates a new HTML element with the specified attribute and content.

Html+Elements.swift:23
init(_ attribute: HTMLAttribute<Tag>, @HTMLBuilder content: () -> Content)

Parameters

attribute

The attribute to apply to the element.

content

The content of the element.