This WordPress Codex document clearly shows how to get the name of the first tag of a post:
<?php
$posttags = get_the_tags();
$count=0;
if ($posttags) {
foreach($posttags as $tag) {
$count++;
if (1 == $count) {
echo $tag->name . ' ';
}
}
}
?>
How do I modify the aforementioned code, so that a hyperlink of the tag is shown, instead of just the name?