Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

<figure> & <figcaption>

  • 07-10-2013 02:25PM
    #1
    Registered Users, Registered Users 2 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