0

I wrote:

A caption is usually a short text enclosed by a block-level HTML element, immediately following a table or an image.

"following a table or an image" is a reduced relative clause in which I want to use the adverb "immediately". I would like to know if I used it in correct position.

  • I think the shortened should be immediately followed by a table or image. – Alejandro Jan 30 '16 at 20:38
  • 1
    @Ustanak suppose the caption is under the table or image. – Ahmad Jan 30 '16 at 20:41
  • Are you trying to say the caption is before or after the table/image? As written the table/image is first, but I can't say that is what you are going for. – user3169 Jan 30 '16 at 20:59
  • @user3169 yes, they follow the table or image (are under it). – Ahmad Jan 30 '16 at 21:37
  • @Ustanak that has the reverse meaning. – BobRodes Jan 31 '16 at 4:02
1

First, the sentence isn't entirely correct, not because it's ungrammatical, but because it isn't precisely the way that HTML captions work. I'll explain how captions work in HTML, so we can be sure that you are saying what you want to say.

The HTML <caption> element only works with tables, not images. It has to be enclosed in a <table> block (if you use it outside of a table block it is ignored), and defaults to being above the table (you can use CSS to reposition it below the table). The HTML <figcaption> element (HTML5 only) is used with images. Here are two code samples, borrowed from w3schools.com. This is a table:

<table>
  <caption>Monthly savings</caption>
  <tr>
    <th>Month</th>
    <th>Savings</th>
  </tr>
  <tr>
    <td>January</td>
    <td>$100</td>
  </tr>
</table>

Here's an image:

<figure>
  <img src="img_pulpit.jpg" alt="The Pulpit Rock" width="304" height="228">
  <figcaption>Fig.1 - A view of the pulpit rock in Norway.</figcaption>
</figure>

All right. Now, your statement is saying that the caption is a short string of text positioned below the image or table. If that is what you want to say, it is grammatically correct. However, as I have explained, it is not factually completely accurate.

As Ustanak has observed in the comments, you may also say immediately followed by a table or image, but that has the opposite meaning: it means that the caption is on top and the table or image is underneath it. Again, this is the default behavior with tables. With images, it's simply a matter of whether you put the <figcaption> tag first, or the <img> tag first. (In the code sample, the caption is below the image, as is typical.)

These two sentences should make the difference clear:

Joe immediately followed Pete in the parade. (Joe was right behind Pete.)
Joe was immediately followed by Pete in the parade. (Pete was right behind Joe.)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.