Complete the code to add content before a paragraph using the before pseudo-element.
p::[1] { content: "Note: "; }
The before pseudo-element inserts content before the element's content.
Complete the code to add a red star before every list item using the before pseudo-element.
li::[1] { content: "★ "; color: red; }
The ::before pseudo-element adds content before each list item, here a red star.
Fix the error in the code to correctly add text before a heading using the before pseudo-element.
h2[1] { content: "Chapter 1: "; font-weight: bold; }
The correct syntax for pseudo-elements uses double colons before the name, like ::before.
Fill both blanks to create a before pseudo-element that adds a green checkmark before each list item.
li::[1] { content: "[2] "; color: green; }
Use ::before to add content before elements. The green checkmark is "✔".
Fill all three blanks to add a blue arrow before each link with the before pseudo-element and make it bold.
a::[1] { content: "[2]"; color: [3]; font-weight: bold; }
Use ::before to add content before links. The arrow symbol is "→" and color is blue.