SlideShare a Scribd company logo
1 of 11
HTML 5
<meter> and
<progress>
Overview of new inline tags
of HTML-5.
1Presenter: K Chandrasekhar Omkar
Where does it fit in HTML5?
HTML5 offers three types of new elements:
1. Sectioning elements are some ‘flow content’
elements that can be used to indicate page sections.
2. Inline elements add semantics to data within
information, which is pretty self-explanatory. These
elements can be seen as semantic alternatives.
3. Interactive elements ease the task of presenting
data more pointedly, while maintaining simplicity.
2Presenter: K Chandrasekhar Omkar
More about ‘inline’ elements
Text within a document is organized into
paragraphs. Sometimes, data that is within
information (i.e., inline) indicate the gist of
content. Such data, can be enclosed within inline
tags to provide semantics.
<progress> and <meter> are such inline-
elements used for presenting facts more
intuitively.
3Presenter: K Chandrasekhar Omkar
Understanding <progress>
element
• Show completion progress of a task.
• Progress bars are easily understood, and widely
used in all user interfaces.
• Useful for:
– Indicate loading progress of an application/process.
– Show user progress through a series of forms
– Making impatient users wait.
•
4Presenter: K Chandrasekhar Omkar
Categorize <progress>…
Types of
tasks
Determinate
Progress can be expressed
giving the fraction of work that
has so far been completed.
Example, portion of file
uploaded.
Indeterminate
Progress is being made not
sure about how much more
work remains.
Example, waiting for a remote
host to respond.
5Presenter: K Chandrasekhar Omkar
Using <progress>
<progress> tag supports the following attributes.
“Value” •The attribute “value” is the percentage of the task completed.
•It should be a floating point number between 0 and “max” value.
•If not present, progress bar is indeterminate.
“Max” •The “max” attribute specifies how much work the task requires in total.
•It determines the maximum value that the ”value” attribute may take.
• Takes 1.0 as the default value.
“position” • Position is a “readonly” attribute accessible via DOM.
• For a determinate progress-bar it is the result of dividing “value” by the ”max”.
•For an indeterminate progress-bar it must return −1.
W3C recommends to include the current value and the maximum value as text between
the <progress> … </progress> tags, so that the progress is made available to users
of legacy user agents, for the sake of overcoming incompatibilities (if any).
6Presenter: K Chandrasekhar Omkar
Understanding <meter> element
• Representing scalar measurements or fractional
counts, within a finite-range of values.
• Useful for:
– User Ratings (e.g. YouTube Videos, Feedbacks)
– Indicating Search-Result relevance
– Indicating quotas, factual-figures.
•
• Also known as “gauge”.
7Presenter: K Chandrasekhar Omkar
Using <meter>
• <meter> tag supports the following attributes.
Measuring
attributes
Min Specifies the lower bound of the range.
Max Specifies the upper bound of the range.
Value Specifies the value to have the gauge indicate as the "measured" value.
Ranging
attributes
Low Specifies the range that is considered to be the "low" part.
High Specifies the range that is considered to be the "high" part
Optimum Gives the position that is "optimum"; if that is higher than the "high" value
then this indicates that the higher the value, the better; if it's lower than the
"low" mark then it indicates that lower values are better
W3C recommends to include a textual representation of the gauge's state between the <meter> …
</meter> tags so that the output is made available to users of legacy user agents, for the sake of
overcoming incompatibilities (if any).
8Presenter: K Chandrasekhar Omkar
Constraints for <meter>
• ‘value’ is a required attribute.
• Min ≤ value ≤ max
• Min ≤ low ≤ max (if low is specified)
• Min ≤ high ≤ maximum (if high is specified)
• Min ≤ optimum ≤ Max (if optimum is specified)
• low ≤ high (if both low and high are specified)
• Default values of “max” and “min” are taken as 0
and 1.0 respectively.
9Presenter: K Chandrasekhar Omkar
Should I use <meter> or
<progress>?
• The <progress> element is the wrong one to
use for something that is just a gauge, as
opposed to task progress.
• The <meter> element should represent a scalar
value only when a valid range is known.
• For instance, indicating disk space usage
using <progress> would be inappropriate.
Instead, the <meter> element is available for
such use cases.
10Presenter: K Chandrasekhar Omkar
Thank you.
• Please refer http://www.whatwg.org/specs/web-apps/current-
work/multipage/the-button-element.html#the-progress-
element for further information.
11Presenter: K Chandrasekhar Omkar

More Related Content

Similar to HTML 5 - Measure and progress!

MCA-202-W4-L1.pptx
MCA-202-W4-L1.pptxMCA-202-W4-L1.pptx
MCA-202-W4-L1.pptxmanju451965
 
Iwt note(module 2)
Iwt note(module 2)Iwt note(module 2)
Iwt note(module 2)SANTOSH RATH
 
Angular - Chapter 4 - Data and Event Handling
 Angular - Chapter 4 - Data and Event Handling Angular - Chapter 4 - Data and Event Handling
Angular - Chapter 4 - Data and Event HandlingWebStackAcademy
 
Robust and declarative machine learning pipelines for predictive buying at Ba...
Robust and declarative machine learning pipelines for predictive buying at Ba...Robust and declarative machine learning pipelines for predictive buying at Ba...
Robust and declarative machine learning pipelines for predictive buying at Ba...Gianmario Spacagna
 
Mastering the Lightning Framework - Part 1
Mastering the Lightning Framework - Part 1Mastering the Lightning Framework - Part 1
Mastering the Lightning Framework - Part 1Salesforce Developers
 
Getting started with html5
Getting started with html5Getting started with html5
Getting started with html5Suresh Kumar
 
Web Development.pptx
Web Development.pptxWeb Development.pptx
Web Development.pptxRaghav271104
 
Cognos framework manager
Cognos framework managerCognos framework manager
Cognos framework managermaxonlinetr
 
Key projects in AI, ML and Generative AI
Key projects in AI, ML and Generative AIKey projects in AI, ML and Generative AI
Key projects in AI, ML and Generative AIVijayananda Mohire
 
Announcing AWS Step Functions - December 2016 Monthly Webinar Series
Announcing AWS Step Functions - December 2016 Monthly Webinar SeriesAnnouncing AWS Step Functions - December 2016 Monthly Webinar Series
Announcing AWS Step Functions - December 2016 Monthly Webinar SeriesAmazon Web Services
 
Guidelines to understand durable functions with .net core, c# and stateful se...
Guidelines to understand durable functions with .net core, c# and stateful se...Guidelines to understand durable functions with .net core, c# and stateful se...
Guidelines to understand durable functions with .net core, c# and stateful se...Concetto Labs
 
Cloudera Movies Data Science Project On Big Data
Cloudera Movies Data Science Project On Big DataCloudera Movies Data Science Project On Big Data
Cloudera Movies Data Science Project On Big DataAbhishek M Shivalingaiah
 
Using Apache Pulsar to Provide Real-Time IoT Analytics on the Edge
Using Apache Pulsar to Provide Real-Time IoT Analytics on the EdgeUsing Apache Pulsar to Provide Real-Time IoT Analytics on the Edge
Using Apache Pulsar to Provide Real-Time IoT Analytics on the EdgeDataWorks Summit
 
Evolution of netflix conductor
Evolution of netflix conductorEvolution of netflix conductor
Evolution of netflix conductorvedu12
 
Introduction to AWS Step Functions:
Introduction to AWS Step Functions: Introduction to AWS Step Functions:
Introduction to AWS Step Functions: Amazon Web Services
 
Predictable reactive state management - ngrx
Predictable reactive state management - ngrxPredictable reactive state management - ngrx
Predictable reactive state management - ngrxIlia Idakiev
 

Similar to HTML 5 - Measure and progress! (20)

MCA-202-W4-L1.pptx
MCA-202-W4-L1.pptxMCA-202-W4-L1.pptx
MCA-202-W4-L1.pptx
 
Bound and Checked
Bound and CheckedBound and Checked
Bound and Checked
 
Iwt note(module 2)
Iwt note(module 2)Iwt note(module 2)
Iwt note(module 2)
 
Angular - Chapter 4 - Data and Event Handling
 Angular - Chapter 4 - Data and Event Handling Angular - Chapter 4 - Data and Event Handling
Angular - Chapter 4 - Data and Event Handling
 
Robust and declarative machine learning pipelines for predictive buying at Ba...
Robust and declarative machine learning pipelines for predictive buying at Ba...Robust and declarative machine learning pipelines for predictive buying at Ba...
Robust and declarative machine learning pipelines for predictive buying at Ba...
 
Report_Altair
Report_AltairReport_Altair
Report_Altair
 
Mastering the Lightning Framework - Part 1
Mastering the Lightning Framework - Part 1Mastering the Lightning Framework - Part 1
Mastering the Lightning Framework - Part 1
 
Getting started with html5
Getting started with html5Getting started with html5
Getting started with html5
 
Web Development.pptx
Web Development.pptxWeb Development.pptx
Web Development.pptx
 
Cognos framework manager
Cognos framework managerCognos framework manager
Cognos framework manager
 
Key projects in AI, ML and Generative AI
Key projects in AI, ML and Generative AIKey projects in AI, ML and Generative AI
Key projects in AI, ML and Generative AI
 
Announcing AWS Step Functions - December 2016 Monthly Webinar Series
Announcing AWS Step Functions - December 2016 Monthly Webinar SeriesAnnouncing AWS Step Functions - December 2016 Monthly Webinar Series
Announcing AWS Step Functions - December 2016 Monthly Webinar Series
 
Guidelines to understand durable functions with .net core, c# and stateful se...
Guidelines to understand durable functions with .net core, c# and stateful se...Guidelines to understand durable functions with .net core, c# and stateful se...
Guidelines to understand durable functions with .net core, c# and stateful se...
 
Cloudera Movies Data Science Project On Big Data
Cloudera Movies Data Science Project On Big DataCloudera Movies Data Science Project On Big Data
Cloudera Movies Data Science Project On Big Data
 
Using Apache Pulsar to Provide Real-Time IoT Analytics on the Edge
Using Apache Pulsar to Provide Real-Time IoT Analytics on the EdgeUsing Apache Pulsar to Provide Real-Time IoT Analytics on the Edge
Using Apache Pulsar to Provide Real-Time IoT Analytics on the Edge
 
Evolution of netflix conductor
Evolution of netflix conductorEvolution of netflix conductor
Evolution of netflix conductor
 
Introduction to AWS Step Functions:
Introduction to AWS Step Functions: Introduction to AWS Step Functions:
Introduction to AWS Step Functions:
 
Predictable reactive state management - ngrx
Predictable reactive state management - ngrxPredictable reactive state management - ngrx
Predictable reactive state management - ngrx
 
About Qtp 92
About Qtp 92About Qtp 92
About Qtp 92
 
About QTP 9.2
About QTP 9.2About QTP 9.2
About QTP 9.2
 

Recently uploaded

Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Bhuvaneswari Subramani
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Zilliz
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Victor Rentea
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...apidays
 

Recently uploaded (20)

Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 

