public static HtmlTree A ( HtmlVersion htmlVersion , String attr , Content body ) { HtmlTree htmltree = new HtmlTree ( HtmlTag . A ) ; htmltree . addAttr ( ( htmlVersion == HtmlVersion . HTML4 ) ? HtmlAttr . NAME : HtmlAttr . ID , nullCheck ( attr ) ) ; htmltree . addContent ( nullCheck ( body ) ) ; return htmltree ; }
Generates an HTML anchor tag with an id or a name attribute and content .