HTML Comments

HTML Basic Programs


Before we dive into creating some HTML programs, let's take a look at the basic structure of an HTML document:

  • The <!DOCTYPE html> declaration at the top of the document tells the browser that this is an HTML document.
  • The <html> element is the root element of the document, and it contains two child elements:
  • the <head> element and the <body> element.
  • The <head> element contains information about the document, such as the document title and any scripts or stylesheets that the document uses.
  • The <title> element is used to define the document's title, which appears in the browser's title bar.
  • The <body> element contains the actual content of the web page. This is where you can add text, images, videos, and other media using various HTML tags and elements.
HTML Basic Programs Code: