get_the_term_list() display in ul li and remove tag

<?php $terms = get_the_terms();
   echo '<ul class="styles">';
   foreach($terms as $term){
     echo "<li>".$term->name."</li>";
   }
  echo "</ul>";
?>

error code: 523