07-04-2012, 11:00 PM | #1 |
Registered User
Join Date: Jun 2010
Posts: 269
|
<Figure> Element of HTML5
Earlier, there is not any easy or semantic way to relate the caption with the Image element itself. We need to use <P> to connect caption with the Image element. But now with HTML5, we can do this. HTML5 offers remedy for this with the introduction of the <figure> element. <figure> element comes with the <figcaption> element and that is used to relate captions with their image counterparts. See below example:
<figure> <img src="image_path" alt="About the image" /> <figcaption> <p>Something interesting about the image. </p> </figcaption> </figure> Last edited by spinxwebdesign; 09-07-2012 at 04:57 AM.. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
HTML5 and CSS3 frameworks? | cianfie | Programming General | 7 | 10-23-2012 07:47 AM |
Help on pulling down an element inside a div | cosmicx | HTML / DHTML | 1 | 07-12-2012 02:58 AM |
HTML5, Multiple H1's and SEO | bobo.cx | Search Engine Optimization | 0 | 06-11-2012 05:09 AM |
I want to learn HTML5, any good suggestions? | qdluhangmarine | HTML / DHTML | 0 | 03-13-2012 08:22 PM |
limitations on HTML5 Videos ? | cianfie | Programming General | 0 | 12-06-2011 09:28 PM |