如何在php中将标签链接到html块

i'm trying to link a php label to a html block of code the problem is using inline code the label appears to be empty.Please help.

<?php                                        
    if ($count==0){                                          
       goto department;                                      
    }else{                                   
       $count+=1;                                            
       goto next_block;                                      
    }
?>

<?php
    department:{
?>

<div>
    <td id="hide-department" name="queried_dept">
        <div class="list-group" name="Department" id="Department">                              
            <a href="#" class="list-group-item list-group-item-action">
                <?php echo $row['DEP NAME'];?>
            </a>                                             
        </div>                                       
    </td>
</div>

<?php
    {
?>