Go Back   Site Owners Forums - Webmaster Forums > Web Programming > Programming General > HTML / DHTML

Notices


Reply
 
Thread Tools Rate Thread Display Modes
Old 07-04-2012, 11:00 PM   #1
spinxwebdesign
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..
spinxwebdesign is offline   Reply With Quote

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

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


All times are GMT -7. The time now is 07:33 AM.


Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.