your using heredoc, there's no reason to do that, and an important thing to note that if you do, you can't then indent the closing identifier.
better to drop the heredoc syntax altogether
//SNIP
case "A":
$retValue = 'Grade is excellent.<br/><p class="content"><a href="LetterGrades.html">Enter another grade?</a>';
echo $retValue;
break;
//SNIP
generally not a good idea to put echo in a function ..
//SNIP
case "A":
$retValue = 'Grade is excellent.<br/><p class="content"><a href="LetterGrades.html">Enter another grade?</a>';
break;
//SNIP
echo CheckGrade($_GET["grade"]);