#CanteenHTML5 Create dynamic, well-formatted HTML5 markup with a simple an intuitive PHP API. This is a fork/rewrite of the [Gagawa](https://code.google.com/p/gagawa/) project. CanteenHTML5 is a concise, flexible and easy to remember API which makes it possible to create simple markup (such as a link) or more complex structures (such a table, document or nested list). All tags and attribute names are validated against the current HTML5 specification. ##Requirements This library requires a webserver running PHP 5.3+. Also, the root namespace for the library is `Canteen\HTML5`. ##Installation Simply include the `html.php` file. ```php include 'lib/html.php'; ``` ##Usage ###Basic To create an HTML node, simply call global `html` method, passing in the tag name and then any attributes. ```php echo html('img src=home.jpg'); echo html('img', 'src=home.jpg'); echo html('img', array('src'=>'home.jpg')); ``` All of these examples would output: ```html ``` ###Adding Attributes There are dfferent ways to add attributes for HTML container nodes such as `

`, `

`, or in the example below, `