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.

Winged-Swift’s Iframe makes title: a required initializer parameter for the same reason: a frame with no title is unusable with a screen reader. loading="lazy" is applied, matching the Swift default.