如何格式化echo内的文本字体颜色“”

I would like to ask if how to put tags like <font> and have a inline style wherein to color a font

<?php
    $member_id = $_SESSION['member_id'];
    $sql = mysql_query("SELECT * FROM members WHERE member_id='$member_id'") or die(mysql_error());
    $getpic = mysql_fetch_array($sql);
    $post = mysql_query("SELECT * FROM members WHERE member_id = '$member_id'")or die(mysql_error());
    $row = mysql_fetch_array($post); 
        echo "<a href='profiletest.php'>"."<img src='image/members/".$getpic['photo']."'width='20px' height='20px'>"." ".$row['firstname']." ".$row['lastname']."</a>";
?>

How to format font color in echo?

echo in php is outputing everything you provide in within the quotations as HTML code, so if you have:

echo "<span style=\"color: #000;\">Something</span>"; it will display Something with color = #000