<html>
<head>
<style>
.city {
background-color: tomato;
color: white;
padding: 10px;
}
</style>
</head>
<body>
<h2>The class Attribute</h2>
<p>Use CSS to style elements with the class name "city":</p>
<h2 class="city">London</h2>
<p>London is the capital of England.</p>
<h2 class="city">Paris</h2>
<p>Paris is the capital of France.</p>
<h2 class="city">Tokyo</h2>
<p>Tokyo is the capital of Japan.</p>
</body>
<!-- Mirrored from www.w3schools.com/html/tryit.asp?filename=tryhtml_classes_css by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 21 Dec 2022 16:46:39 GMT -->
</html>