The default HTML tags
By default the HTML builder instance knows to render any tag you throw at it.
echo $h->asdfghij();
// will output <asdfghij></asdfghij>
If you need a self-closing tag you need to make() it
echo $h->make('hr/'); // see the / at the end
Because the form input tags behave differently the library comes packaged with a few tags that have their own classes:
input: the default input tagtext: extends theinputtag and has thetypeattribute default totextradioandcheckbox: aninputwith thetypeattribute set toradioand gets checked if the content is equal to thevalueattributepasswordtextareafilehiddenselectandmultiselect(aselectwith the attributemultiple)labelbuttonimg: this has its own class because it's a self-closing tag and it is very used
This allows you to easily create form elements like so
$h->radio(["name" => "true_or_false", "value" => 'true'], 'false');
$h->radio(["name" => "true_or_false", "value" => 'false'], 'false');
$h->select(["name" => "country", "_options" => $contriesList"], $_POST['country']);
$h->img(["src" => "http://whatever.com/img.png"]);