<html>
<head>
<style>
.city {
background-color: tomato;
color: white;
padding: 10px;
}
.main {
text-align: center;
}
</style>
</head>
<body>
<h2>Multiple Classes</h2>
<p>Here, all three h2 elements belongs to the "city" class. In addition, London also belongs to the "main" class, which center-aligns the text.</p>
<h2 class="city main">London</h2>
<h2 class="city">Paris</h2>
<h2 class="city">Tokyo</h2>
</body>
<!-- Mirrored from www.w3schools.com/html/tryit.asp?filename=tryhtml_classes_multiple by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 21 Dec 2022 16:46:39 GMT -->
</html>