Answer to Question #175200 in HTML/JavaScript Web Application for Rania

Question #175200


Write CSS code to make all second-level headings (h2 elements) green and italic. 


1
Expert's answer
2021-03-26T01:02:41-0400

Create the file "styleH2.CSS" and add the code below:


h2 {
  color: green;
  font-style: italic;
}


Create the file "headingsgreenItalic.html" and add the code below:


<!DOCTYPE html>
<html>
<head>
  <link rel="stylesheet" href="styleH2.css">
</head>
<body>
<h2>This is the first heading h2</h2>
<h2>This is the second heading h2</h2>
</body>
</html>

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS