HTML bootcamp · Lab 14

A page section

mediumSemantics10 minLesson: Semantics

Read the question, write HTML on the right, then Preview or Check.

QuestionHint and solution stay closed until you open them

Create a <section> with an <h2> heading "About" and a <p> that says "We roast our own beans."

A <section> groups related content under a heading — the building block of a well-structured page.

Output. A section containing an h2 and a p.

Examples

Example 1
Expected
<section><h2>About</h2><p>…</p></section>
Hint
  1. Put the h2 and p inside the <section>.
  2. Every section should start with a heading.
Show correct code

Peek only after you have tried. You can still Check your own version.

<section>
  <h2>About</h2>
  <p>We roast our own beans.</p>
</section>
index.htmlLive preview · Check reads the DOM
ResultIdle
Run to see output. Check grades the tests.