* 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.
64 lines
3.7 KiB
Markdown
64 lines
3.7 KiB
Markdown
---
|
||
id: bad87fee1348bd9aecf08801
|
||
title: Introduction to HTML5 Elements
|
||
challengeType: 0
|
||
videoUrl: ''
|
||
localeTitle: مقدمة إلى عناصر HTML5
|
||
---
|
||
|
||
## الوصف
|
||
<section id="description"> يقدم HTML5 مزيدًا من وسوم HTML الوصفية. تشمل تلك الوسوم <code>header</code> و <code>footer</code> <code>nav</code> و <code>video</code> و <code>article</code> و <code>section</code> وغيرها. تجعل هذه الوسوم كود HTML الخاص بك، أسهل في القراءة، وتساعد أيضًا في تحسين محركات البحث (SEO) وإمكانية الوصول. وسم <code>main</code> وهو احد اوسمة HTML5،وهو يساعد محركات البحث والمطورين الآخرين في العثور على المحتوى الرئيسي لصفحتك. <strong>ملحوظة</strong> <br> تتم تغطية العديد من وسوم HTML5 الجديدة وفوائدها في قسم "إمكانية الوصول التطبيقي". </section>
|
||
|
||
## التعليمات
|
||
<section id="instructions"> إنشئ عنصر <code>p</code> ثاني بعد العنصر <code>p</code> الموجود واضف له نص kitty ipsum التالي: <code>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</code> قم بكتابة الفقرات بداخل وسمي بداية ونهائية للعنصر <code>main</code>. </section>
|
||
|
||
## الاختبارات
|
||
<section id='tests'>
|
||
|
||
```yml
|
||
tests:
|
||
- text: يجب ان يكون هنالك عنصرين <code>p</code> بهما نص Kitty Ipsum.
|
||
testString: 'assert($("p").length > 1, "You need 2 <code>p</code> elements with Kitty Ipsum text.");'
|
||
- text: تأكد من ان كل عناصر <code>p</code> لها وسم إغلاق.
|
||
testString: 'assert(code.match(/<\/p>/g) && code.match(/<\/p>/g).length === code.match(/<p/g).length, "Make sure each of your <code>p</code> elements has a closing tag.");'
|
||
- text: يجب أن يحتوي عنصر <code>p</code> على الكلمات القليلة الأولى من نص <code>kitty ipsum text</code> الإضافي المزود.
|
||
testString: 'assert.isTrue((/Purr\s+jump\s+eat/gi).test($("p").text()), "Your <code>p</code> element should contain the first few words of the provided additional <code>kitty ipsum text</code>.");'
|
||
- text: يجب أن يحتوي الكود على عنصر <code>main</code> واحد.
|
||
testString: 'assert($("main").length === 1, "Your code should have one <code>main</code> element.");'
|
||
- text: يجب أن يحتوي العنصر <code>main</code> على عنصرين فقرة كأطفال (اي بداخل العنصر).
|
||
testString: 'assert($("main").children("p").length === 2, "The <code>main</code> element should have two paragraph elements as children.");'
|
||
- text: يجب أن يأتي الوسم الافتتاحي <code>main</code> قبل علامة الفقرة الأولى.
|
||
testString: 'assert(code.match(/<main>\s*?<p>/g), "The opening <code>main</code> tag should come before the first paragraph tag.");'
|
||
- text: يجب أن يأتي وسم الإغلاق <code>main</code> بعد علامة فقرة الإغلاق الثانية.
|
||
testString: 'assert(code.match(/<\/p>\s*?<\/main>/g), "The closing <code>main</code> tag should come after the second closing paragraph tag.");'
|
||
|
||
```
|
||
|
||
</section>
|
||
|
||
## Challenge Seed
|
||
<section id='challengeSeed'>
|
||
|
||
<div id='html-seed'>
|
||
|
||
```html
|
||
<h2>CatPhotoApp</h2>
|
||
|
||
<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>
|
||
|
||
```
|
||
|
||
</div>
|
||
|
||
|
||
|
||
</section>
|
||
|
||
## Solution
|
||
<section id='solution'>
|
||
|
||
```js
|
||
// solution required
|
||
```
|
||
</section>
|