Generate html for the fact details now. next will be event handling and css styling for the generated html.