Progress Bar in HTML5

Introduction

 
In this article, we will learn the basic understanding of the Progress and Mark tags available in HTML 5. 
 
Question: What is Progress in Html 5?
 
If you are a developer or programmer, I am sure you have seen a progress bar in many applications. A progress bar control shows the progress of a process from start to finish and it also gives us an idea of how much time is left in the process to finish.
 
For example, when you install software, you will notice a progress bar shows how much installation is completed and how much is left. On the Web, you may notice sometime when you are uploading or download a file, you will see how much task has completed. 
 
In simple terms, "A progress bar is used to display the amount of task completed when compared to overall task". 
 
The Progress tag in HTML 5 represents a progress bar control.
 
Question: What is Mark in Html 5?
 
In simple terms, "A mark tag is used to highlight some parts of your document". 
 
Now, let's see some sample code that shows how to use these two tags in HTML 5. 
 
Step 1: The Complete Code of progress.html looks like this
 
Code
  1.  <!DOCTYPE html>  
  2. <html lang="en">  
  3. <head>  
  4.   <meta charset="utf-8" />   <!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame  
  5.        Remove this if you use the .htaccess -->  
  6.   <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />   <title>templates</title>  
  7.   <meta name="description" content="" />  
  8.   <meta name="author" content="Vijay" />   <meta name="viewport" content="width=device-width; initial-scale=1.0" />   <!-- Replace favicon.ico & apple-touch-icon.png in the root of your domain and delete these references -->  
  9.   <link rel="shortcut icon" href="/favicon.ico" />  
  10.   <link rel="apple-touch-icon" href="/apple-touch-icon.png" />  
  11. </head> <body>  
  12.   <div style="font-family: Verdana ; font-size: 22; text-align: center">  
  13.     <header>  
  14.       <h1 style="color: gray">Progress - HTML 5</h1>  
  15.     </header>  
  16.     Current Downloading<progress value="72" max="100"></progress>     <div>  
  17.        <p> This is simple example using <mark>Mark - HTML 5</mark></p>  
  18.     </div>     <footer>  
  19.      <p style="color: silver">© Copyright  by Vijay Prativadi</p>  
  20.     </footer>  
  21.   </div>  
  22. </body>  
  23. </html>   
Step 2: The Output of the Application looks like this:
 
MarkandProgress0.png
 
I hope this article is useful for you. I look forward to your comments and feedback. Thanks, Vijay Prativadi...


MVC Corporation
MVC Corporation is consulting and IT services based company.