Brandon
Brandon

Reputation: 259

Which HTML element should semantically be used for a graph?

Say for instance a bar graph, which element(s) should be used to mark this up? Perhaps <meter> for each bar?

EDIT: What about using an SVG within a <figure>?

Upvotes: 3

Views: 783

Answers (1)

Programmer1994
Programmer1994

Reputation: 975

Use <figure> when you want to show content like illustrations, diagrams etc. <meter> is used for content which has to be described in a certain range.

Upvotes: 2

Related Questions