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

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -