Construct HTML document with CSS to Set the text color of different elements and align the text.


Input


<!DOCTYPE html>
<html>
<head>
<style>
div.a {
  text-align: center;
}
body {
  color: red;
}

h1 {
  color: violet;
}
</style>
</head>
<body>
<div class="a">
<h1>Coronavirus</h1>
<p>Coronaviruses are a group of related RNA viruses that cause diseases in mammals and birds.
<br> In humans, these viruses cause respiratory.tract infections that can range from mild to
<br>lethal. Mild illnesses include some cases of the common cold, while more lethal varieties
<br>can cause SARS, MERS, and COVID-19. </p>
</div>
</body>
</html>




Output



No comments:

Post a Comment