<style>
h2{color: blue;}CatPhotoApp
</style>
<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
Your browser information:
Your Browser User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0.
You use HTML to create the structure of your page and the CSS to style that same structure.
In your example, what’s inside the style tags is actually CSS, which is used to style your HTML.
So, if you want to style your h2, you still have to create those tags on your page so you can reference it in your style.
Here’s an example:
<style>
h2 {
color: blue;
}
</style>
<h2>CatPhotoApp</h2>
<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
Notice we’re defining the content inside the h2 and we’re styling it inside the style tags.
Hope this helps, and good luck with your learning!