HTML 5 - Measure and progress!

  • 1. HTML 5 <meter> and <progress> Overview of new inline tags of HTML-5. 1Presenter: K Chandrasekhar Omkar
  • 2. Where does it fit in HTML5? HTML5 offers three types of new elements: 1. Sectioning elements are some ‘flow content’ elements that can be used to indicate page sections. 2. Inline elements add semantics to data within information, which is pretty self-explanatory. These elements can be seen as semantic alternatives. 3. Interactive elements ease the task of presenting data more pointedly, while maintaining simplicity. 2Presenter: K Chandrasekhar Omkar
  • 3. More about ‘inline’ elements Text within a document is organized into paragraphs. Sometimes, data that is within information (i.e., inline) indicate the gist of content. Such data, can be enclosed within inline tags to provide semantics. <progress> and <meter> are such inline- elements used for presenting facts more intuitively. 3Presenter: K Chandrasekhar Omkar
  • 4. Understanding <progress> element • Show completion progress of a task. • Progress bars are easily understood, and widely used in all user interfaces. • Useful for: – Indicate loading progress of an application/process. – Show user progress through a series of forms – Making impatient users wait. • 4Presenter: K Chandrasekhar Omkar
  • 5. Categorize <progress>… Types of tasks Determinate Progress can be expressed giving the fraction of work that has so far been completed. Example, portion of file uploaded. Indeterminate Progress is being made not sure about how much more work remains. Example, waiting for a remote host to respond. 5Presenter: K Chandrasekhar Omkar
  • 6. Using <progress> <progress> tag supports the following attributes. “Value” •The attribute “value” is the percentage of the task completed. •It should be a floating point number between 0 and “max” value. •If not present, progress bar is indeterminate. “Max” •The “max” attribute specifies how much work the task requires in total. •It determines the maximum value that the ”value” attribute may take. • Takes 1.0 as the default value. “position” • Position is a “readonly” attribute accessible via DOM. • For a determinate progress-bar it is the result of dividing “value” by the ”max”. •For an indeterminate progress-bar it must return −1. W3C recommends to include the current value and the maximum value as text between the <progress> … </progress> tags, so that the progress is made available to users of legacy user agents, for the sake of overcoming incompatibilities (if any). 6Presenter: K Chandrasekhar Omkar
  • 7. Understanding <meter> element • Representing scalar measurements or fractional counts, within a finite-range of values. • Useful for: – User Ratings (e.g. YouTube Videos, Feedbacks) – Indicating Search-Result relevance – Indicating quotas, factual-figures. • • Also known as “gauge”. 7Presenter: K Chandrasekhar Omkar
  • 8. Using <meter> • <meter> tag supports the following attributes. Measuring attributes Min Specifies the lower bound of the range. Max Specifies the upper bound of the range. Value Specifies the value to have the gauge indicate as the "measured" value. Ranging attributes Low Specifies the range that is considered to be the "low" part. High Specifies the range that is considered to be the "high" part Optimum Gives the position that is "optimum"; if that is higher than the "high" value then this indicates that the higher the value, the better; if it's lower than the "low" mark then it indicates that lower values are better W3C recommends to include a textual representation of the gauge's state between the <meter> … </meter> tags so that the output is made available to users of legacy user agents, for the sake of overcoming incompatibilities (if any). 8Presenter: K Chandrasekhar Omkar
  • 9. Constraints for <meter> • ‘value’ is a required attribute. • Min ≤ value ≤ max • Min ≤ low ≤ max (if low is specified) • Min ≤ high ≤ maximum (if high is specified) • Min ≤ optimum ≤ Max (if optimum is specified) • low ≤ high (if both low and high are specified) • Default values of “max” and “min” are taken as 0 and 1.0 respectively. 9Presenter: K Chandrasekhar Omkar
  • 10. Should I use <meter> or <progress>? • The <progress> element is the wrong one to use for something that is just a gauge, as opposed to task progress. • The <meter> element should represent a scalar value only when a valid range is known. • For instance, indicating disk space usage using <progress> would be inappropriate. Instead, the <meter> element is available for such use cases. 10Presenter: K Chandrasekhar Omkar
  • 11. Thank you. • Please refer http://www.whatwg.org/specs/web-apps/current- work/multipage/the-button-element.html#the-progress- element for further information. 11Presenter: K Chandrasekhar Omkar