When a browser sends a request to a server, it receives a response containing an HTML document along with CSS stylesheets, JavaScript files, images, and other resources needed to render the webpage. So, what really is HTML document?

Definition


An HTML document, commonly referred to as a webpage, is a text file with the extension .html. It contains HTML code which is a series of Elements.