PHP code example of fernandovaller / html-tags-generator

1. Go to this page and download the library: Download fernandovaller/html-tags-generator 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/ */

    

fernandovaller / html-tags-generator example snippets




use FVCode\Html\Html;

href' => 'https://www.google.com'
]);

//Out: <a href="https://www.google.com">link</a>



use FVCode\Html\Html;

th 2'];

$table['tbody'][] = ['td 1', 'td 2'];
$table['tbody'][] = ['td 3', 'td 4'];

$table['tfoot'] = ['td 1', 'td 2'];

echo Html::table($table, ['table' => [
    "border" => 1
]]);

comment h1 h2 h3 h4 h5 h6 p b strong i em mark small del ins sub sup blockquote q abbr address cite bdo a img picture figure figcaption ul ol dl li dt dd header footer main nav div article section aside fieldset legend span iframe table thead tbody tfoot tr td th