You can create an <a> object using the document.create_element method.
let anchor = document.create_element("anchor")
.unwrap()
.dyn_into::<web_sys::HtmlAnchorElement>()
.unwrap();
You can access an <a> object using the document.get_element_by_id method.
let anchor = document.get_element_by_id("my-anchor")
.unwrap()
.dyn_into::<web_sys::HtmlAnchorElement>()
.unwrap();
width - The width of the anchor.
width set_widthheight - The height of the button.
height set_height
features = [
'HtmlAnchorElement',
]