Posts

Understanding Figure Elements in HTML

Image
Understanding Figure Elements in HTML We need to use figure elements to define figure contents in a html page and this post contains details about the same.          Photo by Boston Public Library on Unsplash Introduction What is a figure element? A figure element written as <figure> is required to indicate pictures, drawings, code snippet listings, quotes, diagrams, illustrations eatc or any such content , that is part of the main content in the web page, but, exists independently with regards to it’s position in the main flow of the content and even if it is removed from the content of that web page, it will not interfere with the configuration of the main content. Let us see in more details how to use this figure element in an html web page. Using the figure element to define an Image As you can see from the below code, the figure element has an opening and closing tag , <figure> and </figure> tags respectively and within the figure elements...