* Improving Arabic translation Improving Arabic translation in say-hello-to-html-elements.arabic.md file * Translating Description and Improving Arabic Translation. Translated the Description from the English version. Also Improving the Arabic translation. * Fixing a mistake in translating the tests. * Fixing a mistake I made while translating the tests in headline-with-the-h2-element.arabic.md * Improving the Arabic translation and fixing grammar. * adding space to (I'm a p tag) in line 10 * fixing bad indentation. * fixing bad indentation (mistake by me) * fixing bad indentation (mistake by me) * Add missing Description and Test text Adding missing description text and Test text from English version. Also general improvements to the Translation. * Adding missing description text and Test text Adding missing description text and Test text in in uncomment-html.arabic.md from English version. Also general improvements to the Translation. * Improving the Arabic translation * Minor updates to the translation * Overall Enhancement to the translation. * General translation improvement Improving the translation on the Description, Instructions and the Tests. Separate text to different lines for better readability. * Improving "Link to External Pages with Anchor Elements" Arabic Translation. * Matching characters and entities to the English version.
70 lines
2.7 KiB
Markdown
70 lines
2.7 KiB
Markdown
---
|
|
id: bad87fee1348bd9aedf08816
|
|
title: Link to External Pages with Anchor Elements
|
|
challengeType: 0
|
|
videoUrl: ''
|
|
localeTitle: ربط الصفحات الخارجية بستخدام عناصر المرساة Anchor
|
|
|
|
---
|
|
|
|
## Description
|
|
<section id="description">
|
|
يمكنك استخدام العنصر <code>anchor</code> للربط بمحتوى خارج صفحة الويب الخاصة بك.
|
|
يحتاج العنصر <code>anchor</code> إلى عنوان ويب يسمى بالسمة <code>href</code>. هذه السمة تحتاج نص للرابط.
|
|
في ما يلي مثال:
|
|
<code><a href="https://freecodecamp.org">روابط إلى freecodecamp.org</a></code> ثم يعرض المتصفح النص <strong>"روابط إلى freecodecamp.org"</strong> كرابط يمكنك النقر عليها.
|
|
وسيأخذك هذا الرابط إلى عنوان الويب <strong>https://www.freecodecamp.org</strong>.
|
|
</section>
|
|
|
|
## Instructions
|
|
<section id="instructions"> إنشاء العنصر <code>a</code> الذي يربط <code>http://freecatphotoapp.com</code> له النص "cat photos"، في <code> نص الرابط</code> . </section>
|
|
|
|
## Tests
|
|
<section id='tests'>
|
|
|
|
```yml
|
|
tests:
|
|
- text: يجب أن يحتوي العنصر <code>a</code> الخاص بك على "cat photos" كنص للرابط <code>anchor text </code>.
|
|
testString: 'assert((/cat photos/gi).test($("a").text()), "Your <code>a</code> element should have the <code>anchor text</code> of "cat photos".");'
|
|
- text: 'تحتاج إلى عنصر <code>a</code> يربط بالعنوان <code>http://freecatphotoapp.com</code>'
|
|
testString: 'assert(/http:\/\/(www\.)?freecatphotoapp\.com/gi.test($("a").attr("href")), "You need an <code>a</code> element that links to <code>http://freecatphotoapp<wbr>.com</code>");'
|
|
- text: تأكد من ان العنصر <code>a</code> يحتوي على وسم إغلاق.
|
|
testString: 'assert(code.match(/<\/a>/g) && code.match(/<\/a>/g).length === code.match(/<a/g).length, "Make sure your <code>a</code> element has a closing tag.");'
|
|
|
|
```
|
|
|
|
</section>
|
|
|
|
## Challenge Seed
|
|
<section id='challengeSeed'>
|
|
|
|
<div id='html-seed'>
|
|
|
|
```html
|
|
<h2>CatPhotoApp</h2>
|
|
<main>
|
|
|
|
|
|
|
|
<img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back.">
|
|
|
|
<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
|
|
<p>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>
|
|
</main>
|
|
|
|
```
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</section>
|
|
|
|
## Solution
|
|
<section id='solution'>
|
|
|
|
```js
|
|
// solution required
|
|
```
|
|
</section>
|