freeCodeCamp/guide/chinese/certifications/responsive-web-design/basic-html-and-html5/turn-an-image-into-a-link/index.md

11 lines
531 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
title: Turn an Image into a Link
localeTitle: 将图像转换为链接
---
## 将图像转换为链接
在之前的挑战中您已经完成了将HTML元素嵌套到另一个中的任务例如 [在段落中嵌套锚元素](https://learn.freecodecamp.org/responsive-web-design/basic-html-and-html5/nest-an-anchor-element-within-a-paragraph)
现在要求您使用不同的标签解决相同的问题:只需将图像(按原样)放在锚元素中,它就会成为该锚点的可点击内容。
祝你好运!