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