[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"site-config":3,"course-tree":6,"blog-categories":748,"topic:css-align-content":772},{"data":4},{"google_site_verification":5,"ga4_measurement_id":5,"site_name":5,"default_og_image":5,"twitter_handle":5},null,{"data":7},[8,334],{"id":9,"name":10,"slug":11,"icon":5,"icon_url":5,"short_description":12,"meta_title":13,"meta_description":14,"og_image":15,"locale":16,"subcategories":17},1,"HTML","html-tutorial","Welcome to our HTML Tutorial for Beginners, a complete guide designed to help you learn HTML from the ground up.\n\nHTML, which stands for HyperText Markup Language, is the standard language used to structure content on the web. Whether you want to become a web developer, build your own website, or continue learning CSS and JavaScript, understanding HTML is an essential first step.\n\nThis HTML course takes you through the fundamentals step by step, using simple explanations and practical examples. ","HTML Tutorial for Beginners - Learn HTML Step by Step","Learn HTML from scratch with our beginner-friendly HTML tutorial. Understand HTML tags, elements, forms, tables, links, images, semantic HTML and more with practical examples.","https:\u002F\u002Fwpfsharp.com\u002Fstorage\u002Fcourses\u002Fog\u002F01M2GK0XN45C0B937NF9XFAD4S.webp","en",[18,46,82,106,182,216,230,258,282,298],{"id":9,"name":19,"slug":20,"order_index":9,"topics":21},"HTML Fundamentals & Setup","html-fundamentals-setup",[22,26,30,34,38,42],{"id":9,"title":23,"slug":24,"order_index":9,"cornerstone":25,"reading_time_minutes":9},"HTML Introduction & History","html-introduction-and-history",false,{"id":27,"title":28,"slug":29,"order_index":9,"cornerstone":25,"reading_time_minutes":27},2,"HTML Editors & Environment Setup","html-editors-and-environment-setup",{"id":31,"title":32,"slug":33,"order_index":31,"cornerstone":25,"reading_time_minutes":27},3,"HTML Basic Syntax & Document Structure","html-basic-syntax-document-structure",{"id":35,"title":36,"slug":37,"order_index":35,"cornerstone":25,"reading_time_minutes":27},4,"HTML Elements & Tags Explained","html-elements-tags-explained",{"id":39,"title":40,"slug":41,"order_index":39,"cornerstone":25,"reading_time_minutes":27},5,"HTML Attributes (Global & Standard)","html-attributes-global-standard",{"id":43,"title":44,"slug":45,"order_index":43,"cornerstone":25,"reading_time_minutes":27},6,"Understanding the DOCTYPE & HTML5 Boilerplate","understanding-doctype-html5-boilerplate",{"id":27,"name":47,"slug":48,"order_index":27,"topics":49},"Text & Content Basics","text-content-basics",[50,54,58,62,66,70,74,78],{"id":51,"title":52,"slug":53,"order_index":51,"cornerstone":25,"reading_time_minutes":27},7,"HTML Headings (H1–H6) & SEO Best Practices","html-headings-h1-h6-seo-best-practices",{"id":55,"title":56,"slug":57,"order_index":55,"cornerstone":25,"reading_time_minutes":27},8,"HTML Paragraphs & Line Breaks","html-paragraphs-line-breaks",{"id":59,"title":60,"slug":61,"order_index":59,"cornerstone":25,"reading_time_minutes":9},9,"HTML Text Formatting (Bold, Italic, Mark, etc.)","html-text-formatting-bold-italic-mark",{"id":63,"title":64,"slug":65,"order_index":63,"cornerstone":25,"reading_time_minutes":27},10,"HTML Styles (Inline CSS Basics)","html-styles-inline-css-basics",{"id":67,"title":68,"slug":69,"order_index":67,"cornerstone":25,"reading_time_minutes":27},11,"HTML Quotations & Citations (blockquote, q, cite)","html-quotations-citations-blockquote-q-cite",{"id":71,"title":72,"slug":73,"order_index":71,"cornerstone":25,"reading_time_minutes":27},12,"HTML Comments (Best Practices)","html-comments-best-practices",{"id":75,"title":76,"slug":77,"order_index":75,"cornerstone":25,"reading_time_minutes":27},13,"HTML Colors (Names, HEX, RGB, HSL)","html-colors-names-hex-rgb-hsl",{"id":79,"title":80,"slug":81,"order_index":79,"cornerstone":25,"reading_time_minutes":27},14,"HTML & CSS Integration (Inline, Internal, External)","html-css-integration-inline-internal-external",{"id":31,"name":83,"slug":84,"order_index":31,"topics":85},"Links, Media & Navigation","links-media-navigation",[86,90,94,98,102],{"id":87,"title":88,"slug":89,"order_index":87,"cornerstone":25,"reading_time_minutes":27},15,"HTML Links (Anchor Tags & Hyperlinks)","html-links-anchor-tags-hyperlinks",{"id":91,"title":92,"slug":93,"order_index":91,"cornerstone":25,"reading_time_minutes":27},16,"HTML Images (Alt Text, Lazy Loading, Formats)","html-images-alt-text-lazy-loading-formats",{"id":95,"title":96,"slug":97,"order_index":95,"cornerstone":25,"reading_time_minutes":9},17,"HTML Favicon Setup","html-favicon-setup",{"id":99,"title":100,"slug":101,"order_index":99,"cornerstone":25,"reading_time_minutes":27},18,"HTML Page Title & Meta Tags (SEO Essentials)","html-page-title-meta-tags-seo-essentials",{"id":103,"title":104,"slug":105,"order_index":103,"cornerstone":25,"reading_time_minutes":27},19,"HTML File Paths (Absolute vs Relative)","html-file-paths-absolute-vs-relative",{"id":35,"name":107,"slug":108,"order_index":35,"topics":109},"Structuring Content","structuring-content",[110,115,120,125,130,134,138,142,146,150,154,158,162,166,170,174,178],{"id":111,"title":112,"slug":113,"order_index":114,"cornerstone":25,"reading_time_minutes":27},24,"HTML Tables Explained: Rows, Columns & Merging Cells","html-tables-rows-columns-merging-cells",20,{"id":116,"title":117,"slug":118,"order_index":119,"cornerstone":25,"reading_time_minutes":27},25,"HTML Lists: Ordered, Unordered & Description Lists","html-lists-ordered-unordered-description",21,{"id":121,"title":122,"slug":123,"order_index":124,"cornerstone":25,"reading_time_minutes":27},26,"HTML Block vs Inline Elements Explained","html-block-vs-inline-elements",22,{"id":126,"title":127,"slug":128,"order_index":129,"cornerstone":25,"reading_time_minutes":9},27,"HTML Div & Span: Generic Containers Explained","html-div-and-span-containers",23,{"id":131,"title":132,"slug":133,"order_index":111,"cornerstone":25,"reading_time_minutes":27},28,"HTML Classes vs ID: Selectors Explained","html-classes-vs-id-selectors-explained",{"id":135,"title":136,"slug":137,"order_index":116,"cornerstone":25,"reading_time_minutes":9},29,"HTML Iframes: Embedding External Content","html-iframes-embedding-content",{"id":139,"title":140,"slug":141,"order_index":121,"cornerstone":25,"reading_time_minutes":27},30,"HTML Head Element Deep Dive","html-head-element-deep-dive",{"id":143,"title":144,"slug":145,"order_index":126,"cornerstone":25,"reading_time_minutes":27},31,"HTML Layout Techniques: Header, Nav & Footer","html-layout-techniques-header-nav-footer",{"id":147,"title":148,"slug":149,"order_index":131,"cornerstone":25,"reading_time_minutes":27},32,"Responsive HTML Design: Mobile-First Approach","responsive-html-design-mobile-first-approach",{"id":151,"title":152,"slug":153,"order_index":135,"cornerstone":25,"reading_time_minutes":31},74,"HTML Semantic Elements (article, section, aside, nav)","html-semantic-elements-article-section-aside-nav",{"id":155,"title":156,"slug":157,"order_index":139,"cornerstone":25,"reading_time_minutes":27},75,"HTML Style Guide & Coding Conventions","html-style-guide-coding-conventions",{"id":159,"title":160,"slug":161,"order_index":143,"cornerstone":25,"reading_time_minutes":27},76,"HTML Entities & Special Characters","html-entities-special-characters",{"id":163,"title":164,"slug":165,"order_index":147,"cornerstone":25,"reading_time_minutes":9},77,"HTML Symbols","html-symbols",{"id":167,"title":168,"slug":169,"order_index":167,"cornerstone":25,"reading_time_minutes":9},33,"HTML Emojis 😀: How to Use Them in Web Pages","html-emojis-trending-guide",{"id":171,"title":172,"slug":173,"order_index":171,"cornerstone":25,"reading_time_minutes":27},34,"HTML Character Sets: UTF-8 & Encoding Explained","html-character-sets-utf-8-encoding",{"id":175,"title":176,"slug":177,"order_index":175,"cornerstone":25,"reading_time_minutes":9},35,"HTML URL Encoding Explained","html-url-encoding-explained",{"id":179,"title":180,"slug":181,"order_index":179,"cornerstone":25,"reading_time_minutes":9},36,"HTML vs XHTML: Key Differences","html-vs-xhtml-key-differences",{"id":51,"name":183,"slug":184,"order_index":39,"topics":185},"Forms & User Input","forms-user-input",[186,191,196,201,206,211],{"id":187,"title":188,"slug":189,"order_index":190,"cornerstone":25,"reading_time_minutes":27},49,"HTML Forms Introduction","html-forms-introduction",37,{"id":192,"title":193,"slug":194,"order_index":195,"cornerstone":25,"reading_time_minutes":9},50,"HTML Form Attributes (action, method, etc.)","html-form-attributes-action-method",38,{"id":197,"title":198,"slug":199,"order_index":200,"cornerstone":25,"reading_time_minutes":9},51,"HTML Form Elements (input, select, textarea, button)","html-form-elements-input-select-textarea-button",39,{"id":202,"title":203,"slug":204,"order_index":205,"cornerstone":25,"reading_time_minutes":27},52,"HTML Input Types (Modern Types: email, date, color, range)","html-input-types-modern-email-date-color-range",40,{"id":207,"title":208,"slug":209,"order_index":210,"cornerstone":25,"reading_time_minutes":27},53,"HTML Input Attributes (required, placeholder, pattern)","html-input-attributes-required-placeholder-pattern",41,{"id":212,"title":213,"slug":214,"order_index":215,"cornerstone":25,"reading_time_minutes":27},54,"HTML Form Validation (Client-Side)","html-form-validation-client-side",42,{"id":55,"name":217,"slug":218,"order_index":43,"topics":219},"Graphics & Visuals","graphics-visuals",[220,225],{"id":221,"title":222,"slug":223,"order_index":224,"cornerstone":25,"reading_time_minutes":31},55,"HTML Canvas (2D Drawing API) 🔥","html-canvas-2d-drawing-api",43,{"id":226,"title":227,"slug":228,"order_index":229,"cornerstone":25,"reading_time_minutes":31},56,"HTML SVG (Scalable Vector Graphics)","html-svg-scalable-vector-graphics",44,{"id":59,"name":231,"slug":232,"order_index":51,"topics":233},"Multimedia","multimedia",[234,239,244,249,254],{"id":235,"title":236,"slug":237,"order_index":238,"cornerstone":25,"reading_time_minutes":27},57,"HTML Media Overview","html-media-overview",45,{"id":240,"title":241,"slug":242,"order_index":243,"cornerstone":25,"reading_time_minutes":27},58,"HTML Video Embedding (Native Player)","html-video-embedding-native-player",46,{"id":245,"title":246,"slug":247,"order_index":248,"cornerstone":25,"reading_time_minutes":27},59,"HTML Audio Embedding","html-audio-embedding",47,{"id":250,"title":251,"slug":252,"order_index":253,"cornerstone":25,"reading_time_minutes":27},60,"HTML Plug-ins (Object & Embed Tags)","html-plugins-object-embed-tags",48,{"id":255,"title":256,"slug":257,"order_index":187,"cornerstone":25,"reading_time_minutes":27},61,"Embedding YouTube Videos in HTML","embedding-youtube-videos-in-html",{"id":63,"name":259,"slug":260,"order_index":55,"topics":261},"HTML5 Web APIs (Advanced\u002FTrending)","html5-web-apis-advancedtrending",[262,266,270,274,278],{"id":263,"title":264,"slug":265,"order_index":192,"cornerstone":25,"reading_time_minutes":27},62,"HTML Geolocation API","html-geolocation-api",{"id":267,"title":268,"slug":269,"order_index":197,"cornerstone":25,"reading_time_minutes":27},63,"HTML Drag & Drop API","html-drag-and-drop-api",{"id":271,"title":272,"slug":273,"order_index":202,"cornerstone":25,"reading_time_minutes":27},64,"HTML Web Storage (localStorage & sessionStorage)","html-web-storage-localstorage-sessionstorage",{"id":275,"title":276,"slug":277,"order_index":207,"cornerstone":25,"reading_time_minutes":27},65,"HTML Web Workers (Background Processing)","html-web-workers-background-processing",{"id":279,"title":280,"slug":281,"order_index":212,"cornerstone":25,"reading_time_minutes":27},66,"HTML Server-Sent Events (SSE)","html-server-sent-events-sse",{"id":67,"name":283,"slug":284,"order_index":59,"topics":285},"Accessibility & Best Practices (High-Demand  Skill) �","accessibility-best-practices-high-demand-skill",[286,290,294],{"id":287,"title":288,"slug":289,"order_index":221,"cornerstone":25,"reading_time_minutes":27},67,"HTML Accessibility (ARIA, Screen Readers)","html-accessibility-aria-screen-readers",{"id":291,"title":292,"slug":293,"order_index":226,"cornerstone":25,"reading_time_minutes":27},68,"Writing Semantic & SEO-Friendly HTML","writing-semantic-and-seo-friendly-html",{"id":295,"title":296,"slug":297,"order_index":235,"cornerstone":25,"reading_time_minutes":27},69,"HTML Performance Optimization Basics","html-performance-optimization-basics",{"id":71,"name":299,"slug":300,"order_index":63,"topics":301},"Reference & Practice","reference-practice",[302,306,310,314,318,322,326,330],{"id":303,"title":304,"slug":305,"order_index":9,"cornerstone":25,"reading_time_minutes":27},70,"HTML Tag List (Full Reference)","html-tag-list-full-reference",{"id":307,"title":308,"slug":309,"order_index":27,"cornerstone":25,"reading_time_minutes":27},71,"HTML Global Attributes Reference","html-global-attributes-reference",{"id":311,"title":312,"slug":313,"order_index":31,"cornerstone":25,"reading_time_minutes":27},72,"HTML Events Reference","html-events-reference",{"id":315,"title":316,"slug":317,"order_index":35,"cornerstone":25,"reading_time_minutes":27},73,"HTML Browser Support & Compatibility","html-browser-support-compatibility",{"id":319,"title":320,"slug":321,"order_index":39,"cornerstone":25,"reading_time_minutes":27},78,"HTML Doctypes Reference","html-doctypes-reference",{"id":323,"title":324,"slug":325,"order_index":43,"cornerstone":25,"reading_time_minutes":27},79,"HTTP Methods & Messages (Basics for Forms\u002FAPIs)","http-methods-messages-basics",{"id":327,"title":328,"slug":329,"order_index":51,"cornerstone":25,"reading_time_minutes":31},80,"HTML Interview Preparation (Top Q&A)","html-interview-preparation-top-qa",{"id":331,"title":332,"slug":333,"order_index":55,"cornerstone":25,"reading_time_minutes":9},81,"HTML Quiz & Practice Exercises","html-quiz-practice-exercises",{"id":27,"name":335,"slug":336,"icon":5,"icon_url":5,"short_description":337,"meta_title":338,"meta_description":339,"og_image":5,"locale":16,"subcategories":340},"CSS","css","Master CSS from basics to advanced. Learn styling, layouts, Flexbox, Grid, and responsive design with practical examples.","CSS Course - Learn CSS from Scratch to Advanced","Learn CSS (Cascading Style Sheets) step by step. Master selectors, layouts, Flexbox, Grid, animations, and responsive web design with hands-on examples.",[341,366,394,420,440,476,508,540,572,604,632,660,692,720],{"id":75,"name":342,"slug":343,"order_index":344,"topics":345},"CSS Fundamentals & Setup","css-fundamentals-setup",0,[346,350,354,358,362],{"id":347,"title":348,"slug":349,"order_index":9,"cornerstone":25,"reading_time_minutes":35},82,"CSS Introduction & History: What Is CSS and Why It Matters","css-introduction-and-history",{"id":351,"title":352,"slug":353,"order_index":27,"cornerstone":25,"reading_time_minutes":35},83,"CSS Syntax & How Browsers Apply Styles","css-syntax-how-browsers-apply-styles",{"id":355,"title":356,"slug":357,"order_index":31,"cornerstone":25,"reading_time_minutes":31},84,"Setting Up Your CSS Workspace: Linking Files & Live Server","setting-up-css-workspace-linking-files-live-server",{"id":359,"title":360,"slug":361,"order_index":35,"cornerstone":25,"reading_time_minutes":31},85,"CSS Comments & Code Formatting Best Practices","css-comments-and-code-formatting",{"id":363,"title":364,"slug":365,"order_index":39,"cornerstone":25,"reading_time_minutes":39},86,"Browser DevTools for CSS: Inspect, Debug & Edit Styles Live","browser-devtools-for-css",{"id":126,"name":367,"slug":368,"order_index":344,"topics":369},"Item Properties","item-properties",[370,374,378,382,386,390],{"id":371,"title":372,"slug":373,"order_index":39,"cornerstone":25,"reading_time_minutes":35},176,"CSS flex-direction: Row, Column, Reverse Explained with Examples","css-flex-direction-qYSHRj",{"id":375,"title":376,"slug":377,"order_index":43,"cornerstone":25,"reading_time_minutes":35},177,"CSS flex-wrap and flex-flow: Complete Guide with Examples","css-flex-wrap-and-flex-flow-iZaSUa",{"id":379,"title":380,"slug":381,"order_index":51,"cornerstone":25,"reading_time_minutes":35},178,"CSS justify-content: Align Flex Items on the Main Axis","css-justify-content-VlB71x",{"id":383,"title":384,"slug":385,"order_index":55,"cornerstone":25,"reading_time_minutes":35},179,"CSS align-items: Align Flex Items on the Cross Axis","css-align-items-H3MFZg",{"id":387,"title":388,"slug":389,"order_index":59,"cornerstone":25,"reading_time_minutes":31},180,"CSS align-content: Align Multiple Flex Lines Explained","css-align-content-6815Ey",{"id":391,"title":392,"slug":393,"order_index":63,"cornerstone":25,"reading_time_minutes":31},181,"CSS gap, row-gap and column-gap in Flexbox and Grid","css-gap",{"id":121,"name":395,"slug":396,"order_index":344,"topics":397},"Container Properties","container-properties",[398,402,406,409,412,416],{"id":399,"title":400,"slug":401,"order_index":39,"cornerstone":25,"reading_time_minutes":35},170,"CSS flex-direction: row, row-reverse, column & column-reverse Explained","css-flex-direction",{"id":403,"title":404,"slug":405,"order_index":43,"cornerstone":25,"reading_time_minutes":35},171,"CSS flex-wrap & flex-flow: Wrap Flex Items the Right Way","css-flex-wrap-and-flex-flow",{"id":407,"title":380,"slug":408,"order_index":51,"cornerstone":25,"reading_time_minutes":35},172,"css-justify-content",{"id":410,"title":384,"slug":411,"order_index":55,"cornerstone":25,"reading_time_minutes":31},173,"css-align-items",{"id":413,"title":414,"slug":415,"order_index":59,"cornerstone":25,"reading_time_minutes":31},174,"CSS align-content: Space and Align Multiple Flex Lines","css-align-content",{"id":417,"title":418,"slug":419,"order_index":63,"cornerstone":25,"reading_time_minutes":35},175,"CSS gap, row-gap & column-gap in Flexbox: Modern Spacing","css-flexbox-gap",{"id":116,"name":421,"slug":422,"order_index":344,"topics":423},"Flexbox Foundations","flexbox-foundations",[424,428,432,436],{"id":425,"title":426,"slug":427,"order_index":9,"cornerstone":25,"reading_time_minutes":55},166,"Why Layout Evolved: Tables, Floats, Flexbox and Grid","why-layout-evolved-tables-floats-flexbox-grid",{"id":429,"title":430,"slug":431,"order_index":27,"cornerstone":25,"reading_time_minutes":43},167,"Flexbox Introduction and Mental Model","flexbox-introduction-and-mental-model",{"id":433,"title":434,"slug":435,"order_index":31,"cornerstone":25,"reading_time_minutes":43},168,"Flex Container and Flex Items","flex-container-and-flex-items",{"id":437,"title":438,"slug":439,"order_index":35,"cornerstone":25,"reading_time_minutes":51},169,"Main Axis vs Cross Axis and the DevTools Flex Inspector","main-axis-vs-cross-axis-devtools-flex-inspector",{"id":79,"name":441,"slug":442,"order_index":9,"topics":443},"Selectors & the Cascade","selectors-the-cascade",[444,448,452,456,460,464,468,472],{"id":445,"title":446,"slug":447,"order_index":43,"cornerstone":25,"reading_time_minutes":35},87,"CSS Basic Selectors: Type, Class, ID, Universal & Grouping","css-basic-selectors",{"id":449,"title":450,"slug":451,"order_index":51,"cornerstone":25,"reading_time_minutes":35},88,"CSS Combinators: Descendant, Child, Adjacent & General Sibling","css-combinators",{"id":453,"title":454,"slug":455,"order_index":55,"cornerstone":25,"reading_time_minutes":35},89,"CSS Attribute Selectors: [attr], ^=, $=, *= and More","css-attribute-selectors",{"id":457,"title":458,"slug":459,"order_index":59,"cornerstone":25,"reading_time_minutes":43},90,"CSS Pseudo-classes: :hover, :focus, :nth-child & Modern Selectors","css-pseudo-classes",{"id":461,"title":462,"slug":463,"order_index":63,"cornerstone":25,"reading_time_minutes":39},91,"CSS Pseudo-elements (::before, ::after)","css-pseudo-elements-before-after",{"id":465,"title":466,"slug":467,"order_index":67,"cornerstone":25,"reading_time_minutes":39},92,"Modern CSS Selectors: :is(), :where(), :has()","modern-css-selectors-is-where-has",{"id":469,"title":470,"slug":471,"order_index":71,"cornerstone":25,"reading_time_minutes":35},93,"CSS Specificity Explained","css-specificity-explained",{"id":473,"title":474,"slug":475,"order_index":75,"cornerstone":25,"reading_time_minutes":39},94,"Cascade, Inheritance & !important","css-cascade-inheritance-important",{"id":87,"name":477,"slug":478,"order_index":27,"topics":479},"Colors, Backgrounds & Effects","colors-backgrounds-effects",[480,484,488,492,496,500,504],{"id":481,"title":482,"slug":483,"order_index":79,"cornerstone":25,"reading_time_minutes":39},95,"CSS Colors (HEX, RGB, HSL, OKLCH)","css-colors-hex-rgb-hsl-oklch",{"id":485,"title":486,"slug":487,"order_index":87,"cornerstone":25,"reading_time_minutes":35},96,"CSS Backgrounds","css-backgrounds",{"id":489,"title":490,"slug":491,"order_index":91,"cornerstone":25,"reading_time_minutes":39},97,"CSS Gradients (Linear, Radial, Conic)","css-gradients-linear-radial-conic",{"id":493,"title":494,"slug":495,"order_index":95,"cornerstone":25,"reading_time_minutes":39},98,"CSS Borders, Outlines & Rounded Corners","css-borders-outlines-rounded-corners",{"id":497,"title":498,"slug":499,"order_index":99,"cornerstone":25,"reading_time_minutes":43},99,"CSS Box Shadow & Text Shadow","css-box-shadow-text-shadow",{"id":501,"title":502,"slug":503,"order_index":103,"cornerstone":25,"reading_time_minutes":39},100,"CSS Opacity & Blend Modes","css-opacity-blend-modes",{"id":505,"title":506,"slug":507,"order_index":114,"cornerstone":25,"reading_time_minutes":43},101,"CSS Filters & backdrop-filter (Glassmorphism)","css-filters-backdrop-filter-glassmorphism",{"id":91,"name":509,"slug":510,"order_index":31,"topics":511},"Box Model & Spacing","box-model-spacing",[512,516,520,524,528,532,536],{"id":513,"title":514,"slug":515,"order_index":119,"cornerstone":25,"reading_time_minutes":51},102,"The CSS Box Model: Content, Padding, Border and Margin","css-box-model",{"id":517,"title":518,"slug":519,"order_index":124,"cornerstone":25,"reading_time_minutes":51},103,"CSS Margin and Margin Collapse","css-margin-and-margin-collapse",{"id":521,"title":522,"slug":523,"order_index":129,"cornerstone":25,"reading_time_minutes":43},104,"CSS Padding: Shorthand, Percentages and Best Practices","css-padding",{"id":525,"title":526,"slug":527,"order_index":111,"cornerstone":25,"reading_time_minutes":59},105,"CSS Width, Height, Min-Width, Max-Width, Min-Height & Max-Height","css-width-height-min-max",{"id":529,"title":530,"slug":531,"order_index":116,"cornerstone":25,"reading_time_minutes":39},106,"CSS box-sizing: content-box vs border-box","css-box-sizing",{"id":533,"title":534,"slug":535,"order_index":121,"cornerstone":25,"reading_time_minutes":51},107,"CSS Overflow: hidden, scroll, auto, clip and Text Truncation","css-overflow",{"id":537,"title":538,"slug":539,"order_index":126,"cornerstone":25,"reading_time_minutes":51},108,"CSS Units: px, rem, em, %, vw, vh and dvh","css-units",{"id":95,"name":541,"slug":542,"order_index":35,"topics":543},"Typography & Text","typography-text",[544,548,552,556,560,564,568],{"id":545,"title":546,"slug":547,"order_index":131,"cornerstone":25,"reading_time_minutes":51},109,"CSS Text Properties: Alignment, Spacing, Decoration and Wrapping","css-text-properties",{"id":549,"title":550,"slug":551,"order_index":135,"cornerstone":25,"reading_time_minutes":51},110,"CSS Fonts and font-family: Font Stacks, Weights and System Fonts","css-fonts-font-family",{"id":553,"title":554,"slug":555,"order_index":139,"cornerstone":25,"reading_time_minutes":51},111,"Web Fonts: Google Fonts, @font-face and Variable Fonts","web-fonts",{"id":557,"title":558,"slug":559,"order_index":143,"cornerstone":25,"reading_time_minutes":51},112,"CSS Text Effects: text-wrap balance, line-clamp, Ellipsis and More","css-text-effects",{"id":561,"title":562,"slug":563,"order_index":147,"cornerstone":25,"reading_time_minutes":55},113,"Styling Links","styling-links-css",{"id":565,"title":566,"slug":567,"order_index":167,"cornerstone":25,"reading_time_minutes":51},114,"Styling Lists & Tables","styling-lists-and-tables-css",{"id":569,"title":570,"slug":571,"order_index":171,"cornerstone":25,"reading_time_minutes":63},115,"Icons (SVG & Icon Fonts)","icons-svg-and-icon-fonts",{"id":99,"name":573,"slug":574,"order_index":39,"topics":575},"Display, Position & Layout Basics","display-position-layout-basics",[576,580,584,588,592,596,600],{"id":577,"title":578,"slug":579,"order_index":175,"cornerstone":25,"reading_time_minutes":51},116,"Display & Inline-block","display-and-inline-block",{"id":581,"title":582,"slug":583,"order_index":179,"cornerstone":25,"reading_time_minutes":43},117,"Position (relative, absolute, fixed, sticky)","position-relative-absolute-fixed-sticky",{"id":585,"title":586,"slug":587,"order_index":190,"cornerstone":25,"reading_time_minutes":43},118,"Z-index & Stacking Contexts","z-index-and-stacking-contexts",{"id":589,"title":590,"slug":591,"order_index":195,"cornerstone":25,"reading_time_minutes":39},119,"Float & Clear (Legacy, and Why to Avoid It)","float-and-clear",{"id":593,"title":594,"slug":595,"order_index":200,"cornerstone":25,"reading_time_minutes":43},120,"Centering Techniques","centering-techniques",{"id":597,"title":598,"slug":599,"order_index":205,"cornerstone":25,"reading_time_minutes":51},121,"aspect-ratio & object-fit","aspect-ratio-and-object-fit",{"id":601,"title":602,"slug":603,"order_index":210,"cornerstone":25,"reading_time_minutes":55},122,"Website Layout Basics","website-layout-basics",{"id":114,"name":605,"slug":606,"order_index":43,"topics":607},"The Modern CSS Toolkit","the-modern-css-toolkit",[608,612,616,620,624,628],{"id":609,"title":610,"slug":611,"order_index":215,"cornerstone":25,"reading_time_minutes":55},129,"CSS Variables (Custom Properties)","css-variables-custom-properties",{"id":613,"title":614,"slug":615,"order_index":224,"cornerstone":25,"reading_time_minutes":55},130,"Math Functions (calc, min, max, clamp)","math-functions-calc-min-max-clamp",{"id":617,"title":618,"slug":619,"order_index":229,"cornerstone":25,"reading_time_minutes":51},131,"Native CSS Nesting","native-css-nesting",{"id":621,"title":622,"slug":623,"order_index":238,"cornerstone":25,"reading_time_minutes":51},132,"Cascade Layers (@layer)","cascade-layers-at-layer",{"id":625,"title":626,"slug":627,"order_index":243,"cornerstone":25,"reading_time_minutes":59},133,"Dark Mode (prefers-color-scheme, light-dark())","dark-mode-prefers-color-scheme-light-dark",{"id":629,"title":630,"slug":631,"order_index":248,"cornerstone":25,"reading_time_minutes":55},134,"CSS Reset & Normalize","css-reset-and-normalize",{"id":119,"name":633,"slug":634,"order_index":51,"topics":635},"Responsive Design","responsive-design",[636,640,644,648,652,656],{"id":637,"title":638,"slug":639,"order_index":253,"cornerstone":25,"reading_time_minutes":59},135,"Mobile-First & the Viewport","mobile-first-and-the-viewport",{"id":641,"title":642,"slug":643,"order_index":187,"cornerstone":25,"reading_time_minutes":55},136,"Media Queries","media-queries",{"id":645,"title":646,"slug":647,"order_index":192,"cornerstone":25,"reading_time_minutes":55},137,"Responsive Images & Video","responsive-images-and-video",{"id":649,"title":650,"slug":651,"order_index":197,"cornerstone":25,"reading_time_minutes":59},138,"Fluid Typography with clamp()","fluid-typography-with-clamp",{"id":653,"title":654,"slug":655,"order_index":202,"cornerstone":25,"reading_time_minutes":59},139,"Container Queries","container-queries",{"id":657,"title":658,"slug":659,"order_index":207,"cornerstone":25,"reading_time_minutes":71},140,"Responsive Navigation Pattern","responsive-navigation-pattern",{"id":124,"name":661,"slug":662,"order_index":55,"topics":663},"Transitions & Animation","transitions-animation",[664,668,672,676,680,684,688],{"id":665,"title":666,"slug":667,"order_index":212,"cornerstone":25,"reading_time_minutes":39},141,"CSS Transitions: Smooth State Changes with transition, @starting-style and allow-discrete","css-transitions",{"id":669,"title":670,"slug":671,"order_index":221,"cornerstone":25,"reading_time_minutes":35},142,"CSS 2D Transforms: translate, rotate, scale, skew and transform-origin","css-2d-transforms",{"id":673,"title":674,"slug":675,"order_index":226,"cornerstone":25,"reading_time_minutes":39},143,"CSS 3D Transforms: perspective, preserve-3d, rotateX\u002FY and backface-visibility","css-3d-transforms",{"id":677,"title":678,"slug":679,"order_index":235,"cornerstone":25,"reading_time_minutes":39},144,"CSS Keyframe Animations: @keyframes, animation shorthand, fill-mode and @property","css-keyframe-animations",{"id":681,"title":682,"slug":683,"order_index":240,"cornerstone":25,"reading_time_minutes":39},145,"CSS Scroll-Driven Animations: animation-timeline, scroll() and view()","css-scroll-driven-animations",{"id":685,"title":686,"slug":687,"order_index":245,"cornerstone":25,"reading_time_minutes":39},146,"CSS View Transitions API: Progressive Enhancement for Page and State Animations","css-view-transitions",{"id":689,"title":690,"slug":691,"order_index":250,"cornerstone":25,"reading_time_minutes":43},147,"Motion Accessibility and Performance: prefers-reduced-motion, will-change and Smooth 60fps Animations","motion-accessibility-prefers-reduced-motion-performance",{"id":129,"name":693,"slug":694,"order_index":59,"topics":695},"UI Components","ui-components",[696,700,704,708,712,716],{"id":697,"title":698,"slug":699,"order_index":255,"cornerstone":25,"reading_time_minutes":43},148,"CSS Buttons: Variants, States, Sizes and Accessible Button Design","css-buttons",{"id":701,"title":702,"slug":703,"order_index":263,"cornerstone":25,"reading_time_minutes":43},149,"CSS Card Component: Layouts with Flexbox, Grid, Container Queries and Subgrid","css-cards",{"id":705,"title":706,"slug":707,"order_index":267,"cornerstone":25,"reading_time_minutes":51},150,"CSS Navbar and Dropdown Menus: Responsive, Sticky and Accessible Navigation","css-navbar-dropdowns",{"id":709,"title":710,"slug":711,"order_index":271,"cornerstone":25,"reading_time_minutes":43},151,"HTML and CSS Forms and Inputs: Styled, Accessible and Validated Form Controls","css-forms-inputs",{"id":713,"title":714,"slug":715,"order_index":275,"cornerstone":25,"reading_time_minutes":43},152,"CSS Tooltips and Popovers: Popover API, Anchor Positioning and Accessible Overlays","css-tooltips-popovers",{"id":717,"title":718,"slug":719,"order_index":279,"cornerstone":25,"reading_time_minutes":43},153,"Pagination and Breadcrumbs: Accessible Navigation Patterns with HTML, CSS and Schema","pagination-breadcrumbs",{"id":111,"name":721,"slug":722,"order_index":63,"topics":723},"Pro Practices & Wrap-up","pro-practices-wrap-up",[724,728,732,736,740,744],{"id":725,"title":726,"slug":727,"order_index":287,"cornerstone":25,"reading_time_minutes":27},160,"CSS Architecture & BEM","css-architecture-bem-ZRlwjD",{"id":729,"title":730,"slug":731,"order_index":291,"cornerstone":25,"reading_time_minutes":27},161,"CSS Performance","css-performance-TAnsqs",{"id":733,"title":734,"slug":735,"order_index":295,"cornerstone":25,"reading_time_minutes":27},162,"CSS Accessibility (focus, contrast)","css-accessibility-focus-contrast-pgFUSF",{"id":737,"title":738,"slug":739,"order_index":303,"cornerstone":25,"reading_time_minutes":27},163,"Debugging Common CSS Bugs","debugging-common-css-bugs-iHzOV3",{"id":741,"title":742,"slug":743,"order_index":307,"cornerstone":25,"reading_time_minutes":27},164,"Sass vs Native CSS","sass-vs-native-css-lV2nqW",{"id":745,"title":746,"slug":747,"order_index":311,"cornerstone":25,"reading_time_minutes":27},165,"CSS Interview Q&A & Cheat Sheet","css-interview-qa-cheat-sheet-JslzGp",{"data":749},[750,753,757,762,767],{"name":335,"slug":336,"description":751,"post_count":27,"subcategories":752},"Learn CSS with practical tutorials and examples covering layouts, Flexbox, Grid, responsive design, typography, positioning, animations, and more.",[],{"name":10,"slug":754,"description":755,"post_count":27,"subcategories":756},"html","Learn HTML with practical tutorials and examples for beginners. Explore HTML tags, elements, attributes, links, images, forms, semantic HTML, and more with clear explanations and real code examples.",[],{"name":758,"slug":759,"description":760,"post_count":9,"subcategories":761},"WPF","wpf","Learn WPF with practical tutorials and examples covering XAML, windows, controls, layouts, data binding, MVVM, commands, styles, templates, debugging, and modern WPF UI development.",[],{"name":763,"slug":764,"description":765,"post_count":9,"subcategories":766},"Python","python","Learn Python with practical tutorials covering strings, lists, functions, exceptions, files, packages, virtual environments, modules, classes, and beginner programming concepts.",[],{"name":768,"slug":769,"description":770,"post_count":9,"subcategories":771},"Java","java","Learn Java with practical tutorials and examples for beginners. Explore Java syntax, variables, data types, classes, objects, methods, inheritance, exceptions, collections, and more with clear explanations and real code examples.",[],{"data":773},{"id":413,"title":414,"slug":415,"content":774,"course":775,"subcategory":776,"author":777,"reading_time_minutes":31,"cornerstone":25,"schema_type":783,"faq_json":5,"video_url":5,"canonical_url":784,"meta_title":785,"meta_description":786,"og_image":5,"toc_json":787,"code_examples":872,"quiz":889,"exercises":892,"published_at":5,"updated_at":900,"prev":901,"next":902},"\u003Ch2 id=\"what-is-align-content-in-css\">What Is align-content in CSS?\u003C\u002Fh2>\u003Cp>The \u003Cstrong>align-content\u003C\u002Fstrong> property controls how multiple flex lines are positioned and spaced inside a flex container along the cross axis. It only works when the container has more than one line, which means flex-wrap must be set to wrap or wrap-reverse and the items must actually wrap. Many developers confuse align-content with align-items, so this lesson explains the difference clearly with examples.\u003C\u002Fp>\u003Ch3 id=\"syntax\">Syntax\u003C\u002Fh3>\u003Cpre>\u003Ccode>.container {\n  display: flex;\n  flex-wrap: wrap;\n  align-content: flex-start | flex-end | center | space-between | space-around | space-evenly | stretch;\n}\u003C\u002Fcode>\u003C\u002Fpre>\u003Cp>The default value is \u003Ccode>stretch\u003C\u002Fcode> (the initial value is normal, which behaves like stretch in flexbox).\u003C\u002Fp>\u003Ch2 id=\"when-does-align-content-work\">When Does align-content Work?\u003C\u002Fh2>\u003Cul>\u003Cli>The container must be a flex container.\u003C\u002Fli>\u003Cli>The container must wrap its items onto \u003Cstrong>two or more lines\u003C\u002Fstrong>.\u003C\u002Fli>\u003Cli>The container must have \u003Cstrong>extra cross-axis space\u003C\u002Fstrong>, for example a fixed height in a row layout.\u003C\u002Fli>\u003C\u002Ful>\u003Cp>On a single-line flex container, align-content has no effect. Use align-items instead.\u003C\u002Fp>\u003Ch2 id=\"align-content-vs-align-items\">align-content vs align-items\u003C\u002Fh2>\u003Ctable>\u003Cthead>\u003Ctr>\u003Cth>Property\u003C\u002Fth>\u003Cth>What it aligns\u003C\u002Fth>\u003Cth>Needs wrapping?\u003C\u002Fth>\u003C\u002Ftr>\u003C\u002Fthead>\u003Ctbody>\u003Ctr>\u003Ctd>align-items\u003C\u002Ftd>\u003Ctd>Items inside each flex line\u003C\u002Ftd>\u003Ctd>No\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>align-content\u003C\u002Ftd>\u003Ctd>The flex lines as a group\u003C\u002Ftd>\u003Ctd>Yes, multiple lines required\u003C\u002Ftd>\u003C\u002Ftr>\u003C\u002Ftbody>\u003C\u002Ftable>\u003Cp>A helpful way to remember: align-items aligns \u003Cem>items\u003C\u002Fem>, align-content aligns \u003Cem>content\u003C\u002Fem> (the whole block of lines).\u003C\u002Fp>\u003Ch2 id=\"align-content-values-explained\">align-content Values Explained\u003C\u002Fh2>\u003Ch3 id=\"align-content-stretch-default\">align-content: stretch (default)\u003C\u002Fh3>\u003Cp>The lines grow to share the extra cross-axis space equally. Items on each line then get aligned using align-items inside their stretched line.\u003C\u002Fp>\u003Ch3 id=\"align-content-flex-start\">align-content: flex-start\u003C\u002Fh3>\u003Cp>All lines are packed together at the start of the cross axis (the top in a row layout) with no extra space between them.\u003C\u002Fp>\u003Ch3 id=\"align-content-flex-end\">align-content: flex-end\u003C\u002Fh3>\u003Cp>All lines are packed at the end of the cross axis (the bottom in a row layout).\u003C\u002Fp>\u003Ch3 id=\"align-content-center\">align-content: center\u003C\u002Fh3>\u003Cp>All lines are grouped in the middle of the container with equal free space above and below.\u003C\u002Fp>\u003Ch3 id=\"align-content-space-between\">align-content: space-between\u003C\u002Fh3>\u003Cp>The first line is at the start, the last line at the end, and free space is distributed between lines.\u003C\u002Fp>\u003Ch3 id=\"align-content-space-around\">align-content: space-around\u003C\u002Fh3>\u003Cp>Equal space around each line. The space at the edges is half the space between lines.\u003C\u002Fp>\u003Ch3 id=\"align-content-space-evenly\">align-content: space-evenly\u003C\u002Fh3>\u003Cp>The same amount of space is placed between lines and at both edges.\u003C\u002Fp>\u003Ch2 id=\"practical-example-wrapped-tag-cloud\">Practical Example: Wrapped Tag Cloud\u003C\u002Fh2>\u003Cp>If you have a fixed-height container with many wrapped items, align-content: flex-start keeps the lines tight at the top instead of stretching them apart. This is a very common fix when wrapped rows have unexpected large gaps between them.\u003C\u002Fp>\u003Ch2 id=\"why-are-my-wrapped-rows-far-apart\">Why Are My Wrapped Rows Far Apart?\u003C\u002Fh2>\u003Cp>This is one of the most common flexbox questions. When a wrapping flex container has a fixed height, the default align-content: stretch distributes the extra height among the lines, which creates large gaps. To pack the lines together, set \u003Ccode>align-content: flex-start\u003C\u002Fcode>.\u003C\u002Fp>\u003Ch2 id=\"align-content-with-gap\">align-content with gap\u003C\u002Fh2>\u003Cp>The gap property (row-gap in this case) sets the minimum space between lines. align-content then positions the lines and distributes any leftover space.\u003C\u002Fp>\u003Ch2 id=\"common-mistakes\">Common Mistakes\u003C\u002Fh2>\u003Cul>\u003Cli>\u003Cstrong>Using align-content on a single-line container.\u003C\u002Fstrong> Nothing happens.\u003C\u002Fli>\u003Cli>\u003Cstrong>Forgetting flex-wrap: wrap.\u003C\u002Fstrong> Without wrapping, there is only one line.\u003C\u002Fli>\u003Cli>\u003Cstrong>No extra height.\u003C\u002Fstrong> With height: auto, the container is exactly as tall as its lines, so there is no free space.\u003C\u002Fli>\u003Cli>\u003Cstrong>Confusing it with justify-content.\u003C\u002Fstrong> justify-content works on the main axis, align-content on the cross axis.\u003C\u002Fli>\u003C\u002Ful>\u003Ch2 id=\"faq\">FAQ\u003C\u002Fh2>\u003Ch3 id=\"what-is-the-difference-between-align-items-and-align-content\">What is the difference between align-items and align-content?\u003C\u002Fh3>\u003Cp>align-items aligns items inside each line. align-content aligns the lines themselves and requires multiple lines.\u003C\u002Fp>\u003Ch3 id=\"why-is-align-content-not-working\">Why is align-content not working?\u003C\u002Fh3>\u003Cp>Most likely there is only one line, or the container has no extra cross-axis space.\u003C\u002Fp>\u003Ch3 id=\"does-align-content-work-with-css-grid\">Does align-content work with CSS Grid?\u003C\u002Fh3>\u003Cp>Yes. In Grid, align-content distributes the grid tracks inside the container.\u003C\u002Fp>\u003Ch2 id=\"key-takeaways\">Key Takeaways\u003C\u002Fh2>\u003Cul>\u003Cli>align-content positions multiple flex lines on the cross axis.\u003C\u002Fli>\u003Cli>It needs flex-wrap: wrap and extra container height.\u003C\u002Fli>\u003Cli>Default stretch can create big gaps, so use flex-start to pack lines.\u003C\u002Fli>\u003Cli>Seven values: flex-start, flex-end, center, space-between, space-around, space-evenly, stretch.\u003C\u002Fli>\u003C\u002Ful>\u003Cdiv class=\"try-it-yourself language-html\">\u003Cpre>\u003Ccode>&lt;style&gt;\n.container{display:flex;flex-wrap:wrap;align-content:stretch;width:300px;height:260px;background:#ecf0f1;border-radius:8px;gap:8px;padding:8px;box-sizing:border-box;}\n.item{width:80px;height:40px;background:#3498db;color:#fff;border-radius:6px;font-family:sans-serif;display:flex;align-items:center;justify-content:center;}\n&lt;\u002Fstyle&gt;\n&lt;p style='font-family:sans-serif'&gt;align-content: stretch (default)&lt;\u002Fp&gt;\n&lt;div class='container'&gt;\n&lt;div class='item'&gt;1&lt;\u002Fdiv&gt;\n&lt;div class='item'&gt;2&lt;\u002Fdiv&gt;\n&lt;div class='item'&gt;3&lt;\u002Fdiv&gt;\n&lt;div class='item'&gt;4&lt;\u002Fdiv&gt;\n&lt;div class='item'&gt;5&lt;\u002Fdiv&gt;\n&lt;div class='item'&gt;6&lt;\u002Fdiv&gt;\n&lt;\u002Fdiv&gt;\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\u003Cdiv class=\"try-it-yourself language-html\">\u003Cpre>\u003Ccode>&lt;style&gt;\n.container{display:flex;flex-wrap:wrap;align-content:flex-start;width:300px;height:260px;background:#ecf0f1;border-radius:8px;gap:8px;padding:8px;box-sizing:border-box;}\n.item{width:80px;height:40px;background:#27ae60;color:#fff;border-radius:6px;font-family:sans-serif;display:flex;align-items:center;justify-content:center;}\n&lt;\u002Fstyle&gt;\n&lt;p style='font-family:sans-serif'&gt;align-content: flex-start&lt;\u002Fp&gt;\n&lt;div class='container'&gt;\n&lt;div class='item'&gt;1&lt;\u002Fdiv&gt;\n&lt;div class='item'&gt;2&lt;\u002Fdiv&gt;\n&lt;div class='item'&gt;3&lt;\u002Fdiv&gt;\n&lt;div class='item'&gt;4&lt;\u002Fdiv&gt;\n&lt;div class='item'&gt;5&lt;\u002Fdiv&gt;\n&lt;div class='item'&gt;6&lt;\u002Fdiv&gt;\n&lt;\u002Fdiv&gt;\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\u003Cdiv class=\"try-it-yourself language-html\">\u003Cpre>\u003Ccode>&lt;style&gt;\n.container{display:flex;flex-wrap:wrap;align-content:center;width:300px;height:260px;background:#ecf0f1;border-radius:8px;gap:8px;padding:8px;box-sizing:border-box;}\n.item{width:80px;height:40px;background:#e67e22;color:#fff;border-radius:6px;font-family:sans-serif;display:flex;align-items:center;justify-content:center;}\n&lt;\u002Fstyle&gt;\n&lt;p style='font-family:sans-serif'&gt;align-content: center&lt;\u002Fp&gt;\n&lt;div class='container'&gt;\n&lt;div class='item'&gt;1&lt;\u002Fdiv&gt;\n&lt;div class='item'&gt;2&lt;\u002Fdiv&gt;\n&lt;div class='item'&gt;3&lt;\u002Fdiv&gt;\n&lt;div class='item'&gt;4&lt;\u002Fdiv&gt;\n&lt;div class='item'&gt;5&lt;\u002Fdiv&gt;\n&lt;div class='item'&gt;6&lt;\u002Fdiv&gt;\n&lt;\u002Fdiv&gt;\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\u003Cdiv class=\"try-it-yourself language-html\">\u003Cpre>\u003Ccode>&lt;style&gt;\n.container{display:flex;flex-wrap:wrap;align-content:space-between;width:300px;height:260px;background:#ecf0f1;border-radius:8px;gap:8px;padding:8px;box-sizing:border-box;}\n.item{width:80px;height:40px;background:#8e44ad;color:#fff;border-radius:6px;font-family:sans-serif;display:flex;align-items:center;justify-content:center;}\n&lt;\u002Fstyle&gt;\n&lt;p style='font-family:sans-serif'&gt;align-content: space-between&lt;\u002Fp&gt;\n&lt;div class='container'&gt;\n&lt;div class='item'&gt;1&lt;\u002Fdiv&gt;\n&lt;div class='item'&gt;2&lt;\u002Fdiv&gt;\n&lt;div class='item'&gt;3&lt;\u002Fdiv&gt;\n&lt;div class='item'&gt;4&lt;\u002Fdiv&gt;\n&lt;div class='item'&gt;5&lt;\u002Fdiv&gt;\n&lt;div class='item'&gt;6&lt;\u002Fdiv&gt;\n&lt;\u002Fdiv&gt;\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\u003Cdiv class=\"try-it-yourself language-html\">\u003Cpre>\u003Ccode>&lt;style&gt;\n.box{display:flex;flex-wrap:wrap;width:300px;height:260px;background:#ecf0f1;border-radius:8px;gap:8px;padding:8px;box-sizing:border-box;}\n.item{width:80px;height:40px;background:#c0392b;color:#fff;border-radius:6px;font-family:sans-serif;display:flex;align-items:center;justify-content:center;}\n&lt;\u002Fstyle&gt;\n&lt;select onchange='document.getElementById(`ac`).style.alignContent=this.value'&gt;\n&lt;option&gt;stretch&lt;\u002Foption&gt;\n&lt;option&gt;flex-start&lt;\u002Foption&gt;\n&lt;option&gt;flex-end&lt;\u002Foption&gt;\n&lt;option&gt;center&lt;\u002Foption&gt;\n&lt;option&gt;space-between&lt;\u002Foption&gt;\n&lt;option&gt;space-around&lt;\u002Foption&gt;\n&lt;option&gt;space-evenly&lt;\u002Foption&gt;\n&lt;\u002Fselect&gt;\n&lt;div class='box' id='ac'&gt;\n&lt;div class='item'&gt;1&lt;\u002Fdiv&gt;\n&lt;div class='item'&gt;2&lt;\u002Fdiv&gt;\n&lt;div class='item'&gt;3&lt;\u002Fdiv&gt;\n&lt;div class='item'&gt;4&lt;\u002Fdiv&gt;\n&lt;div class='item'&gt;5&lt;\u002Fdiv&gt;\n&lt;div class='item'&gt;6&lt;\u002Fdiv&gt;\n&lt;\u002Fdiv&gt;\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>",{"name":335,"slug":336},{"name":395,"slug":396},{"slug":778,"display_name":779,"job_title":5,"short_bio":5,"expertise_tags":780,"headshot":5,"long_bio":5,"credentials":5,"twitter_url":5,"linkedin_url":5,"github_url":5,"personal_website_url":5,"other_sameas_urls":5,"topics":781,"posts":782},"badar-khalil","Badar Khalil",[],[],[],"Article","https:\u002F\u002Fwpfsharp.com\u002Ftopics\u002Fcss-align-content","CSS align-content: Space Wrapped Flex Lines Explained","Learn CSS align-content to distribute multiple flex lines. Compare it with align-items, see space-between and stretch in action with live code.",[788,796,800,804,836,840,844,848,852,868],{"id":789,"text":790,"level":27,"children":791},"what-is-align-content-in-css","What Is align-content in CSS?",[792],{"id":793,"text":794,"level":31,"children":795},"syntax","Syntax",[],{"id":797,"text":798,"level":27,"children":799},"when-does-align-content-work","When Does align-content Work?",[],{"id":801,"text":802,"level":27,"children":803},"align-content-vs-align-items","align-content vs align-items",[],{"id":805,"text":806,"level":27,"children":807},"align-content-values-explained","align-content Values Explained",[808,812,816,820,824,828,832],{"id":809,"text":810,"level":31,"children":811},"align-content-stretch-default","align-content: stretch (default)",[],{"id":813,"text":814,"level":31,"children":815},"align-content-flex-start","align-content: flex-start",[],{"id":817,"text":818,"level":31,"children":819},"align-content-flex-end","align-content: flex-end",[],{"id":821,"text":822,"level":31,"children":823},"align-content-center","align-content: center",[],{"id":825,"text":826,"level":31,"children":827},"align-content-space-between","align-content: space-between",[],{"id":829,"text":830,"level":31,"children":831},"align-content-space-around","align-content: space-around",[],{"id":833,"text":834,"level":31,"children":835},"align-content-space-evenly","align-content: space-evenly",[],{"id":837,"text":838,"level":27,"children":839},"practical-example-wrapped-tag-cloud","Practical Example: Wrapped Tag Cloud",[],{"id":841,"text":842,"level":27,"children":843},"why-are-my-wrapped-rows-far-apart","Why Are My Wrapped Rows Far Apart?",[],{"id":845,"text":846,"level":27,"children":847},"align-content-with-gap","align-content with gap",[],{"id":849,"text":850,"level":27,"children":851},"common-mistakes","Common Mistakes",[],{"id":853,"text":854,"level":27,"children":855},"faq","FAQ",[856,860,864],{"id":857,"text":858,"level":31,"children":859},"what-is-the-difference-between-align-items-and-align-content","What is the difference between align-items and align-content?",[],{"id":861,"text":862,"level":31,"children":863},"why-is-align-content-not-working","Why is align-content not working?",[],{"id":865,"text":866,"level":31,"children":867},"does-align-content-work-with-css-grid","Does align-content work with CSS Grid?",[],{"id":869,"text":870,"level":27,"children":871},"key-takeaways","Key Takeaways",[],[873,877,880,883,886],{"id":874,"language":754,"code":875,"is_editable":876},711,"\u003Cstyle>\n.container{display:flex;flex-wrap:wrap;align-content:stretch;width:300px;height:260px;background:#ecf0f1;border-radius:8px;gap:8px;padding:8px;box-sizing:border-box;}\n.item{width:80px;height:40px;background:#3498db;color:#fff;border-radius:6px;font-family:sans-serif;display:flex;align-items:center;justify-content:center;}\n\u003C\u002Fstyle>\n\u003Cp style='font-family:sans-serif'>align-content: stretch (default)\u003C\u002Fp>\n\u003Cdiv class='container'>\n\u003Cdiv class='item'>1\u003C\u002Fdiv>\n\u003Cdiv class='item'>2\u003C\u002Fdiv>\n\u003Cdiv class='item'>3\u003C\u002Fdiv>\n\u003Cdiv class='item'>4\u003C\u002Fdiv>\n\u003Cdiv class='item'>5\u003C\u002Fdiv>\n\u003Cdiv class='item'>6\u003C\u002Fdiv>\n\u003C\u002Fdiv>",true,{"id":878,"language":754,"code":879,"is_editable":876},712,"\u003Cstyle>\n.container{display:flex;flex-wrap:wrap;align-content:flex-start;width:300px;height:260px;background:#ecf0f1;border-radius:8px;gap:8px;padding:8px;box-sizing:border-box;}\n.item{width:80px;height:40px;background:#27ae60;color:#fff;border-radius:6px;font-family:sans-serif;display:flex;align-items:center;justify-content:center;}\n\u003C\u002Fstyle>\n\u003Cp style='font-family:sans-serif'>align-content: flex-start\u003C\u002Fp>\n\u003Cdiv class='container'>\n\u003Cdiv class='item'>1\u003C\u002Fdiv>\n\u003Cdiv class='item'>2\u003C\u002Fdiv>\n\u003Cdiv class='item'>3\u003C\u002Fdiv>\n\u003Cdiv class='item'>4\u003C\u002Fdiv>\n\u003Cdiv class='item'>5\u003C\u002Fdiv>\n\u003Cdiv class='item'>6\u003C\u002Fdiv>\n\u003C\u002Fdiv>",{"id":881,"language":754,"code":882,"is_editable":876},713,"\u003Cstyle>\n.container{display:flex;flex-wrap:wrap;align-content:center;width:300px;height:260px;background:#ecf0f1;border-radius:8px;gap:8px;padding:8px;box-sizing:border-box;}\n.item{width:80px;height:40px;background:#e67e22;color:#fff;border-radius:6px;font-family:sans-serif;display:flex;align-items:center;justify-content:center;}\n\u003C\u002Fstyle>\n\u003Cp style='font-family:sans-serif'>align-content: center\u003C\u002Fp>\n\u003Cdiv class='container'>\n\u003Cdiv class='item'>1\u003C\u002Fdiv>\n\u003Cdiv class='item'>2\u003C\u002Fdiv>\n\u003Cdiv class='item'>3\u003C\u002Fdiv>\n\u003Cdiv class='item'>4\u003C\u002Fdiv>\n\u003Cdiv class='item'>5\u003C\u002Fdiv>\n\u003Cdiv class='item'>6\u003C\u002Fdiv>\n\u003C\u002Fdiv>",{"id":884,"language":754,"code":885,"is_editable":876},714,"\u003Cstyle>\n.container{display:flex;flex-wrap:wrap;align-content:space-between;width:300px;height:260px;background:#ecf0f1;border-radius:8px;gap:8px;padding:8px;box-sizing:border-box;}\n.item{width:80px;height:40px;background:#8e44ad;color:#fff;border-radius:6px;font-family:sans-serif;display:flex;align-items:center;justify-content:center;}\n\u003C\u002Fstyle>\n\u003Cp style='font-family:sans-serif'>align-content: space-between\u003C\u002Fp>\n\u003Cdiv class='container'>\n\u003Cdiv class='item'>1\u003C\u002Fdiv>\n\u003Cdiv class='item'>2\u003C\u002Fdiv>\n\u003Cdiv class='item'>3\u003C\u002Fdiv>\n\u003Cdiv class='item'>4\u003C\u002Fdiv>\n\u003Cdiv class='item'>5\u003C\u002Fdiv>\n\u003Cdiv class='item'>6\u003C\u002Fdiv>\n\u003C\u002Fdiv>",{"id":887,"language":754,"code":888,"is_editable":876},715,"\u003Cstyle>\n.box{display:flex;flex-wrap:wrap;width:300px;height:260px;background:#ecf0f1;border-radius:8px;gap:8px;padding:8px;box-sizing:border-box;}\n.item{width:80px;height:40px;background:#c0392b;color:#fff;border-radius:6px;font-family:sans-serif;display:flex;align-items:center;justify-content:center;}\n\u003C\u002Fstyle>\n\u003Cselect onchange='document.getElementById(`ac`).style.alignContent=this.value'>\n\u003Coption>stretch\u003C\u002Foption>\n\u003Coption>flex-start\u003C\u002Foption>\n\u003Coption>flex-end\u003C\u002Foption>\n\u003Coption>center\u003C\u002Foption>\n\u003Coption>space-between\u003C\u002Foption>\n\u003Coption>space-around\u003C\u002Foption>\n\u003Coption>space-evenly\u003C\u002Foption>\n\u003C\u002Fselect>\n\u003Cdiv class='box' id='ac'>\n\u003Cdiv class='item'>1\u003C\u002Fdiv>\n\u003Cdiv class='item'>2\u003C\u002Fdiv>\n\u003Cdiv class='item'>3\u003C\u002Fdiv>\n\u003Cdiv class='item'>4\u003C\u002Fdiv>\n\u003Cdiv class='item'>5\u003C\u002Fdiv>\n\u003Cdiv class='item'>6\u003C\u002Fdiv>\n\u003C\u002Fdiv>",{"id":240,"slug":890,"title":891,"time_limit_seconds":5,"pass_percentage":303,"question_count":31},"align-content-quiz","align-content Quiz",[893],{"id":894,"title":895,"slug":896,"prompt":897,"starter_code":898,"expected_output":899,"language":754,"order_index":9},241,"Fix the Gaps Between Wrapped Rows","align-content-fix-row-gaps","The tag cloud below wraps into several rows inside a container with a fixed height, and the rows are spread far apart. Use a single align-content declaration to pack all rows tightly at the top. Then try align-content: center and space-between and observe the difference.","\u003Cstyle>\n.tags{\n  display:flex;flex-wrap:wrap;gap:8px;\n  width:280px;height:240px;padding:8px;box-sizing:border-box;\n  background:#ecf0f1;border-radius:8px;\n  \u002F* TODO: pack the rows together at the top *\u002F\n}\n.tag{background:#2980b9;color:#fff;padding:8px 14px;border-radius:20px;font-family:sans-serif;font-size:14px;}\n\u003C\u002Fstyle>\n\u003Cdiv class='tags'>\n\u003Cspan class='tag'>HTML\u003C\u002Fspan>\u003Cspan class='tag'>CSS\u003C\u002Fspan>\u003Cspan class='tag'>Flexbox\u003C\u002Fspan>\u003Cspan class='tag'>Grid\u003C\u002Fspan>\u003Cspan class='tag'>JavaScript\u003C\u002Fspan>\u003Cspan class='tag'>React\u003C\u002Fspan>\u003Cspan class='tag'>Responsive\u003C\u002Fspan>\u003Cspan class='tag'>Animation\u003C\u002Fspan>\n\u003C\u002Fdiv>","All tag rows are packed together at the top of the container with only the 8px gap between them.","2026-10-01T16:32:07+00:00",{"id":410,"slug":411,"title":384},{"id":387,"slug":389,"title":388}]