echo CHtml::link('Visit Google', 'https://google.com');
echo CHtml::link('Homepage', array('/site/index'));
echo CHtml::link('Click Me', '#', array('class'=>'button'));This example creates an anchor tag with a class of "button" and the href value set to "#" providing an onClick event the can be used to handle actions on the window, or within other scripts. The CHtml link method is a part of the Yii web framework, which contains a vast array of utility classes and methods to aid developers in building high-performance web applications.