Flexbox & Semantic layout

why use semantic HTML

Semantic tags improve accessibility, SEO, and developer readability.

They organize the code making it easier to understand.

Flexbox Basics

Flexbox is a CSS layout model that aligns items in rows or columns and distributes space efficiently.

The main axis is the direction items are placed, set by flex-direction. In a row, it goes left to right. The cross axis is perpendicular, going top to bottom. Common properties include justify-content for main axis alignment, align-items for cross axis alignment, and gap for spacing between items.