PHP code example of primalbase / html-tag2

1. Go to this page and download the library: Download primalbase/html-tag2 library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

primalbase / html-tag2 example snippets


Tag::$DocType = 'Primalbase\Tag\DocType\Hhtml5';
echo Tag::br() //=> <br>

Tag::$DocType = 'Primalbase\Tag\DocType\Xhtml';
echo Tag::br() //=> <br />

Tag::$DocType = 'Primalbase\Tag\DocType\Html4';
echo Tag::br() //=> <br>