--- id: bad87fee1348bd9aedf08820 title: Turn an Image into a Link challengeType: 0 videoUrl: '' localeTitle: تحويل صورة إلى رابط --- ## Description
يمكنك جعل العناصر إلى روابط التي تعشش لهم داخل a عنصر. عش صورتك داخل a عنصر. في ما يلي مثال: <a href="#"><img src="https://bit.ly/fcc-running-cats" alt="Three kittens running towards the camera."></a> تذكر أن تستخدم # ك a العنصر href الملكية من أجل تحويله إلى رابط معطل.
## Instructions
ضع عنصر الصورة الموجود داخل عنصر الارتساء. بعد الانتهاء من ذلك ، مرّر مؤشر الماوس فوق صورتك باستخدام المؤشر. يجب أن يصبح المؤشر الطبيعي لمؤشر المؤشر مؤشر النقر على الرابط. الصورة الآن رابط.
## Tests
```yml tests: - text: '' testString: 'assert($("a").children("img").length > 0, "Nest the existing img element within an a element.");' - text: '' testString: 'assert(new RegExp("#").test($("a").children("img").parent().attr("href")), "Your a element should be a dead link with a href attribute set to #.");' - text: '' testString: 'assert(code.match(/<\/a>/g) && code.match(//g).length === code.match(/a elements has a closing tag.");' ```
## Challenge Seed
```html

CatPhotoApp

Click here to view more cat photos.

A cute orange cat lying on its back.

Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.

Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.

```
## Solution
```js // solution required ```