Code to print the metrics on HTML page