HTML Tutorial

The language for building web pages.

HTML Layout

HTML Layouts

Websites often display content in multiple columns. HTML has several ways to create layouts.

Layout Techniques:

  • CSS Flexbox - Most recommended for 1D layouts
  • CSS Grid - Best for 2D layouts
  • CSS Float - Old method, still used
  • HTML Table - Not recommended for layout

Semantic Layout Tags:

  • <header>, <nav>, <main>, <section>, <article>, <aside>, <footer>

Try It Yourself

Edit the code below and click Run to see the result live.

Source Code
Result
Topics