Write CSS code to make all second-level headings (h2 elements) green and italic.
Create a webpage titled “Midterm Exam” which displays your full name, centered, with font size 30 pixels, bold format, in "Times New Roman" font and red in color using inline CSS.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Midterm Exam</title>
<style>
h2 {
color: green;
font-style: italic;
}
</style>
</head>
<body>
<h1 style="text-align: center; font-size: 30px; font-weight: bold; font-family: 'Times New Roman'; color: red;">Lysun Sergiy</h1>
</body>
</html>
Comments
Leave a comment