بتل کد Battle Codeدارد باز می‌شود…

Colour and Font چالش 1 از جلسه‌ی 3، آسان

داخل <head> یک <style> بگذار و برای body این‌ها را بنویس: margin: 0، پس‌زمینه‌ی #fff4dd، رنگ متن #24163f، فونت Vazirmatn, Tahoma, sans-serif و line-height: 1.7.

<!DOCTYPE html>
<html lang="fa" dir="rtl">
<head>
<meta charset="utf-8">
<title>کوییز من</title>
</head>
<body>
<div class="app">
<header id="top">
  <h1 id="app-name">کوییز من</h1>
  <p id="tagline">موضوعت را انتخاب کن و خودت را بسنج</p>
</header>
<h2 id="question">پایتخت ایران کدام شهر است؟</h2>
<div id="options">
  <button class="option">اصفهان</button>
  <button class="option">شیراز</button>
  <button class="option">تهران</button>
  <button class="option">تبریز</button>
</div>
</div>
</body>
</html>

راهنما و جواب این چالش · برگشت به درس جلسه‌ی 3: ظاهر خودت با CSS · چالش بعدی: Colour Variables

بیشتر بخوان: پایتون چیست؟ تاریخچه، کاربردها و راه شروع