![]() |
The HTML Multiple HTML elements can share the same class. |
<!DOCTYPE html>
<html>
<head>
<style>
.city {
background-color: tomato;
color: white;
border: 2px solid black;
margin: 20px;
padding: 20px;
}
</style>
</head>
<body>
<div class="city">
<h2>London</h2>
<p>London is the capital of England.</p>
</div>
</body>
</html>
Category: | Web Tutorial |
Sub Category: | HTML class Attribute |
Uploaded by: | Admin |
Read Articlehttps://horje.com/learn/1434/reference