1) What is the purpose of the <doctype> declaration in HTML?
The <doctype> declaration informs the web browser about the version of HTML being used in the document. It helps the browser render the page correctly. For example, <!DOCTYPE html> is used for HTML5, indicating that the document is written in HTML5 standards. This declaration should be the very first thing in an HTML document, before the <html> tag.





























