Class Embed


@Bean(typeName="embed") public class Embed extends HtmlElementVoid
DTO for an HTML <embed> element.

The embed element represents an integration point for an external application or interactive content. It is used to embed content such as Flash applications, PDF documents, or other multimedia content that requires a plugin or external application to display.

Examples:

import static org.apache.juneau.bean.html5.HtmlBuilder.*; // Embed a PDF document Embed embed1 = embed() .src("document.pdf") .type("application/pdf") .width("800") .height("600"); // Embed a Flash application Embed embed2 = embed() .src("game.swf") .type("application/x-shockwave-flash") .width("640") .height("480"); // Embed with fallback content Embed embed3 = embed() .src("interactive-content.swf") .type("application/x-shockwave-flash") .children( p("Your browser does not support embedded content.") );

The following convenience methods are provided for constructing instances of this bean:

See Also: