Class HtmlBuilder

java.lang.Object
org.apache.juneau.bean.html5.HtmlBuilder

public class HtmlBuilder extends Object
Various useful static methods for creating HTML elements.

The HtmlBuilder class contains lots of static creator methods to minimize the amount of code needed to produce HTML DOMs. Instead of using constructors directly, you can use these static methods for more concise code.

Examples:

import static org.apache.juneau.bean.html5.HtmlBuilder.*; // Instead of this... P address = new P() .children( "John Doe", new Br(), "123 Main Street", new Br(), "Anytown, ST 12345" ); // ...you can write this... P address = p( "John Doe", br(), "123 Main Street", br(), "Anytown, ST 12345" ); // Form with builder methods Form form = form("/submit", input("text").name("username").placeholder("Username"), input("password").name("password").placeholder("Password"), button("submit", "Login") ); // Table with builder methods Table table = table( thead( tr( th("Name"), th("Age"), th("City") ) ), tbody( tr( td("John Doe"), td("25"), td("New York") ), tr( td("Jane Smith"), td("30"), td("Los Angeles") ) ) ); // Navigation menu Nav nav = nav( ul( li(a("/home", "Home")), li(a("/about", "About")), li(a("/contact", "Contact")) ) ); // Fieldset with attributes after children Fieldset fieldset = fieldset( legend("User Information"), input("text").name("firstName").placeholder("First Name"), input("text").name("lastName").placeholder("Last Name") ).disabled(true); // List with mixed content Ul list = ul( li("Simple item"), li(strong("Bold item")), li( "Item with ", em("emphasis"), " and ", code("code") ) ); // Media elements Video video = video("/path/to/video.mp4") .controls(true) .width(640) .height(480) .children( track("/path/to/subtitles.vtt", "captions").srclang("en").label("English") ); Audio audio = audio("/path/to/audio.mp3") .controls(true) .autoplay(false) .children( source("/path/to/audio.ogg", "audio/ogg"), source("/path/to/audio.mp3", "audio/mpeg") );

See Also:
  • Constructor Details

  • Method Details

    • a

      public static final A a()
      Creates an empty A element.
      Returns:
      The new element.
    • a

      public static final A a(Object href, Object... children)
      Creates an A element with the specified A.href(Object) attribute and A.children(Object[]) nodes.
      Parameters:
      href - The A.href(Object) attribute.
      children - The A.children(Object[]) nodes.
      Returns:
      The new element.
    • abbr

      public static final Abbr abbr()
      Creates an empty Abbr element.
      Returns:
      The new element.
    • abbr

      public static final Abbr abbr(String title, Object... children)
      Creates an Abbr element with the specified Abbr.title(String) attribute and Abbr.children(Object[]) nodes.
      Parameters:
      title - The Abbr.title(String) attribute.
      children - The Abbr.children(Object[]) nodes.
      Returns:
      The new element.
    • address

      public static final Address address()
      Creates an empty Address element.
      Returns:
      The new element.
    • address

      public static final Address address(Object... children)
      Creates an Address element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • area

      public static final Area area()
      Creates an empty Area element.
      Returns:
      The new element.
    • area

      public static final Area area(String shape, String coords, Object href)
      Creates an Area element with the specified Area.shape(String), Area.coords(String), and Area.href(Object) attributes.
      Parameters:
      shape - The Area.shape(String) attribute.
      coords - The Area.coords(String) attribute.
      href - The Area.href(Object) attribute.
      Returns:
      The new element.
    • article

      public static final Article article()
      Creates an empty Article element.
      Returns:
      The new element.
    • article

      public static final Article article(Object... children)
      Creates an Article element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • aside

      public static final Aside aside()
      Creates an empty Aside element.
      Returns:
      The new element.
    • aside

      public static final Aside aside(Object... children)
      Creates an Aside element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • audio

      public static final Audio audio()
      Creates an empty Audio element.
      Returns:
      The new element.
    • audio

      public static final Audio audio(String src)
      Creates an Audio element with the specified Audio.src(Object) attribute.
      Parameters:
      src - The Audio.src(Object) attribute.
      Returns:
      The new element.
    • b

      public static final B b()
      Creates an empty B element.
      Returns:
      The new element.
    • b

      public static final B b(Object... children)
      Creates a B element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • base

      public static final Base base()
      Creates an empty Base element.
      Returns:
      The new element.
    • base

      public static final Base base(Object href)
      Creates a Base element with the specified Base.href(Object) attribute.
      Parameters:
      href - The Base.href(Object) attribute.
      Returns:
      The new element.
    • bdi

      public static final Bdi bdi()
      Creates an empty Bdi element.
      Returns:
      The new element.
    • bdi

      public static final Bdi bdi(Object text)
      Creates a Bdi element with the specified Bdi.text(Object) node.
      Parameters:
      text - The Bdi.text(Object) node.
      Returns:
      The new element.
    • bdo

      public static final Bdo bdo()
      Creates an empty Bdo element.
      Returns:
      The new element.
    • bdo

      public static final Bdo bdo(String dir, Object... children)
      Creates a Bdo element with the specified Bdo.dir(String) attribute and child nodes.
      Parameters:
      dir - The Bdo.dir(String) attribute.
      children - The child nodes.
      Returns:
      The new element.
    • blockquote

      public static final Blockquote blockquote()
      Creates an empty Blockquote element.
      Returns:
      The new element.
    • blockquote

      public static final Blockquote blockquote(Object... children)
      Creates a Blockquote element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • body

      public static final Body body()
      Creates an empty Body element.
      Returns:
      The new element.
    • body

      public static final Body body(Object... children)
      Creates a Body element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • br

      public static final Br br()
      Creates an empty Br element.
      Returns:
      The new element.
    • button

      public static final Button button()
      Creates an empty Button element.
      Returns:
      The new element.
    • button

      public static final Button button(String type)
      Creates a Button element with the specified Button.type(String) attribute.
      Parameters:
      type - The Button.type(String) attribute.
      Returns:
      The new element.
    • button

      public static final Button button(String type, Object... children)
      Creates a Button element with the specified Button.type(String) attribute and Button.children(Object[]) nodes.
      Parameters:
      type - The Button.type(String) attribute.
      children - The Button.children(Object[]) nodes.
      Returns:
      The new element.
    • canvas

      public static final Canvas canvas()
      Creates an empty Canvas element.
      Returns:
      The new element.
    • canvas

      public static final Canvas canvas(Number width, Number height)
      Creates a Canvas element with the specified Canvas.width(Object) and Canvas.height(Object) attributes.
      Parameters:
      width - The Canvas.width(Object) attribute.
      height - The Canvas.height(Object) attribute.
      Returns:
      The new element.
    • caption

      public static final Caption caption()
      Creates an empty Caption element.
      Returns:
      The new element.
    • caption

      public static final Caption caption(Object... children)
      Creates a Caption element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • cite

      public static final Cite cite()
      Creates an empty Cite element.
      Returns:
      The new element.
    • cite

      public static final Cite cite(Object... children)
      Creates a Cite element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • code

      public static final Code code()
      Creates an empty Code element.
      Returns:
      The new element.
    • code

      public static final Code code(Object... children)
      Creates a Code element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • col

      public static final Col col()
      Creates an empty Col element.
      Returns:
      The new element.
    • col

      public static final Col col(Number span)
      Creates a Col element with the specified Col.span(Object) attribute.
      Parameters:
      span - The Col.span(Object) attribute.
      Returns:
      The new element.
    • colgroup

      public static final Colgroup colgroup()
      Creates an empty Colgroup element.
      Returns:
      The new element.
    • colgroup

      public static final Colgroup colgroup(Object... children)
      Creates a Colgroup element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • data

      public static final Data data()
      Creates an empty Data element.
      Returns:
      The new element.
    • data

      public static final Data data(String value, Object child)
      Creates a Data element with the specified Data.value(Object) attribute and child node.
      Parameters:
      value - The Data.value(Object) attribute.
      child - The child node.
      Returns:
      The new element.
    • datalist

      public static final Datalist datalist()
      Creates an empty Datalist element.
      Returns:
      The new element.
    • datalist

      public static final Datalist datalist(String id, Option... children)
      Creates a Datalist element with the specified Datalist.id(String) attribute and child nodes.
      Parameters:
      id - The Datalist.id(String) attribute.
      children - The child nodes.
      Returns:
      The new element.
    • dd

      public static final Dd dd()
      Creates an empty Dd element.
      Returns:
      The new element.
    • dd

      public static final Dd dd(Object... children)
      Creates a Dd element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • del

      public static final Del del()
      Creates an empty Del element.
      Returns:
      The new element.
    • del

      public static final Del del(Object... children)
      Creates a Del element with the specified Del.children(Object[]) node.
      Parameters:
      children - The Del.children(Object[]) node.
      Returns:
      The new element.
    • dfn

      public static final Dfn dfn()
      Creates an empty Dfn element.
      Returns:
      The new element.
    • dfn

      public static final Dfn dfn(Object... children)
      Creates a Dfn element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • div

      public static final Div div()
      Creates an empty Div element.
      Returns:
      The new element.
    • div

      public static final Div div(Object... children)
      Creates a Div element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • dl

      public static final Dl dl()
      Creates an empty Dl element.
      Returns:
      The new element.
    • dl

      public static final Dl dl(Object... children)
      Creates a Dl element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • dt

      public static final Dt dt()
      Creates an empty Dt element.
      Returns:
      The new element.
    • dt

      public static final Dt dt(Object... children)
      Creates a Dt element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • em

      public static final Em em()
      Creates an empty Em element.
      Returns:
      The new element.
    • em

      public static final Em em(Object... children)
      Creates an Em element with the specified Em.children(Object[]) nodes.
      Parameters:
      children - The Em.children(Object[]) nodes.
      Returns:
      The new element.
    • embed

      public static final Embed embed()
      Creates an empty Embed element.
      Returns:
      The new element.
    • embed

      public static final Embed embed(Object src)
      Creates an Embed element with the specified Embed.src(Object) attribute.
      Parameters:
      src - The Embed.src(Object) attribute.
      Returns:
      The new element.
    • fieldset

      public static final Fieldset fieldset()
      Creates an empty Fieldset element.
      Returns:
      The new element.
    • fieldset

      public static final Fieldset fieldset(Object... children)
      Creates a Fieldset element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • figcaption

      public static final Figcaption figcaption()
      Creates an empty Figcaption element.
      Returns:
      The new element.
    • figcaption

      public static final Figcaption figcaption(Object... children)
      Creates a Figcaption element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • figure

      public static final Figure figure()
      Creates an empty Figure element.
      Returns:
      The new element.
    • figure

      public static final Figure figure(Object... children)
      Creates a Figure element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • footer

      public static final Footer footer()
      Creates an empty Footer element.
      Returns:
      The new element.
    • footer

      public static final Footer footer(Object... children)
      Creates a Footer element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • form

      public static final Form form()
      Creates an empty Form element.
      Returns:
      The new element.
    • form

      public static final Form form(String action)
      Creates a Form element with the specified Form.action(String) attribute.
      Parameters:
      action - The Form.action(String) attribute.
      Returns:
      The new element.
    • form

      public static final Form form(String action, Object... children)
      Creates an Form element with the specified Form.action(String) attribute and child nodes.
      Parameters:
      action - The Form.action(String) attribute.
      children - The child nodes.
      Returns:
      The new element.
    • h1

      public static final H1 h1()
      Creates an empty H1 element.
      Returns:
      The new element.
    • h1

      public static final H1 h1(Object... children)
      Creates an H1 element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • h2

      public static final H2 h2()
      Creates an empty H2 element.
      Returns:
      The new element.
    • h2

      public static final H2 h2(Object... children)
      Creates an H2 element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • h3

      public static final H3 h3()
      Creates an empty H3 element.
      Returns:
      The new element.
    • h3

      public static final H3 h3(Object... children)
      Creates an H3 element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • h4

      public static final H4 h4()
      Creates an empty H4 element.
      Returns:
      The new element.
    • h4

      public static final H4 h4(Object... children)
      Creates an H4 element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • h5

      public static final H5 h5()
      Creates an empty H5 element.
      Returns:
      The new element.
    • h5

      public static final H5 h5(Object... children)
      Creates an H5 element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • h6

      public static final H6 h6()
      Creates an empty H6 element.
      Returns:
      The new element.
    • h6

      public static final H6 h6(Object... children)
      Creates an H6 element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • head

      public static final Head head()
      Creates an empty Head element.
      Returns:
      The new element.
    • head

      public static final Head head(Object... children)
      Creates a Head element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • header

      public static final Header header()
      Creates an empty Header element.
      Returns:
      The new element.
    • header

      public static final Header header(Object... children)
      Creates a Header element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • hr

      public static final Hr hr()
      Creates an empty Hr element.
      Returns:
      The new element.
    • html

      public static final Html html()
      Creates an empty Html element.
      Returns:
      The new element.
    • html

      public static final Html html(Object... children)
      Creates an Html element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • i

      public static final I i()
      Creates an empty I element.
      Returns:
      The new element.
    • i

      public static final I i(Object... children)
      Creates an I element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • iframe

      public static final Iframe iframe()
      Creates an empty Iframe element.
      Returns:
      The new element.
    • iframe

      public static final Iframe iframe(Object... children)
      Creates an Iframe element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • img

      public static final Img img()
      Creates an empty Img element.
      Returns:
      The new element.
    • img

      public static final Img img(Object src)
      Creates an Img element with the specified Img.src(Object) attribute.
      Parameters:
      src - The Img.src(Object) attribute.
      Returns:
      The new element.
    • input

      public static final Input input()
      Creates an empty Input element.
      Returns:
      The new element.
    • input

      public static final Input input(String type)
      Creates an Input element with the specified Input.type(String) attribute.
      Parameters:
      type - The Input.type(String) attribute.
      Returns:
      The new element.
    • ins

      public static final Ins ins()
      Creates an empty Ins element.
      Returns:
      The new element.
    • ins

      public static final Ins ins(Object... children)
      Creates an Ins element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • kbd

      public static final Kbd kbd()
      Creates an empty Kbd element.
      Returns:
      The new element.
    • kbd

      public static final Kbd kbd(Object... children)
      Creates a Kbd element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • keygen

      public static final Keygen keygen()
      Creates an empty Keygen element.
      Returns:
      The new element.
    • label

      public static final Label label()
      Creates an empty Label element.
      Returns:
      The new element.
    • label

      public static final Label label(Object... children)
      Creates a Label element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • legend

      public static final Legend legend()
      Creates an empty Legend element.
      Returns:
      The new element.
    • legend

      public static final Legend legend(Object... children)
      Creates a Legend element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • li

      public static final Li li()
      Creates an empty Li element.
      Returns:
      The new element.
    • li

      public static final Li li(Object... children)
      Creates an Li element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • link

      public static final Link link()
      Creates an empty Link element.
      Returns:
      The new element.
    • link

      public static final Link link(Object href)
      Creates a Link element with the specified Link.href(Object) attribute.
      Parameters:
      href - The Link.href(Object) attribute.
      Returns:
      The new element.
    • main

      public static final Main main()
      Creates an empty Main element.
      Returns:
      The new element.
    • main

      public static final Main main(Object... children)
      Creates a Main element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • map

      public static final Map map()
      Creates an empty Map element.
      Returns:
      The new element.
    • map

      public static final Map map(Object... children)
      Creates a Map element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • mark

      public static final Mark mark()
      Creates an empty Mark element.
      Returns:
      The new element.
    • mark

      public static final Mark mark(Object... children)
      Creates a Mark element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • meta

      public static final Meta meta()
      Creates an empty Meta element.
      Returns:
      The new element.
    • meter

      public static final Meter meter()
      Creates an empty Meter element.
      Returns:
      The new element.
    • meter

      public static final Meter meter(Object... children)
      Creates a Meter element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • noscript

      public static final Noscript noscript()
      Creates an empty Noscript element.
      Returns:
      The new element.
    • noscript

      public static final Noscript noscript(Object... children)
      Creates a Noscript element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • object

      public static final Object_ object()
      Creates an empty Object_ element.
      Returns:
      The new element.
    • object

      public static final Object_ object(Object... children)
      Creates an Object_ element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • ol

      public static final Ol ol()
      Creates an empty Ol element.
      Returns:
      The new element.
    • ol

      public static final Ol ol(Object... children)
      Creates an Ol element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • optgroup

      public static final Optgroup optgroup()
      Creates an empty Optgroup element.
      Returns:
      The new element.
    • optgroup

      public static final Optgroup optgroup(Object... children)
      Creates an Optgroup element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • option

      public static final Option option()
      Creates an empty Option element.
      Returns:
      The new element.
    • option

      public static final Option option(Object text)
      Creates an Option element with the specified Option.text(Object) attribute.
      Parameters:
      text - The Option.text(Object) attribute.
      Returns:
      The new element.
    • option

      public static final Option option(Object value, Object text)
      Creates an Option element with the specified Option.value(Object) attribute and Option.text(Object) node.
      Parameters:
      value - The Option.value(Object) attribute.
      text - The Option.text(Object) node.
      Returns:
      The new element.
    • output

      public static final Output output()
      Creates an empty Output element.
      Returns:
      The new element.
    • output

      public static final Output output(String name)
      Creates an Output element with the specified Output.name(String) attribute.
      Parameters:
      name - The Output.name(String) attribute.
      Returns:
      The new element.
    • p

      public static final P p()
      Creates an empty P element.
      Returns:
      The new element.
    • p

      public static final P p(Object... children)
      Creates a P element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • param

      public static final Param param()
      Creates an empty Param element.
      Returns:
      The new element.
    • param

      public static final Param param(String name, Object value)
      Creates a Param element with the specified Param.name(String) and Param.value(Object) attributes.
      Parameters:
      name - The Param.name(String) attribute.
      value - The Param.value(Object) attribute.
      Returns:
      The new element.
    • pre

      public static final Pre pre()
      Creates an empty Pre element.
      Returns:
      The new element.
    • pre

      public static final Pre pre(Object... children)
      Creates a Pre element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • progress

      public static final Progress progress()
      Creates an empty Progress element.
      Returns:
      The new element.
    • progress

      public static final Progress progress(Object... children)
      Creates a Progress element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • q

      public static final Q q()
      Creates an empty Q element.
      Returns:
      The new element.
    • q

      public static final Q q(Object... children)
      Creates a Q element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • rb

      public static final Rb rb()
      Creates an empty Rb element.
      Returns:
      The new element.
    • rb

      public static final Rb rb(Object... children)
      Creates a Rb element with the specified Rb.children(Object[]) nodes.
      Parameters:
      children - The Rb.children(Object[]) nodes.
      Returns:
      The new element.
    • rp

      public static final Rp rp()
      Creates an empty Rp element.
      Returns:
      The new element.
    • rp

      public static final Rp rp(Object... children)
      Creates a Rp element with the specified Rp.children(Object[]) nodes.
      Parameters:
      children - The Rp.children(Object[]) nodes.
      Returns:
      The new element.
    • rt

      public static final Rt rt()
      Creates an empty Rt element.
      Returns:
      The new element.
    • rt

      public static final Rt rt(Object... children)
      Creates a Rt element with the specified Rt.children(Object[]) nodes.
      Parameters:
      children - The Rt.children(Object[]) nodes.
      Returns:
      The new element.
    • rtc

      public static final Rtc rtc()
      Creates an empty Rtc element.
      Returns:
      The new element.
    • rtc

      public static final Rtc rtc(Object... children)
      Creates an Rtc element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • ruby

      public static final Ruby ruby()
      Creates an empty Ruby element.
      Returns:
      The new element.
    • ruby

      public static final Ruby ruby(Object... children)
      Creates a Ruby element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • s

      public static final S s()
      Creates an empty S element.
      Returns:
      The new element.
    • s

      public static final S s(Object... children)
      Creates an S element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • samp

      public static final Samp samp()
      Creates an empty Samp element.
      Returns:
      The new element.
    • samp

      public static final Samp samp(Object... children)
      Creates a Samp element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • script

      public static final Script script()
      Creates an empty Script element.
      Returns:
      The new element.
    • script

      public static final Script script(String type, String... text)
      Creates a Script element with the specified Script.type(String) attribute and Script.text(Object) node.
      Parameters:
      type - The Script.type(String) attribute.
      text - The child text node.
      Returns:
      The new element.
    • section

      public static final Section section()
      Creates an empty Section element.
      Returns:
      The new element.
    • section

      public static final Section section(Object... children)
      Creates a Section element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • select

      public static final Select select()
      Creates an empty Select element.
      Returns:
      The new element.
    • select

      public static final Select select(String name, Object... children)
      Creates a Select element with the specified Select.name(String) attribute and child nodes.
      Parameters:
      name - The Select.name(String) attribute.
      children - The child nodes.
      Returns:
      The new element.
    • small

      public static final Small small()
      Creates an empty Small element.
      Returns:
      The new element.
    • small

      public static final Small small(Object... children)
      Creates a Small element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • source

      public static final Source source()
      Creates an empty Source element.
      Returns:
      The new element.
    • source

      public static final Source source(Object src, String type)
      Creates a Source element with the specified Source.src(Object) and Source.type(String) attributes.
      Parameters:
      src - The Source.src(Object) attribute.
      type - The Source.type(String) attribute.
      Returns:
      The new element.
    • span

      public static final Span span()
      Creates an empty Span element.
      Returns:
      The new element.
    • span

      public static final Span span(Object... children)
      Creates a Span element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • strong

      public static final Strong strong()
      Creates an empty Strong element.
      Returns:
      The new element.
    • strong

      public static final Strong strong(Object... children)
      Creates a Strong element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • style

      public static final Style style()
      Creates an empty Style element.
      Returns:
      The new element.
    • style

      public static final Style style(Object text)
      Creates a Style element with the specified Style.text(Object) node.
      Parameters:
      text - The Style.text(Object) node.
      Returns:
      The new element.
    • style

      public static final Style style(String... text)
      Creates a Style element with the specified inner text.
      Parameters:
      text - The contents of the style element.
      Values will be concatenated with newlines.
      Returns:
      The new element.
    • sub

      public static final Sub sub()
      Creates an empty Sub element.
      Returns:
      The new element.
    • sub

      public static final Sub sub(Object... children)
      Creates a Sub element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • sup

      public static final Sup sup()
      Creates an empty Sup element.
      Returns:
      The new element.
    • sup

      public static final Sup sup(Object... children)
      Creates a Sup element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • table

      public static final Table table()
      Creates an empty Table element.
      Returns:
      The new element.
    • table

      public static final Table table(Object... children)
      Creates a Table element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • tbody

      public static final Tbody tbody()
      Creates an empty Tbody element.
      Returns:
      The new element.
    • tbody

      public static final Tbody tbody(Object... children)
      Creates a Tbody element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • td

      public static final Td td()
      Creates an empty Td element.
      Returns:
      The new element.
    • td

      public static final Td td(Object... children)
      Creates a Td element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • template

      public static final Template template()
      Creates an empty Template element.
      Returns:
      The new element.
    • template

      public static final Template template(String id, Object... children)
      Creates a Template element with the specified Template.id(String) attribute and child nodes.
      Parameters:
      id - The Template.id(String) attribute.
      children - The child nodes.
      Returns:
      The new element.
    • textarea

      public static final Textarea textarea()
      Creates an empty Textarea element.
      Returns:
      The new element.
    • textarea

      public static final Textarea textarea(String name, String text)
      Creates a Textarea element with the specified Textarea.name(String) attribute and Textarea.text(Object) node.
      Parameters:
      name - The Textarea.name(String) attribute.
      text - The Textarea.text(Object) node.
      Returns:
      The new element.
    • tfoot

      public static final Tfoot tfoot()
      Creates an empty Tfoot element.
      Returns:
      The new element.
    • tfoot

      public static final Tfoot tfoot(Object... children)
      Creates a Tfoot element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • th

      public static final Th th()
      Creates an empty Th element.
      Returns:
      The new element.
    • th

      public static final Th th(Object... children)
      Creates a Th element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • thead

      public static final Thead thead()
      Creates an empty Thead element.
      Returns:
      The new element.
    • thead

      public static final Thead thead(Object... children)
      Creates a Thead element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • time

      public static final Time time()
      Creates an empty Time element.
      Returns:
      The new element.
    • time

      public static final Time time(Object... children)
      Creates a Time element with the specified Time.children(Object[]) nodes.
      Parameters:
      children - The Time.children(Object[]) nodes.
      Returns:
      The new element.
    • title

      public static final Title title()
      Creates an empty Title element.
      Returns:
      The new element.
    • title

      public static final Title title(String text)
      Creates a Title element with the specified Title.text(Object) node.
      Parameters:
      text - The Title.text(Object) node.
      Returns:
      The new element.
    • tr

      public static final Tr tr()
      Creates an empty Tr element.
      Returns:
      The new element.
    • tr

      public static final Tr tr(Object... children)
      Creates a Tr element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • track

      public static final Track track()
      Creates an empty Track element.
      Returns:
      The new element.
    • track

      public static final Track track(Object src, String kind)
      Creates a Track element with the specified Track.src(Object) and Track.kind(String) attributes.
      Parameters:
      src - The Track.src(Object) attribute.
      kind - The Track.kind(String) attribute.
      Returns:
      The new element.
    • u

      public static final U u()
      Creates an empty U element.
      Returns:
      The new element.
    • u

      public static final U u(Object... children)
      Creates a U element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • ul

      public static final Ul ul()
      Creates an empty Ul element.
      Returns:
      The new element.
    • ul

      public static final Ul ul(Object... children)
      Creates a Ul element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • var

      public static final Var var()
      Creates an empty Var element.
      Returns:
      The new element.
    • var

      public static final Var var(Object... children)
      Creates a Var element with the specified child nodes.
      Parameters:
      children - The child nodes.
      Returns:
      The new element.
    • video

      public static final Video video()
      Creates an empty Video element.
      Returns:
      The new element.
    • video

      public static final Video video(Object src)
      Creates a Video element with the specified Video.src(Object) attribute.
      Parameters:
      src - The Video.src(Object) attribute.
      Returns:
      The new element.
    • wbr

      public static final Wbr wbr()
      Creates an empty Wbr element.
      Returns:
      The new element.