public static HtmlTree HTML ( String lang , Content head , Content body ) { HtmlTree htmltree = new HtmlTree ( HtmlTag . HTML , nullCheck ( head ) , nullCheck ( body ) ) ; htmltree . addAttr ( HtmlAttr . LANG , nullCheck ( lang ) ) ; return htmltree ; }
Generates an HTML tag with lang attribute . It also adds head and body content to the HTML tree .