Question: I am learning yii2 for one of my product based webapp. I am converting existing code into yii2 html code format & getting problem while comverting the following:

```html
<a href="grid_options.html">
<div>
  <i class="fa fa-upload fa-fw"></i> Server Rebooted
  <span class="pull-right text-muted small">4 minutes ago</span>
  </div>
</a>
```

Answer: 
Besides Ali's answer that is totally valid, you can also just write

```
use yii\helpers\Url;

    <a href="<?= Url::to('LINK')?>">
    <div>
      <i class="fa fa-upload fa-fw"></i> Server Rebooted
      <span class="pull-right text-muted small">4 minutes ago</span>
      </div>
    </a>

```
if you want to use "controller/action" and Parameters in your link than use below url function

```
Url::toRoute(['product/view', 'id' => 42]);

```