Congratulations, traveler! We've walked together through the entire module dedicated to CSS - the styling language that transforms raw HTML hieroglyphs into beautiful paintings on temple walls. Time for a brief summary of the most important concepts you've mastered.
<link> and <style>/* comment */h1, p, div - like pointing to a type of hieroglyph.class - like pointing to a group of scribes with the same specialization#identifier - like pointing to a specific pharaoh by namediv p, .container h2 - elements inside other elementsh1, h2, h3 { ... } - one rule for many elements+, >, ~, attribute selectors - precise controlred), hex (#ff0000), rgb (rgb(255, 0, 0)), hslfont-family, font-size, font-weighttext-align, text-decoration, text-transformThe CSS box model is the foundation of layout, just like stone blocks are the foundation of a pyramid:
padding - internal spacing (like the distance between the wall and the sarcophagus)margin - external spacing (like the space between pyramids)border - border (like defensive walls of a temple)box-sizing: border-box - predictable dimensions (modern standard)display: block, inline, inline-block, noneposition: static, relative, absolute, fixed, stickyz-index - element layers (like successive layers of paint on a temple wall):hover, :focus, :active, :visited - reaction to user interaction:first-child, :nth-child(), :last-child - selection based on position::before, ::after - adding decorative content::first-line, ::first-letter - styling text fragmentsIn this module, we compared CSS to the art of decorating Egyptian temples:
You've mastered the basics of CSS, which are the foundation of every beautiful website. In the following modules, you'll learn even more powerful tools:
Below you'll find an editor where you can test all the CSS techniques you've learned. Create a page about Egyptian gods, using as many CSS properties from this module as possible! Use different selectors, colors, fonts, box model, and positioning.