Creates an empty Element from a HTML tag name.
Appends attributes to an existing Element.
node "div"
|> addAttributes
[ Html.Attributes.class "container"
]Appends children to an existing Element.
node "div"
|> addChildren
[ Html.text "Hello,"
, Html.text " world"
]
Represents an HTML element node.
In particular, an element node is a node that has a tag name, a list of attributes and a list of children.
Other types of HTML nodes (for example text nodes) don't have any of those.