What is HTML?

HTML (HyperText Markup Language) is the standard language used to create and structure content on the web. It defines the structure of web pages by using a variety of tags and attributes.

Basic HTML Structure:

The most basic structure of an HTML document looks like this:

  • <html>: Root element of an HTML page.

  • <head>: Contains meta-information about the page (like title, charset).

  • <body>: Contains the content of the webpage (text, images, etc.).

Common Tags:

  • <h1> to <h6>: Headings. <h1> is the most important, <h6> is the least.

  • <p>: Paragraph.

  • <a>: Hyperlink.

  • <img>: Image.

  • <ul>, <ol>, <li>: Unordered list, Ordered list, and List items.