I have this very basic HTML code with some centered flex content inside a full-screen div. However when I preview it, none of the paragraphs create a new paragraph. Instead, they all appear on a single line. Did I do something wrong?
<!DOCTYPE html>
<html lang="en">
<head>
<title>Page Title</title>
<style>
.main {
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
</style>
</head>
<body>
<div class="main">
<p>first line</p>
<p>second line</p>
<p>third line</p>
</div>
</body>
</html>