PGQ
Posts: 2
Joined: Mon Mar 27, 2023 8:52 pm

Figure class tag

Hi, as someone who is VERY NEW to Highcharts and coding in general, I was wondering if someone can tell me why the "figure class" tag is used? This is how charts are set up when using a demo chart in JSFiddle. Can the chart just be contained in the div tag? Does it have to do with the CSS styling?

Again, sorry for the silly question but I am trying to better understand the basic structure of setting up charts.

Thanks!
jakub.s
Posts: 1164
Joined: Fri Dec 16, 2022 11:45 am

Re: Figure class tag

Hi,

Welcome to our forum & thanks for the question!

The figure tag does not make any visual difference, it's just for the semantic HTML5 (SEO - search engine optimization, content detection, and other features that you do not need to care about when you're creating simple web apps).

Here's an article worth looking at: https://www.w3schools.com/html/html5_se ... ements.asp
And you can take a look at the figure tag and its meaning: https://www.w3schools.com/html/html5_se ... ements.asp

Here's a demo of a very simple chart in a simple div: https://jsfiddle.net/BlackLabel/r3azuvfy/

Let me know if that answers your question!

Best regards,
Jakub
Jakub
Highcharts Developer

Return to “Highcharts Usage”