font-size
كل علامة عنوان في التحدي الأخير ، هنا ستقوم بتعديل font-weight
. تحدد الخاصية font-weight
كيفية ظهور أحرف سميكة أو رقيقة في قسم من النص. font-weight
h1
لعلامة h1
على 800. font-weight
لعلامة h2
على 600. font-weight
h3
لعلامة h3
على 500. font-weight
h4
لعلامة h4
على 400. font-weight
h5
لعلامة h5
على 300. font-weight
لعلامة h6
على 200. font-weight
لعلامة h1
إلى 800.
testString: 'assert($("h1").css("font-weight") == "800", "Your code should set the font-weight
property for the h1
tag to 800.");'
- text: يجب أن تقوم التعليمات البرمجية بتعيين الخاصية font-weight
لعلامة h2
إلى 600.
testString: 'assert($("h2").css("font-weight") == "600", "Your code should set the font-weight
property for the h2
tag to 600.");'
- text: يجب أن تقوم التعليمات البرمجية بتعيين الخاصية font-weight
لعلامة h3
إلى 500.
testString: 'assert($("h3").css("font-weight") == "500", "Your code should set the font-weight
property for the h3
tag to 500.");'
- text: يجب أن تقوم التعليمات البرمجية بتعيين الخاصية font-weight
لعلامة h4
إلى 400.
testString: 'assert($("h4").css("font-weight") == "400", "Your code should set the font-weight
property for the h4
tag to 400.");'
- text: يجب أن تقوم التعليمات البرمجية بتعيين الخاصية font-weight
لعلامة h5
إلى 300.
testString: 'assert($("h5").css("font-weight") == "300", "Your code should set the font-weight
property for the h5
tag to 300.");'
- text: يجب أن تقوم font-weight
بتعيين الخاصية font-weight
للعلامة h6
إلى 200.
testString: 'assert($("h6").css("font-weight") == "200", "Your code should set the font-weight
property for the h6
tag to 200.");'
```