VOOZH about

URL: https://www.geeksforgeeks.org/html/html-dom-embed-type-property/

⇱ HTML DOM embed type property - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

HTML DOM embed type property

Last Updated : 19 Jun, 2023

The DOM embed height property in HTML is used to set or return the value of the type attribute in an embed element. The type attribute specifies the MIME type of the embedded content.

Syntax:

  • Return the type property:
embedObject.type
  • Set the type property:
embedObject.type = MIME_type

Property Values:

  • MIME_type: It contains a single value MIME-type which is used to specify the target URL.

Return Values: It returns a string value that represents the MIME type of the linked Document. 

Example: 

Output: 

👁 Image
 

Supported Browsers: The browsers supported by DOM embed type property are listed below:

  • Google Chrome 1 and above
  • Edge 79 and above
  • Internet Explorer not supported
  • Firefox 1 and above
  • Opera 12.1 and above
  • Safari 4 and above
Comment