Welcome to the HTML reference documentation! Here's a quick overview of essential HTML elements and syntax.

Basic Structure of an HTML Document

<!DOCTYPE html>
<html>
  <head>
    <title>Page Title</title>
  </head>
  <body>
    <!-- Content goes here -->
  </body>
</html>
html_structure

Common HTML Tags

  • <h1> to <h6>: Headings (e.g., <h1>Heading</h1>)
  • <p>: Paragraphs (e.g., <p>This is a paragraph.</p>)
  • <ul> and <ol>: Unordered/Ordered Lists (e.g., <ul><li>Item 1</li></ul>)
  • <a href="...">: Hyperlinks (e.g., <a href="/about">About</a>)
  • <img src="..." alt="...">: Images (e.g., <img src="image.jpg" alt="Sample Image">)
html_tag_list

Document Type Declaration

The <!DOCTYPE html> declaration defines the document type and version of HTML. It must be the first line of any HTML document.

Meta Information & Title

Use <meta charset="UTF-8"> for character encoding and <title> to set the page title.
Example:

<head>
  <meta charset="UTF-8">
  <title>My Web Page</title>
</head>
web_development

Expand Your Knowledge

For deeper insights into HTML syntax and best practices, visit our HTML Syntax Guide.

[Note: All images and links are illustrative examples.]