Best markup for WordPress?
-
Hi,
I’m a newbie developing my own theme.
I currently hard-coded my page title as <h1>, but I would like to know what’s the best way to code in WordPress between :
<h1><?php echo the_title(); ?></h1>
or
<?php the_title( '<h1>', '</h1>' ); ?>
I guess it’s doing the same thing at the end, but what’s the most used way by devs?
Thank you
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Best markup for WordPress?’ is closed to new replies.