I've been encountering an issue with a practice question. Even though I have everything set up correctly from HTML to CSS, the output is not displaying properly. If I include the <br>
tag in my code, the output appears like this: HTML and CSS output image in the browser. However, if I omit the <br>
tag, the output changes to: Another HTML and CSS output image in the browser.
h1 {
font-family: league spartan;
color: #ffa511;
text-align: center;
font-size: 55px;
font-weight: 900;
letter-spacing: 2px;
line-height: 1.5px;
text-decoration: teal double underline;
text-transform: uppercase;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<h1>Apna <br> College</h1>
</body>
</html>