Skip to main content

iframe_titled

Function iframe_titled 

Source
pub fn iframe_titled(
    src: impl AsRef<str>,
    title_text: impl AsRef<str>,
) -> Element
Expand description

An <iframe> that cannot be built without a title.

A frame with no title is unusable with a screen reader, so title is a required parameter. loading="lazy" is applied.