Complete the code to underline the text.
p {
text-decoration: [1];
}The text-decoration property with the value underline adds a line under the text.
Complete the code to add a line through the text.
span {
text-decoration: [1];
}The value line-through draws a line through the middle of the text.
Fix the error in the code to remove any text decoration.
h1 {
text-decoration: [1];
}The correct value to remove text decoration is none. Other options are invalid and cause errors.
Fill both blanks to add a dotted underline to links.
a {
text-decoration-line: [1];
text-decoration-style: [2];
}text-decoration-line: underline; adds a line below the text. text-decoration-style: dotted; makes that line dotted.
Fill all three blanks to create a red wavy line under the paragraph text.
p {
text-decoration-line: [1];
text-decoration-style: [2];
text-decoration-color: [3];
}The underline line is placed under the text. The wavy style makes the line wavy. The red color colors the line red.
