echo JHtml::link('https://www.example.com', 'Click Here');
echo JHtml::_( 'bootstrap.renderModal', '#myModal', array( 'title' => 'My Modal Title', 'content' => 'Modal Content Goes Here' ) );
$options = array( JHtml::_('select.option', '', '- Select Option -'), JHtml::_('select.option', 'option1', 'Option 1'), JHtml::_('select.option', 'option2', 'Option 2') ); echo JHtml::_('select.genericlist', $options, 'mydropdown', '', 'value', 'text');This code creates a dropdown menu with three options: a default option, 'Option 1', and 'Option 2'. In conclusion, JHtml is a PHP package library that provides a set of methods for generating HTML code efficiently and maintainably. It simplifies the process of creating HTML tags by providing various functions like creating links, buttons, menus, and more.