a
عناصر لموقع الويب الخاص بك قبل ان تعرفه حيث سيربط. هذا مفيد أيضًا عند تغيير سلوك الارتباط باستخدام JavaScript
، والذي سنتعرف عليه لاحقًا. href
عبارة عن رابط يشير إلى "http://freecatphotoapp.com". استبدل قيمة السمة href
بـ #
، والمعروف أيضًا باسم رمز التجزئة ، لإنشاء رابط ميت. على سبيل المثال: href="#"
href
عبارة عن رابط يشير إلى "https://freecatphotoapp.com". استبدل قيمة السمة href
بـ #
، والمعروف أيضًا باسم رمز التجزئة ، لإنشاء رابط ميت. على سبيل المثال: href="#"
CatPhotoApp
Click here to view more cat photos.
+Click here to view more cat photos.
a
العنصر الذي يربط "http://freecatphotoapp.com".'
- testString: 'assert(($("a[href=\"http://freecatphotoapp.com\"]").length > 0 || $("a[href=\"http://www.freecatphotoapp.com\"]").length > 0), "You need an a
element that links to "http://freecatphotoapp.com".");'
+ - text: 'تحتاج إلى a
العنصر الذي يربط "https://freecatphotoapp.com".'
+ testString: 'assert(($("a[href=\"https://freecatphotoapp.com\"]").length > 0 || $("a[href=\"http://www.freecatphotoapp.com\"]").length > 0), "You need an a
element that links to "https://freecatphotoapp.com".");'
- text: الخاص بك a
يجب أن يكون عنصر النص مرساة "صور القط"
testString: 'assert($("a").text().match(/cat\sphotos/gi), "Your a
element should have the anchor text of "cat photos"");'
- text: إنشاء جديد p
العنصر حول الخاص a
العنصر. يجب أن يكون هناك 3 علامات p
على الأقل في كود HTML الخاص بك.
testString: 'assert($("p") && $("p").length > 2, "Create a new p
element around your a
element. There should be at least 3 total p
tags in your HTML code.");'
- text: ''
- testString: 'assert(($("a[href=\"http://freecatphotoapp.com\"]").parent().is("p") || $("a[href=\"http://www.freecatphotoapp.com\"]").parent().is("p")), "Your a
element should be nested within your new p
element.");'
+ testString: 'assert(($("a[href=\"https://freecatphotoapp.com\"]").parent().is("p") || $("a[href=\"http://www.freecatphotoapp.com\"]").parent().is("p")), "Your a
element should be nested within your new p
element.");'
- text: يجب أن يحتوي عنصر p
على النص "عرض المزيد" (مع وجود مسافة بعده).
- testString: 'assert(($("a[href=\"http://freecatphotoapp.com\"]").parent().text().match(/View\smore\s/gi) || $("a[href=\"http://www.freecatphotoapp.com\"]").parent().text().match(/View\smore\s/gi)), "Your p
element should have the text "View more " (with a space after it).");'
+ testString: 'assert(($("a[href=\"https://freecatphotoapp.com\"]").parent().text().match(/View\smore\s/gi) || $("a[href=\"http://www.freecatphotoapp.com\"]").parent().text().match(/View\smore\s/gi)), "Your p
element should have the text "View more " (with a space after it).");'
- text: الخاص بك a
يجب أن لا يكون عنصر النص "عرض أكثر".
testString: 'assert(!$("a").text().match(/View\smore/gi), "Your a
element should not have the text "View more".");'
- text: تأكد من أن كل عنصر من عناصر p
لديه علامة إغلاق.
@@ -47,7 +47,7 @@ tests:
CatPhotoApp
diff --git a/curriculum/challenges/arabic/01-responsive-web-design/basic-html-and-html5/use-html5-to-require-a-field.arabic.md b/curriculum/challenges/arabic/01-responsive-web-design/basic-html-and-html5/use-html5-to-require-a-field.arabic.md index b0deab5bcf..de161622b8 100644 --- a/curriculum/challenges/arabic/01-responsive-web-design/basic-html-and-html5/use-html5-to-require-a-field.arabic.md +++ b/curriculum/challenges/arabic/01-responsive-web-design/basic-html-and-html5/use-html5-to-require-a-field.arabic.md @@ -48,7 +48,7 @@ tests: