Difference between revisions of "Figure and Figcaption Elements"

From Level Access Web Labs
Jump to navigation Jump to search
Line 21: Line 21:
 
   </code>
 
   </code>
 
   <figcaption>JavaScript Alert dialog code</figcaption>
 
   <figcaption>JavaScript Alert dialog code</figcaption>
 +
</figure>
 +
</html>
 +
 +
==Figure with background image==
 +
<html>
 +
<figure>
 +
  <div style="background-image:url('test.jpg');">
 +
  </div>
 
</figure>
 
</figure>
 
</html>
 
</html>

Revision as of 17:50, 6 July 2015

Image figure and caption

Brick 3 level office building with the SSB logo and the address 1493 Chain Bridge Rd. Ste. 100 displayed
The SSB McLean, VA Office Building
a power scooter with basket
Power Scooter. © MyScooterShop

Non-image figure and caption

window.alert('Email address is invalid');
JavaScript Alert dialog code

Figure with background image