嵌套链接元素

Nest an Anchor Element within a Paragraph


作为参考,再次看一看a元素的图示:

嵌套链接元素

例如:

<p>Here's a <a href="https://freecodecamp.cn"> link to FreeCodeCamp中文社区</a> for you to follow.</p>

Nesting(嵌套)就是把一个元素放在另一个元素里面。

任务:把你的a元素嵌套进一个新的p元素(紧邻已有的h2元素之后),让段落的文本为View more cat photos,但是其中仅cat photos是一个链接,其余的是普通文本。


嵌套链接元素