--- id: elements title: Elements description: Both HTML and SVG elements are supported --- ## Tag Structure Element tags must either self-close `<... />` or have a corresponding close tag for each open tag ```rust html! {
} ``` ```rust html! {
// <- MISSING CLOSE TAG } ``` ```rust html! { } ``` ```rust html! { // <- MISSING SELF-CLOSE } ``` :::note For convenience, elements which _usually_ require a closing tag are **allowed** to self-close. For example, writing `html! {
}` is valid. ::: ## Children Create complex nested HTML and SVG layouts with ease: ```rust html! {