Curriculum
Course: HTML Basic
Login

Curriculum

HTML Basic

HTML Introduction

0/1

HTML Editors

0/1

HTML Elements

0/1

HTML Attributes

0/1

HTML Headings

0/1

HTML Paragraphs

0/1

HTML Styles

0/1

HTML Formatting

0/1

HTML Quotation

0/1

HTML Comments

0/1

HTML Colors

0/1

HTML Favicon

0/1

HTML Page Title

0/1

HTML Block and Inline

0/1

HTML Iframes

0/1

HTML Java Script

0/1

HTML File Paths

0/1

HTML - The Head Element

0/1

HTML Style Guide

0/1

HTML Entities

0/1

HTML Symbols

0/1
Text lesson

HTML Layout Elements and Techniques

HTML Layout Elements

HTML comprises various semantic elements delineating distinct sections of a webpage.

IMG_2798

  • <header> – Specifies a document or section’s header
  • <nav> – Indicates a set of navigation links
  • <section> – Identifies a segment within a document
  • <article> – Describes independent, self-contained content
  • <aside> – Represents content distinct from the primary content (e.g., a sidebar)
  • <footer> – Designates a document or section’s footer
  • <details> – Specifies additional details that users can expand or collapse as needed
  • <summary> – Defines a heading for the <details> element

For further details on semantic elements, refer to our HTML Semantics chapter.

HTML Layout Techniques

Four distinct methods exist for crafting multicolumn layouts, each presenting its own advantages and disadvantages.

  • CSS framework
  • CSS float property
  • CSS flexbox
  • CSS grid

CSS Float Layout

Utilizing the CSS float property for entire web layouts is a common practice. Float is straightforward to grasp, requiring only an understanding of how the float and clear properties function. However, there are drawbacks: floating elements are intricately linked to the document flow, potentially compromising flexibility. Further insights into float can be found in our CSS Float and Clear chapter.

Example

IMG_3850

 

CSS Flexbox Layout

Employing flexbox guarantees consistent behavior of elements when adapting the page layout to varying screen sizes and display devices.

Example

IMG_3714

 

CSS Grid Layout

The CSS Grid Layout Module provides a grid-centric layout system featuring rows and columns, simplifying webpage design without necessitating the use of floats and positioning.

Example

IMG_3852