We will now see how to add basic HTML tags in the body:
- We'll create a <header> tag, which is an HTML5 tag. We will enter an <h1> tag, and in this tag we will add the website name:
<header> <h1><?php bloginfo('name'); ?></h1> </header>
- We can actually take the dynamic code from the <title> tag, which we saw earlier, and put that in <h1> as well. Now if we save that and look at our frontend, we get WordpressDEV:
- Now, if we wanted to change the frontend output, we could go to Settings, and change Site Title to My Website:
- Save the settings. Now, we can see the change.
- In addition to the name, we can also include ...