Displays or returns the title of the current post. This tag may only be used within The Loop, to get the title of a post outside of the loop use get_the_title. If the post is protected or private, this will be noted by the words "Protected: " or "Private: " prepended to the title.
<?php the_title( $before, $after, $echo ); ?>
<?php the_title( '<h3>', '</h3>' ); ?>
This would print the title to the screen as an h3.
the_title() is located in