Coding task · HTML and CSS course · Module 3: CSS Basics
CSS Font Size and Style
In Ancient Egypt, text hierarchy was crucial. CSS lets you control fonts! Properties: font-family (typeface), font-size (size), font-weight (boldness), font-style (italic), text-align (alignment).
Task
Create an Egyptian text hierarchy: <h1> for the Pharaoh (font-size: 48px, font-weight: bold, color: #8B6914, text-align: center), <h2> for the Priest (font-size: 32px, font-family: serif), <h3> for the Scribe (font-size: 24px, font-style: italic). Add a <p> with normal text (font-size: 16px, line-height: 1.6).