<?= Html::a('Profile', ['user/view', 'id' => $id], ['class' => 'profile-link']) ?>
//The first argument is the display text.
//It's not encoded, so if you're using data entered by the user, you need to encode it with Html::encode().
//The second argument is what will be in the href attribute of the <a tag. See Url::to() for details on what values it accepts.
//The third argument is an array of tag attributes.