Is there a "standard" or semantically preferred method of hiding elements? Two easy options are using php:
<?
if ( $_URL == "/page/" ){
?>
<div id="page">
<div class="hide-or-show">
stuff
</div>
</div>
<?
}
<?
or using css:
<css>
.hide .hide-or-show {
display:none;
}
</css>
<div id="page" class="<? if ( $_URL == "/page/" ) print "hide"; ?>">
<div class="hide-or-show">
stuff
</div>
</div>
Both methods remove the element from the viewer. The php method would send less code. The css method seems cleaner (assuming you're removing more than just one element).
Is one method more "correct" than the other? Or is it just a programmer preference?