page, index, and single php files all have one very important thing in common and that is they all use the famous loop
while (have_posts()) {
the_permalink()
the_post()
the_title()
the_content()
}
<?php
get_header();
while(have_posts()){
the_post(); ?>
<h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
<?php the_content(); ?>
<hr>
<?php }
get_footer();
?>
<?php get_footer() ?>