Why is the pink part of the code not working? Im trying to get the first sentence shown as pink but it is showing as black. question 2 The following is an example of the square cube of a number: If x = 4, x3 is 64
Why is the pink part of the code not working? Im trying to get the first sentence shown as pink but it is showing as black.
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>question 2</title>
<style>
.strikethrough {
text-decoration: line-through;
}
.underline-green {
text-decoration: underline;
color: green;
}
p {
margin: 0;
padding: 0;
}
.pink-text {
color: salmonpink;
}
.blue-text {
color: dodgerblue;
}
</style>
</head>
<body>
<p class="pink-text">The following is an example of the <span class="strikethrough">square</span> <span class="underline-green">cube</span> of a number:</p>
<br>
<p class="blue-text">If x = 4, x<sup>3</sup> is 64</p>
</body>
</html>
In this question we have to understand and fix the HTML code where a class with pink text is not working.
Let's understand and hope this helps, If you have any queries please utilize threaded question feature.
Step by step
Solved in 3 steps with 2 images