Curriculum
Course: HTML Basic
Login

Curriculum

HTML Basic

HTML Introduction

0/1

HTML Editors

0/1

HTML Attributes

0/1

HTML Paragraphs

0/1

HTML Formatting

0/1

HTML Comments

0/1

HTML Favicon

0/1

HTML Page Title

0/1

HTML Iframes

0/1

HTML Java Script

0/1

HTML File Paths

0/1

HTML Symbols

0/1
Text lesson

Nesting <article> in <section> or Vice Versa?

Although the <article> element denotes self-contained content, and the <section> element defines sections within a document, their definitions don’t dictate how they should be nested.

Therefore, it’s common to encounter HTML pages where <section> elements contain <article> elements, and vice versa.

HTML <header> Element 

The <header> element serves as a container for introductory content or a collection of navigational links.

Typically, a <header> element includes:

  • one or more heading elements (<h1> – <h6>)
  • a logo or icon
  • authorship information

Note: It’s possible to have multiple <header> elements within a single HTML document. However, a <header> element cannot be nested within a <footer><address>, or another <header> element.

Example

An introductory section for an <article>:

<article>
  <header>
    <h1>What Does WWF Do?</h1>
    <p>WWF’s mission:</p>
  </header>
  <p>WWF’s mission is to stop the degradation of our planet’s natural environment,
  and build a future in which humans live in harmony with nature.</p>
</article>

HTML <footer> Element

The <footer> element delineates a footer for a document or a specific section.

<footer> element commonly includes:

  • Authorship details
  • Copyright information
  • Contact details
  • Site map
  • “Back to top” links
  • Related documents

Multiple <footer> elements can exist within a single document.

Example

A section at the bottom of a document:

<footer>
  <p>Author: Hege Refsnes</p>
  <p><a href=”mailto:[email protected]>[email protected]</a></p>
</footer>