HTML - Semantic HTML Part 3

May 12, 2026 3:00pm UTC (Check your timezone)

Theory Workshop Lab Review Quiz

Instructors: Jess, Carmen, and Eda

Semantic HTML

Download iCal File

Before this session, please:

During this session, we’ll:

After this session, please:

Instructor notes

Working with Specialized Semantic Elements: How Do You Display Mathematical Equations and Chemical Formulas in HTML?

Many of us won’t have to use these elements, but it’s good to look over them quickly, just so we know the options to semantically represent them exist!

Superscript elements let us do tiny numbers above our normal text line

The same element can be used to do abbreviations another way!

The subscript element does the same thing as superscript, but puts the numbers below the normal text line instead of above

Working with Specialized Semantic Elements: How Do You Represent Computer Code in HTML?

Text representing computer code has a semantic element that helps people (and machines) understand the context of the text better.

You might use the code elements when you’re writing a blog post about what you’ve learned today.

The preformatted text element is used when we want our users’ browsers to see the text in the same format we’ve pasted it into our HTML file. This can be important for code because the formatting of code (especially how we indent it) can make it easier for humans to read!

We might use both of these together when we want to show longer pieces of code on our webpage.

Working with Specialized Semantic Elements: What Are the U, S, and Ruby Elements Used For, and How Do They Work?

The unarticulated annotation element is used to mark that there’s something unusual about the text. But really, it used to be an element we used to apply underlined styling before CSS existed. Most web developers today will never use it. We would using CSS now!

The strikethrough element used to be used to show strikethrough styling in text. But we would use CSS for this now!

Ruby elements are generally only used for web content from languages where the spelling or pronunciation of characters needs to be written in context above specific words. Unless you’re working with these languages (and you would know if you were) we don’t really need to worry about them!

Build a Cat Blog Page

From step 5, we see an id being used for the first time! We’re going to learn more about ids (and classes!). For now, just remember that all ids need to be unique (there can only be one element with that id on your page) and that they should be named in ways that communicate semantic meaning (because many assistive technologies use them).

We’re using these ids with anchor tags in our nav to link to different sections of our page!

At step 11 we see Lorem Ipsum, this is a common placeholder text. You’ll often use it when you need to build a website but don’t have the text that will go on your website yet.

This website includes a phone number and email address. When might we want to include these and when might we want to leave these off?

Build an Event Hub

This is a creative individual exercise, so everyone’s notes will be a little different. We’ll talk through the project together, though!

Semantic HTML Review

Big things to remember: