Closing element tags in php -



Closing element tags in php -

i have started larn php books , have come across don't understand. in book never close html tags right practice or should closed? here illustration of books content:

<?php $cars = array('dodge'=>'viper','chevrolet'=>'camaro','ford'=>'mustang'); echo '<dl><dt>original element order:<dd>'; foreach($cars $key => $value){ echo '&bull;', $key.' '.$value; } ?>

could tell me if right , mutual practice? thanks

some old books :). need closed. need echo </dd></dt></dl> after foreach loop.

php

Comments