Skip to content

HTML: Live coding

Tracing

What does the following markup do?

A

html
<li>Choose a color using the <strong>Color Pane</strong>.</li>

B

html
<img
  src="george-birkbeck-portrait.avif"
  alt="A portrait from eighteen-thirty of 
  George Birkbeck gazing steadily forward with poise">

C

html
<section id="reader-comments" class="comment-section">
  ...
</section>

D

html
<navigation>
  <item>Home</item>
  <item>Shop</item>
  <item>Cart</item>
</navigation>

E

html
<form>
  <button>Log in</button>
</form>

F

html
<img href:cat.png>

Template recognition

Go to any website, find something that might have interesting HTML, and inspect it.

Questions for inspecting websites:

  1. Can you predict what markup something will use before you inspect it?

  2. Considering what you know about presentational and semantic HTML, what would you change about the markup, if anything?

Content CC BY 4.0 | Code AGPL 3.0