Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

<figure> & <figcaption>

Options
  • 07-10-2013 2:25pm
    #1
    Registered Users Posts: 94 ✭✭


    Just wondering what the consensus is on this -

    Can <figure> & <figcaption> be used to display thumbnails which are essentially just links?

    Think of youtube and the thumbs visible down the right hand side of the screen.
    Youtube use li>a> and then <img> & <span> to display the img & text content.

    Would it be semantically correct to use something like this instead?
    [HTML]
    <li>

    <a>

    <figure>

    <img src="youtubethumb.png"></img>

    <figcaption>
    <span>Title of video</span>
    <span>Additional info</span>
    </figcaption>

    </figure>

    </a>

    </li>
    [/HTML]

    I have difficulty interpreting the official line on <figure> -
    The figure element represents a unit of content, optionally with a caption, that is self-contained, that is typically referenced as a single unit from the main flow of the document, and that can be moved away from the main flow of the document without affecting the document’s meaning.

    Would a thumbnail link be considered a unit of content? It is certainly self contained and can can be removed from the flow of the doc without affecting the docs meaning but is it actually considered content?


Advertisement