Home >Web Front-end >HTML Tutorial >Add a title to a

element in HTML5

Add a title to a
element in HTML5

WBOY
WBOYforward
2023-09-08 16:45:091393browse

Add a title to a <figure> element in HTML5

To add a title to the

element, use the
tag. You can try running the following code to include the title of the
element in HTML5 -

<!DOCTYPE html>
<html>
   <head>
      <title>HTML figcaption Tag</title>
   </head>
   <body>
      <figure><img  src = "https://www.tutorialspoint.com/videotutorials/images/tutorial_library_home.jpg"/ alt="Add a title to a <figure> element in HTML5" >
         <figcaption>Tutorials Point Library of Tutorials</figcaption>
      </figure>
   </body>
</html>

The above is the detailed content of Add a title to a

element in HTML5. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete