Question #100179

Create a web page that has two paragraphs. One of the paragraphs should be aligned to the center and have red text. The other paragraph should be aligned to the right and be in italics.

Expert's answer

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<style>
		.first {
			text-align: center;
			color: red;
		}

		.second {
			text-align: right;
			font-style: italic;
		}
	</style>
</head>
<body>
	<p class="first">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quisquam, accusantium.</p>
	<p class="second">Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>
</body>
</html>
LATEST TUTORIALS
APPROVED BY CLIENTS