HTML::DOM::Element::HTML - A Perl class for representing <html> elements in an HTML DOM tree
use HTML::DOM; $doc = HTML::DOM->new; $elem = $doc->createElement('html'); $elem->version('-//IETF//DTD HTML 2.0//EN'); # set attribute $elem->version; # get attribute $elem->tagName; # etc
This class implements the <html> element in an HTML::DOM tree. It implements the HTMLHtmlElement DOM interface and inherits from HTML::DOM::Element (q.v.).
The only method that this class implements itself and does not inherit is:
Returns (and optionally sets) the version attribute.
version
HTML::DOM
HTML::DOM::Element
To install HTML::DOM, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::DOM
CPAN shell
perl -MCPAN -e shell install HTML::DOM
For more information on module installation, please visit the detailed CPAN module installation guide.