<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.city
{
background-color: black;
color:blanchedalmond;
}
</style>
</head>
<body>
<div class="city">
<h1>Paris</h1>
</div>
<p class="city"><h2>Germany</h2></p>
</body>
</html>
I recently learned about using classes in HTML and I tried applying the same class to two elements, but for some reason the CSS styles are only being applied to one of them.