جواب «Colour and Font» چالش 1 از جلسهی 3
سؤال
داخل <head> یک <style> بگذار و برای body اینها را بنویس: margin: 0، پسزمینهی #fff4dd، رنگ متن #24163f، فونت Vazirmatn, Tahoma, sans-serif و line-height: 1.7.
راهنما
body { background: #fff4dd; color: #24163f; ... }؛ هر خط با ; تمام میشود.
یک جواب درست
<!DOCTYPE html>
<html lang="fa" dir="rtl">
<head>
<meta charset="utf-8">
<title>کوییز من</title>
<style>
body {
margin: 0;
background: #fff4dd;
color: #24163f;
font-family: Vazirmatn, Tahoma, sans-serif;
line-height: 1.7;
}
</style>
</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>
اول خودت امتحان کن؛ جوابهای دیگر هم قبول است. برگرد و خودت حلش کن