font-size
لتحديد حجم النص في عنصر معين. يمكن استخدام هذه القاعدة لعناصر متعددة لإنشاء تناسق مرئي للنص على الصفحة. في هذا التحدي ، ستقوم بتعيين القيم لجميع علامات h1
إلى h6
لموازنة أحجام العناوين. font-size
لعلامة h1
على 68 بكسل. font-size
علامة h2
إلى 52 بكسل. font-size
علامة h3
إلى 40 بكسل. font-size
علامة h4
على 32 بكسل. font-size
علامة h5
على 21 بكسل. font-size
علامة h6
على 14 بكسل. font-size
لعلامة h1
إلى 68 بكسل.
testString: 'assert($("h1").css("font-size") == "68px", "Your code should set the font-size
property for the h1
tag to 68 pixels.");'
- text: يجب أن تقوم التعليمات البرمجية بتعيين الخاصية font-size
للعلامة h2
إلى 52 بكسل.
testString: 'assert($("h2").css("font-size") == "52px", "Your code should set the font-size
property for the h2
tag to 52 pixels.");'
- text: يجب أن تقوم التعليمات البرمجية بتعيين الخاصية font-size
لعلامة h3
إلى 40 بكسل.
testString: 'assert($("h3").css("font-size") == "40px", "Your code should set the font-size
property for the h3
tag to 40 pixels.");'
- text: يجب أن تقوم التعليمات البرمجية بتعيين الخاصية font-size
لعلامة h4
إلى 32 بكسل.
testString: 'assert($("h4").css("font-size") == "32px", "Your code should set the font-size
property for the h4
tag to 32 pixels.");'
- text: يجب أن تقوم التعليمات البرمجية بتعيين الخاصية font-size
لعلامة h5
إلى 21 بكسل.
testString: 'assert($("h5").css("font-size") == "21px", "Your code should set the font-size
property for the h5
tag to 21 pixels.");'
- text: يجب أن تقوم التعليمات البرمجية بتعيين الخاصية font-size
لعلامة h6
إلى 14 بكسل.
testString: 'assert($("h6").css("font-size") == "14px", "Your code should set the font-size
property for the h6
tag to 14 pixels.");'
```