i am a beginner and learning wordpress. Codex is not for beginners the information there is in the form of notes, something that is very difficult to be grasped for any beginner.
I have few question, This is from header.php -
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset'); ?>">
<meta name="viewport" content="width=device-width">
<title><?php bloginfo('name'); ?></title>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div class="container">
<!-- site-header -->
<header class="site-header">
<h1><a href="<?php echo home_url(); ?>"><?php bloginfo('name'); ?></a></h1>
<h5><?php bloginfo('description'); ?></h5>
</header><!-- /site-header -->
Why is this part used twice -
<?php bloginfo('name'); ?>
First in head section -
<title><?php bloginfo('name'); ?></title>
then in Body -
<h1><a href="<?php echo home_url(); ?>"><?php bloginfo('name'); ?></a></h1>