Basic Structure Of HTML:

An HTML document generally has the following structure:

Key Elements.

  • <!DOCTYPE html>: Declares the document type and version of HTML (HTML5 in this case).
  • <html>: The root element that contains all the content on the page.
  • <head>: Contains meta-information about the HTML document, like the title, links to stylesheets, and other metadata.
  • <title>: Sets the title of the page, which appears in the browser’s title bar or tab.
  • <body>: Contains the main content of the page, like text, images, links, etc.