It depends on what you define as "valid."
Will it display correctly? I do not think it is better to use:
<div data-role="header" data-theme="a" data-position="inline">
<h1><?php print $site_name; ?></h1>
</div>
<div data-role="header" data-theme="a" data-position="inline">
<h2 class="ui-title"><?php print $title; ?></h2>
</div>
Does it make sense to do this? I don’t think so either
source
share