What HTML tags to use to describe an image? -


my typical image have event name (short text), description text (longer text), , copyright text (short text) below it. i'm looking best tag use case. don't worry compatibility older browers. image in figure tag, we're talking content within figcaption here.

example:

------------------------- - imagine image here - ------------------------- marathon 2013 great marathon 2013 photo of great runner. go on, , on, , on...  , span multiple lines of time.  courtesy of somesite.com 

i'm using cite event (marathon 2013) , copyright (courtesy of somesite.com). i'm thinking of span description.

what suggest?

        <figure>           <img src="image.jpg" alt="image text">           <figcaption>some great marathon 2013 photo of great runner.             go on, , on, , on... , span multiple lines of time.              courtesy of somesite.com</figcaption>         </figure> 

inside figcaption can use tags want <a> or <span>

and can use figure multi images this

        <figure>           <img src="image.jpg" alt="image text">           <img src="image2.jpg" alt="image text">           <img src="image3.jpg" alt="image text">           <figcaption>some great marathon 2013 photo of great runner.             go on, , on, , on... , span multiple lines of time.              courtesy of somesite.com</figcaption>         </figure> 

Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -