Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8427615
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T04:49:39+00:00 2026-06-10T04:49:39+00:00

At the moment, HTML5 standards create titles/headings automatically from the first heading it finds

  • 0

At the moment, HTML5 standards create titles/headings automatically from the first heading it finds in the article/section/nav etc. The problem I have is seeing why <caption> shouldn’t be treated the same way as headings (for the purpose of the outline).

Take the below code for example. It’s what you have to resort to in order to have a titled section in the document outline:

<table>
    <caption>Results from zombie duck experiment</caption>
    <h2 style="display: none;">Results from zombie duck experiment</h2>
    <tr>
        <td>FAILURE</td>
        <td>FAILURE</td>
    </tr>
</table>

(Which produces this outline: http://gsnedders.html5.org/outliner/process.py?url=http%3A%2F%2Froncya.com%2Ftransfer%2FHTML5CaptionDocumentOutline2.htm)

I understand why that works; HTMLDoctor go so far as to say that it is the recommended way of doing things:

For accessibility reasons, we recommend each sectioning element have a heading, even <aside> and <nav>. If you don’t want these headings to be visible, you can always hide them with CSS. —http://html5doctor.com/outlines/

Sure, but why not this?:

<table>
    <caption>Results from zombie duck experiment</caption>
    <tr>
        <td>FAILURE</td>
        <td>FAILURE</td>
    </tr>
</table>

(Which produces this failed outline: http://gsnedders.html5.org/outliner/process.py?url=http%3A%2F%2Froncya.com%2Ftransfer%2FHTML5CaptionDocumentOutline1.htm)

I’m assuming that the W3C made a conscious decision and the only ideas I have are that:

  1. Tables, while they do have an ending tag, aren’t really used as ‘wrappers’ like div, span, article, section, nav and similar. So in that sense, they don’t define a ‘surrounded section’
  2. Headings are headings and captions are not headings (…which doesn’t answer much)
  3. Typical captions don’t make for suitable titles (I disagree with this)

As for number 3, I think that a typical caption would still be useful as a title in a document outline. Regardless of wether they’re on top of the table or below. Heck, I can’t even see why it would be worse than nothing. Take these possible captions for example- I reckon they would all be appropriate document outline section titles:

  • Results from zombie duck experiment
  • Figure 3b
  • Windows 8 Region Pricing
  • Which brand contains what?
  • Cheat codes
  • Colours
  • Abraham Lincoln’s attire at different periods of history

It would sure make sense to me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T04:49:41+00:00Added an answer on June 10, 2026 at 4:49 am

    In HTML5, it’s intended that the caption contains not just a brief title, but descriptive prose explaining the table. The spec provides one example of use of caption:

    <caption>
        <p>Table 1.
        <p>This table shows the total score obtained from rolling two
        six-sided dice. The first row represents the value of the first die,
        the first column the value of the second die. The total is given in
        the cell that corresponds to the values of the two dice.
    </caption>
    

    This would not make for a good title for the document outline.

    I would suggest that you put the <h?> inside the caption if you want it to appear in the document outline. In the example above, this would be suitable:

    <caption>
        <h2>Table 1.</h2>
        <p>This table shows the total score obtained from rolling two
        six-sided dice. The first row represents the value of the first die,
        the first column the value of the second die. The total is given in
        the cell that corresponds to the values of the two dice.
    </caption>
    

    or in your example:

    <table>
        <caption><h2>Results from zombie duck experiment</h2></caption>
        <tr>
            <td>FAILURE</td>
            <td>FAILURE</td>
        </tr>
    </table>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

HTML5 WebWorkers look very promising but at the moment they're not supported by IE8.
I'm at the moment trying to plot formulas on HTML5 <canvas> by letting the
I am developing my first HTML5 / CSS3 website and I want to do
I recently came across this article which explains how to use HTML5 tags in
The HTML5 draft specifies (at the moment at least), that the URI about:legacy-compat can
Wow! Web standards regarding databases seem to be a mess at the moment. Anyone
At the moment I'm coding a web application that imports image data from Google
I'm trying to display some large images with HTML img tags. At the moment
At moment I want to implement picture upload without using any plug-ins. My upload
There is a moment in my app, that I need to force to show

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.