What is more efficient and/or what is better practice, to echo the HTML or have many open and close php tags?
php
Obviously for big areas of HTML it is sensible
PHP solves this problem by what is known as heredocs. Check it out please.
heredocs
Example:
echo <<{$k}s {$v}/kg EOD;
Note: The heredoc identifer (EOD in this example) must not have any spaces or indentation.