YouTip LogoYouTip

Dom Obj Embed

# HTML DOM Embed Object * * * ## Embed Object The Embed object is new in HTML5. The Embed object represents an HTML `` element. ### Accessing the Embed Object You can use `getElementById()` to access the `` element: ```javascript var x = document.getElementById("myEmbed"); (#) ### Creating an Embed Object You can use `document.createElement()` to create an `` element: ```javascript var x = document.createElement("myEmbed"); (#) ## Embed Object Properties | Property | Description | | --- | --- | | (#) | Sets or returns the height of the embedded file (height attribute value). | | (#) | Sets or returns the value of the src attribute of the embed element (embedded file address). | | (#) | Sets or returns the value of the type attribute of the embed element (embedded file type). | | (#) | Sets or returns the width of the embedded file (width attribute value). | ## Standard Properties and Events The Embed object also supports standard (#) and (#). * * * ## Related Articles HTML Reference: [HTML `` Tag](#) [](#)(#) (#)[](#) [Volcengine Coding Plan supports mainstream large models like Doubao, GLM, DeepSeek, Kimi, MiniMax, officially supplied, stable and reliable. Configuration Guide Β₯9.9/ month Subscribe Now](https://maas.xfyun.cn/modelSquare?ch=maas_lm_l2E)
← Prop Embed HeightProp Details Open β†’