The Blue Cup's pages now have a complete semantic structure: header, navigation, main content, sections, articles, complements, figures and footer. But within that structure there is still data that a human understands instantly and a machine doesn't: to a program, "Published on 20 October 2026" is just a string of text, and nothing indicates that the address in the footer is the way to contact the site's owner. In addition, some content doesn't need to be visible all the time, such as the answers to frequently asked questions or a long transcript, and some notices are best shown in an overlay window. In this lesson, the last in the module, you will meet four elements that meet these needs: time for machine-readable dates, times and durations; address for contact details; details and summary for collapsible content without a single line of JavaScript; and dialog for dialog boxes. To finish, you will see two more elements, search and hgroup, and review the complete semantic skeleton of the site.
Contents
time: dates and times that machines understand- Valid formats for the
datetimeattribute address: contact details (and what it isn't)detailsandsummary: collapsible content- Exclusive accordions with the
nameattribute dialog: dialog boxes- Two more elements:
searchandhgroup - Project: completing The Blue Cup's semantics
time: Dates and Times That Machines Understand
The time element represents a date, a time or a duration. Its great advantage is that it lets you write the information naturally for people and, at the same time, in a standard format for machines, thanks to the datetime attribute:
- The content of the element ("20 October 2026") is what the user sees. You can write it however you like: "20/10/2026", "a month ago", "last Tuesday".
- The
datetimeattribute contains the same information in a normalised format (2026-10-20, that is, year-month-day). It isn't displayed on the page. timeis an inline element, likestrongorabbr: it goes inside a paragraph.
Who makes use of that datetime?
| Who | What for |
|---|---|
| Search engines | Showing the publication date of a news item in the results |
| Browsers and extensions | Offering "add to calendar" or converting times to the user's time zone |
| News readers and aggregators | Sorting articles by date |
| Your own JavaScript (in the future) | Working out "3 days ago" or flagging past events |
If the content of the element is already in a standard format, the datetime attribute isn't necessary:
But the usual practice on an English-language website is to write the date naturally and add datetime.
Important:
timeis for specific dates and times or durations. Don't use it for vague expressions that can't be converted into an exact format, such as "soon" or "in the autumn".
Valid Formats for the datetime Attribute
The value of datetime must follow one of the formats defined by HTML, based on the international standard ISO 8601. These are the most useful:
| What it represents | Format | datetime example |
Example visible text |
|---|---|---|---|
| Full date | YYYY-MM-DD |
2026-10-20 |
20 October 2026 |
| Month of a year | YYYY-MM |
2026-11 |
November 2026 |
| Year | YYYY |
2026 |
2026 |
| Date without a year (yearly date) | --MM-DD |
--12-24 |
every 24 December |
| Week | YYYY-Www |
2026-W48 |
week 48 |
| Time | HH:MM (or HH:MM:SS) |
08:00 |
8:00 |
| Date and time | YYYY-MM-DDTHH:MM |
2026-12-05T10:00 |
Saturday 5 December at 10:00 |
| Date and time with time zone | …+HH:MM or …Z |
2026-12-05T10:00+01:00 |
10:00 (mainland Spain time) |
| Duration | PT…H…M or P…D |
PT3H, PT1M30S, P2D |
3 hours, 1 min 30 s, 2 days |
Note the details:
- The
Tseparates the date from the time (a space is also accepted, but theTis the usual form). - Times are written in 24-hour format with two digits:
08:00, never8:00in the attribute. - Durations start with
P(for period). If they include hours, minutes or seconds, these are preceded by aT:PT3His 3 hours;P3D, 3 days. A more readable form,3hor1h 30m, is also accepted. - The time zone is only needed if the information may be read from other time zones and the difference matters (for example, an online event).
Some examples applied to The Blue Cup:
<p>We are open every day from <time datetime="08:00">8:00</time> to <time datetime="20:00">20:00</time>.</p>
<p>Next workshop: <time datetime="2026-12-05T10:00">Saturday 5 December, at 10:00</time>.
Length: <time datetime="PT3H">3 hours</time>.</p>
<p>The introductory video lasts <time datetime="PT1M">1 minute</time>.</p>Typical format mistakes:
| Incorrect | Problem | Correct |
|---|---|---|
datetime="20/10/2026" |
Local format, not standard | datetime="2026-10-20" |
datetime="2026-10-20 10h" |
"10h" isn't a valid time | datetime="2026-10-20T10:00" |
datetime="8:00" |
The hour needs two digits | datetime="08:00" |
datetime="3 hours" |
Text, not a duration format | datetime="PT3H" |
address: Contact Details (and What It Isn't)
The address element represents the contact information for the person or organisation responsible for its nearest context:
- If it is inside an
article, it gives the contact details of the author of that article. - If it isn't inside any
article(for example, in the page footer), it gives the contact details of the owner of the document, or whoever is responsible for it, that is, of the site.
<footer>
<address>
12 Example Street, Fictional Town<br>
Phone: <a href="tel:+34900000000">+34 900 000 000</a><br>
Email: <a href="mailto:[email protected]">[email protected]</a>
</address>
</footer>- By default, the browser displays the content of
addressin italics (this can be changed with CSS). - It can hold a postal address, phone number, email address, links to a contact page or to social media: any way of getting in touch.
addressis a block element; it can contain text, links andbr, but not headings, sections,header,footeror anotheraddress.
The Important Nuance: It Isn't for "Any Address"
The name is misleading. address is not for marking up any postal address that appears on the page, only the contact details of whoever is responsible for the content.
| Case | address? |
Reason |
|---|---|---|
| The Blue Cup's address, phone number and email address in the footer | Yes | Contact details of the site's owner |
| The author's email address at the end of an article on her blog | Yes, inside the article |
Contact details of the author of that article |
| The address of the farm that grows the coffee, mentioned in a news item | No | It is part of the content, not the contact details of whoever is responsible: an ordinary p |
| A list of shops that sell The Blue Cup's coffee, with their addresses | No | They are third-party addresses: an ordinary list or table |
| The delivery address a customer types into a form | No | It is form data, not the author's contact details |
| The opening hours or the copyright notice | No | They aren't contact details; they go outside the address |
In short:
addressanswers the question "how do I contact whoever wrote or publishes this?". If an address doesn't answer that question, it isn't anaddress.
In Microdata and Structured Data you will learn how to describe any postal address in a way that search engines understand (street, town, postcode…), something address doesn't do.
details and summary: Collapsible Content
The details element creates a collapsible block: it shows only a summary and, when clicked, expands to reveal the rest of the content. The visible summary is written with summary, which must be its first child:
<details>
<summary>Do you have gluten-free products?</summary>
<p>Yes, every day we bake a gluten-free sponge cake. But please bear in mind that wheat flour is handled in our bakery, so we can't guarantee that it is completely free of traces.</p>
</details>What the browser does, without a single line of JavaScript:
- It shows the
summarywith a triangle (▶) in front of it. The rest of the content is hidden. - When you click the
summary(or press Enter or Space if it has keyboard focus), the block expands and the triangle turns (▼). Another click collapses it. - It tells screen readers that the element is "collapsed" or "expanded".
It is the ideal element for:
- Frequently asked questions (FAQ).
- Long audio or video transcripts.
- Additional information that not everyone needs ("See terms and conditions", "More technical details").
The open Attribute
By default, details appears collapsed. If you want it to start expanded, add the boolean open attribute:
<details open>
<summary>Christmas opening hours</summary>
<p>From 24 to 26 December we are open from 9:00 to 14:00.</p>
</details>The browser adds or removes open automatically every time the user expands or collapses the block. You can check this in the Elements panel of DevTools while you click. Remember what you saw in Tags, Elements and Attributes about boolean attributes: open="false" does not close it; for it to start collapsed you have to remove the attribute.
Good Practice with details
- The
summaryshould describe what is going to expand: "Interview transcript", not "See more". - Don't hide essential information: if almost everyone needs it, leave it visible. Information that can't be seen can go unnoticed.
- Don't use it for the main navigation: a menu isn't collapsible content.
- Bear in mind find-in-page: in recent browsers, if the user searches with Ctrl+F (Cmd+F on a Mac) for text that is inside a closed
details, the block expands automatically to show it. Even so, don't rely on this for important content.
Exclusive Accordions with the name Attribute
An accordion is a group of collapsible blocks in which opening one closes the others. It used to be programmed with JavaScript, but today all you need to do is give several details elements the same name value:
<details name="faq">
<summary>Do I need to book?</summary>
<p>Only for groups of more than six people and for the bread-making workshop.</p>
</details>
<details name="faq">
<summary>Are pets allowed?</summary>
<p>Yes, on the terrace.</p>
</details>- All the
detailselements withname="faq"form an exclusive group: only one can be open at a time. When you open the second one, the first closes by itself. - The value of
nameis a name you choose; it just has to match across the members of the group. - In older browsers that don't recognise this attribute, each
detailsworks independently: the content is still accessible. It is a progressive enhancement. - Don't put
openon more than onedetailsin the same group.
Exclusive or independent accordion? It depends on the use: in a short FAQ, an exclusive one keeps the page tidy; if the user needs to compare two answers, it is better if they can be open at the same time (without name).
dialog: Dialog Boxes
The dialog element represents a dialog box: a notice, a confirmation, a small form that appears on top of the content. By default it is hidden.
Opening It with the open Attribute
With open, the dialog is displayed on the page as a box, but it is non-modal: the user can carry on interacting with the rest of the page. It is unusual to write it like this in the HTML; normally it is opened when something happens.
Opening It as a Modal with showModal()
A modal dialog sits on top of everything, darkens the background and blocks the rest of the page until it is closed. To open it like this, you need a short JavaScript instruction. JavaScript is the language that gives pages behaviour (you came across it in What Is HTML?; this course doesn't teach it, but these lines are easy to understand):
<button type="button" id="open-notice">See notice</button>
<dialog id="notice">
<h2>December workshop fully booked</h2>
<p>There are no places left for the workshop on Saturday 5 December. You can book for the January one.</p>
<form method="dialog">
<button>Got it</button>
</form>
</dialog>
<script>
const dialog = document.getElementById("notice");
const button = document.getElementById("open-notice");
button.addEventListener("click", () => dialog.showModal());
</script>Line by line:
- The button has
type="button", as you learnt in Form Elements, so that it never submits a form by accident. Itsidlets JavaScript find it. - The
dialoghas anidand contains a heading, some text and a small form. <form method="dialog">: this is the trick for closing the dialog without JavaScript. A form withmethod="dialog"sends nothing to the server; when its button is pressed, it simply closes the dialog that contains it. Remember that abuttonwithout atypeinside a form is of typesubmit: that is exactly what we want here.<script>is the element that contains JavaScript. Inside it:document.getElementById("notice")looks for the element withid="notice"on the page and stores it under the namedialog.- The second line does the same with the button.
button.addEventListener("click", () => dialog.showModal())means: "when someone clicks the button, open the dialog as a modal".
What the browser does when it opens a modal dialog:
- It displays it centred, on top of everything, with a semi-transparent background behind it (this can be customised with CSS using
::backdrop). - It moves keyboard focus into the dialog and keeps it there: the rest of the page becomes inert.
- It lets the user close it with the Escape key.
- When it closes, it returns focus to the button that opened it.
All of this, which used to take dozens of lines of JavaScript to do accessibly, dialog does on its own.
Something new: the most recent browsers let you open a dialog without JavaScript, using the
commandandcommandforattributes on the button:<button commandfor="notice" command="show-modal">See notice</button>. It is a very recent addition; if you use it, check that it works in your audience's browsers or keep the version withscript.
When to Use dialog (and When Not To)
| Use | dialog? |
|---|---|
| Confirming an action ("Are you sure you want to cancel your booking?") | Yes, modal |
| An important notice the user must read before continuing | Yes, modal |
| A help panel that can stay open while a form is being filled in | Yes, non-modal (show() instead of showModal()) |
| An advert that pops up when you arrive | Technically yes, but it is annoying: avoid it |
| Content that simply expands and collapses | No: that is details |
Tip: a dialog interrupts the user. Use one only when that interruption is justified.
Two More Elements: search and hgroup
search
The search element is a recent addition to HTML. It represents the part of the page that contains a search or filtering form or controls, and it creates a search region for screen readers:
<search>
<form action="https://thebluecup.example/search" method="get">
<label for="q">Search the news</label>
<input type="search" id="q" name="q">
<button>Search</button>
</form>
</search>searchwraps the form; it doesn't replace it. Theformis still needed to send the data.- It is for the search, not for displaying its results.
- In older browsers that don't recognise it, it behaves like a
div, so it doesn't break anything.
hgroup
The hgroup element groups a heading with one or more related paragraphs, such as a subtitle or a tagline:
- It contains a single heading (
h1–h6) and paragraphs before or after it. - It indicates that the paragraph is a subtitle of the heading and not just another paragraph of content.
- Don't use a second heading (for example, an
h2) as a subtitle: it would break the page's heading hierarchy. That was an old practice that the specification no longer allows.
Project: Completing The Blue Cup's Semantics
- News Dates with
time
timeIn news.html, each article has a "Published on…" line in its header. Mark up each date with time:
<article id="bread-workshop">
<header>
<h2>Bread-making workshop for beginners</h2>
<p>Published on <time datetime="2026-10-20">20 October 2026</time></p>
</header>
<!-- … -->
<p>Next workshop: <time datetime="2026-12-05T10:00">Saturday 5 December, at 10:00</time>
(length: <time datetime="PT3H">3 hours</time>).</p>
<!-- … -->
</article>Do the same with the rest: 2026-10-05 (seasonal coffee), 2026-10-12 (terrace), 2026-11-03 (most ordered) and 2026-11-10 (cold brew). In the workshop news item, you also add the paragraph with the date and length of the next workshop, which matches the weekly opening hours on the home page (first Saturday of every month, from 10:00 to 13:00).
- The Footer Contact Details in
address
addressIn the shared footer of every page, the paragraph with the address, phone number and email address becomes an address, and the opening hours are marked up with time:
<footer>
<p><strong>The Blue Cup</strong>, café and bakery</p>
<address>
12 Example Street, Fictional Town<br>
Phone: <a href="tel:+34900000000">+34 900 000 000</a><br>
Email: <a href="mailto:[email protected]?subject=Enquiry%20from%20the%20website">[email protected]</a>
</address>
<p>Open every day from <time datetime="08:00">8:00</time> to <time datetime="20:00">20:00</time>. <a href="index.html#opening-hours">See opening hours by service</a></p>
<p><a href="privacy.html">Privacy policy</a></p>
<p><small>© 2026 The Blue Cup. All rights reserved.</small></p>
</footer>- Only the contact details remain inside the
address. The trading name, the opening hours, the legal link and the copyright notice stay outside. - These are the site owner's contact details and they aren't inside any
article: this is exactly the use defined by the specification. - Don't turn the address of the coffee farm in the autumn news item into an
address, nor the address in the#opening-hoursblock on the home page, which is part of the content ("where to find us"), not the contact details of whoever is responsible for the page.
- Frequently Asked Questions in
contact.html
contact.htmlBefore the "Write to us" form, add a frequently asked questions section with an exclusive accordion. That way, many customers will find the answer without needing to write:
<section id="faq">
<h2>Frequently asked questions</h2>
<details name="faq">
<summary>Do I need to book a table?</summary>
<p>No, except for groups of more than six people. You can book from the <a href="bookings.html">bookings</a> page.</p>
</details>
<details name="faq">
<summary>Do you have gluten-free products?</summary>
<p>Every day we bake a gluten-free sponge cake, but wheat flour is handled in our bakery and we can't guarantee that it is completely free of traces. Check the allergens in the <a href="menu.html#prices">price list</a>.</p>
</details>
<details name="faq">
<summary>How do I sign up for the bread-making workshop?</summary>
<p>It takes place on the first Saturday of every month, from <time datetime="10:00">10:00</time> to <time datetime="13:00">13:00</time>. Choose "A place on the bread-making workshop" in the <a href="bookings.html">booking form</a>.</p>
</details>
<details name="faq">
<summary>Are pets allowed?</summary>
<p>Yes, on the terrace. Only assistance dogs are allowed indoors.</p>
</details>
</section>- Each question is a
detailswith the question in thesummary. - All four share
name="faq": opening one closes the previous one. - The answers link to the pages where more information is available, including the menu table with the allergens.
- A Collapsible Transcript in
news.html
news.htmlIn the interview section inside the workshop article, replace the h4 heading "Interview transcript" and the paragraphs that follow it with a details:
<section>
<h3>Listen to the interview with Carmen, our head baker</h3>
<p>We chatted with Carmen about sourdough and what you will learn on the workshop (<time datetime="PT2M">2 minutes</time>).</p>
<!-- audio, unchanged -->
<details id="interview-transcript">
<summary>Interview transcript</summary>
<p><strong>Interviewer:</strong> Carmen, what time does your day start in the bakery?</p>
<!-- rest of the exchanges, unchanged -->
</details>
</section>- The transcript is still on the page, just after the audio, as required by the convention you established in Using the Audio Element: it just no longer makes the news item longer for those who don't need it.
- The
summarysays exactly what expands. - This
detailshas noname: it is independent and isn't part of any accordion. - The length of the audio is marked up with
time.
- A Notice Dialog in
bookings.html
bookings.htmlBefore the booking form (outside it), add a button that opens the booking conditions in a modal dialog, and the script at the end of the main:
<p>Before booking, please read our conditions.
<button type="button" id="open-conditions">See booking conditions</button></p>
<dialog id="conditions">
<h2>Booking conditions</h2>
<ul>
<li>We hold your table for 15 minutes.</li>
<li>If you can't come, let us know by phone or email.</li>
<li>The bread-making workshop has a maximum of 15 places.</li>
</ul>
<form method="dialog">
<button>Got it</button>
</form>
</dialog>
<!-- booking form, unchanged -->
<script>
const conditions = document.getElementById("conditions");
document.getElementById("open-conditions").addEventListener("click", () => conditions.showModal());
</script>- The button and the dialog are outside the booking form. If the
dialog, with itsform method="dialog", were inside it, you would have one form inside another, which HTML doesn't allow. - The opening button is
type="button": even though it is outside the form, it is a habit that avoids surprises. - Here the script uses a compact version: it finds the button and assigns it the action in a single line.
- Try opening it, closing it with "Got it" and with Escape, and notice that focus returns to the button.
- The News Search Box in
search
searchIn news.html, wrap the search form (GET) in a search element. Don't change anything in the form.
The Semantic Skeleton at the End of the Module
All The Blue Cup's pages now share this structure:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Page | The Blue Cup</title>
</head>
<body>
<header>
<p class="logo"><a href="index.html"><img src="img/logo.png" alt="The Blue Cup home page" width="180" height="60"></a></p>
<nav aria-label="Main menu">
<ul class="menu">
<!-- six links; aria-current="page" on the one for the current page -->
</ul>
</nav>
</header>
<main id="content">
<h1><!-- page title --></h1>
<!-- section, article, aside and figure, depending on the page -->
</main>
<footer>
<p><strong>The Blue Cup</strong>, café and bakery</p>
<address><!-- address, tel:, mailto: --></address>
<p><!-- short opening hours with time + link to index.html#opening-hours --></p>
<p><a href="privacy.html">Privacy policy</a></p>
<p><small>© 2026 The Blue Cup. All rights reserved.</small></p>
</footer>
</body>
</html>(In index.html, the h1 is inside section.welcome; on the other pages, directly in the main.)
graph TD
BODY["body"] --> H["header"]
BODY --> M["main#content"]
BODY --> F["footer"]
H --> L["p.logo"]
H --> N["nav: Main menu"]
M --> I["index: section + aside#offer + figure.review"]
M --> NO["news: search + article with header and time + aside#newsletter"]
M --> G["gallery: section + figure/figcaption"]
M --> C["contact: section#faq with details + form"]
M --> R["bookings: dialog + form"]
F --> AD["address"]
Common Mistakes and Tips
- Writing
datetimein a local format (20/10/2026). Always use the standard formats:2026-10-20. - Using
timefor vague expressions such as "soon". Only specific dates, times and durations. - Marking up any postal address with
address. Only the contact details of the author or owner. - Putting the opening hours, the copyright notice or the business name as a heading inside the
address. Contact details only. - Forgetting the
summaryor not making it the first child of thedetails. Without it, the browser shows a generic text ("Details"). - Hiding information that everyone needs inside a
details. - Writing
open="false"to collapse adetails. It is boolean: to collapse it, remove the attribute. - Putting a
dialogwithform method="dialog"inside another form. Forms can't be nested. - Forgetting the dialog's close button. Escape works in the modal, but many users (and all touchscreen users) need a visible button.
- Using
dialogfor everything. It interrupts the user: only when justified. - Using an
h2as a subtitle insidehgroup. The subtitle is ap. - Tip: check your dates: open DevTools, select a
timeand check itsdatetime. In Validating HTML Code you will learn how to get a validator to detect incorrect formats automatically.
Exercises
Exercise 1. Write the code for these sentences using time with the correct datetime:
- "The lunch menu is served from 13:00 to 16:00."
- "The Blue Cup opened its doors in March 2026."
- "Every 24 December we close at 14:00."
- "Cold brew needs to steep for 12 hours."
Exercise 2. Decide whether each of these fragments should go in an address and justify your answer:
- At the end of a news item written by Carmen: "Questions about the workshop? Write to Carmen: [email protected]".
- In the seasonal coffee news item: "The coffee comes from the Finca El Mirador estate, at 3 Hill Road".
- In
contact.html: "You'll find us at 12 Example Street, Fictional Town", in the page's introductory paragraph.
Exercise 3. In menu.html, the glossary section uses a description list (dl) with coffee terms. Imagine you want the whole glossary to take up little space and only expand if the user asks for it. Write the structure with details. Should it have name? And open?
Solutions
Solution 1.
<p>The lunch menu is served from <time datetime="13:00">13:00</time> to <time datetime="16:00">16:00</time>.</p>
<p>The Blue Cup opened its doors in <time datetime="2026-03">March 2026</time>.</p>
<p>Every <time datetime="--12-24">24 December</time> we close at <time datetime="14:00">14:00</time>.</p>
<p>Cold brew needs to steep for <time datetime="PT12H">12 hours</time>.</p>- The month of a year is written
YYYY-MM. - A date that recurs every year is written without the year:
--MM-DD. - Durations start with
PTwhen they are expressed in hours.
Solution 2.
-
Yes, inside the news item's
article: they are the contact details of the author of that article.<footer> <address>Questions about the workshop? Write to Carmen: <a href="mailto:[email protected]">[email protected]</a></address> </footer> -
No: it is an address mentioned in the content, not the contact details of whoever is responsible for the news item. It goes in an ordinary paragraph.
-
No, in principle: it is part of the page's content ("where to find us"), not the contact details of the document's owner, which are already in the footer's
address. Repeatingaddressin the content adds nothing.
Solution 3.
<section id="glossary">
<h2>Coffee glossary</h2>
<details>
<summary>See the full glossary</summary>
<dl>
<!-- terms and definitions, unchanged -->
</dl>
</details>
</section>- The
h2heading stays outside thedetails, so that the section still appears in the page's heading structure and in the "On this page" index. - It has no
name: it is a single block, not part of an accordion. - It has no
open: we want it to start collapsed. If the glossary were information that almost every customer looks up, it would be better not to collapse it.
Conclusion
With this lesson you complete the HTML5 Semantic Elements module. You have learnt to use time with its datetime attribute so that dates, times and durations are machine-readable; address for the contact details of the author or owner, and not for just any address; details and summary for collapsible content without JavaScript, with open to start expanded and name to form exclusive accordions; and dialog for dialog boxes, opened as modals with showModal() and closed with a form method="dialog". You also know search, for wrapping search boxes, and hgroup, for joining a heading to its subtitle. Over the course of the module, The Blue Cup has gone from a "div soup" to a site with a complete semantic skeleton: a header with nav and aria-current, a main with its id ready for skipping to the content, news items in article with dates in time, a home page in section with the offer in an aside, photos and reviews in figure, collapsible FAQs and transcript, a dialog with the booking conditions and a shared footer with its address. In that footer there is a detail you wrote without stopping to think about it: ©. In the next module, Advanced HTML Techniques, you will start right there, with the lesson HTML Entities, and discover how to write that symbol and any other special character, when entities are needed and when it is enough to type the character directly.
HTML Course
Module 1: Introduction to HTML
- What Is HTML?
- Setting Up Your Work Environment
- Basic Structure of an HTML Document
- Tags, Elements and Attributes
- Creating Your First HTML Page
- File Organisation and Paths
Module 2: Text Formatting in HTML
- Headings and Paragraphs
- Text Formatting Tags
- Lists: Ordered, Unordered and Description Lists
- Block Quotes and Preformatted Text
- Block and Inline Elements: div and span
Module 3: Links and Media in HTML
- Creating Hyperlinks
- Special Links: Anchors, Email, Phone and Downloads
- Adding Images
- Embedding Videos
- Using the Audio Element
Module 4: Tables in HTML
- Basic Table Structure
- Table Head, Body and Foot
- Merging Cells: colspan and rowspan
- Accessible Tables: caption, scope and headers
- Styling Tables
Module 5: Forms in HTML
- Creating a Basic Form
- Form Elements: input, textarea and select
- HTML5 Input Types
- Labels and Grouping: label, fieldset, legend and datalist
- Form Attributes and Validation
- Submitting Forms
Module 6: HTML5 Semantic Elements
- Introduction to Semantic HTML
- header, nav and footer
- article, section and aside
- main and figure
- Other Semantic Elements: time, address, details and dialog
Module 7: Advanced HTML Techniques
- HTML Entities
- Using iframes
- Data Attributes
- Metadata: meta, SEO and Open Graph
- Microdata and Structured Data
- Graphics in HTML: SVG and canvas
Module 8: Integrating HTML and CSS
- Linking CSS to HTML
- Inline, Internal and External CSS
- Basic CSS Selectors
- The Box Model
- Styling HTML Elements
- Introduction to Layout with Flexbox and Grid
Module 9: Responsive Web Design
Module 10: Best Practices and Accessibility
- HTML Best Practices
- Validating HTML Code
- Web Accessibility Basics
- Using ARIA Roles and Attributes
- Accessibility Testing
- Performance and Resource Loading
