This is a paragraph of text. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
This is a paragraph of text. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
The targeted paragraph
HTML - p has id that matches href of anchor - apply some style to the p when it’s targetedThe targeted paragraph
HTML p:target { background: yellow; transition: background .25s ease-in-out; } CSS - p has id that matches href of anchor - apply some style to the p when it’s targeted