CHtml::link not working

why this error occur Class ‘CHtml’ not found

Because there’s no CHtml in Yii 2.0. There’s now Html from a namespace.