HTML elements are the building blocks of web pages. They define the structure and content of a webpage. This tutorial will guide you through some of the most common HTML elements.

Common HTML Elements

Here is a list of some common HTML elements:

  • <html>: The root element of an HTML page.
  • <head>: Contains meta-information about the document.
  • <title>: Specifies the title of the document.
  • <body>: Contains the content of the document.
  • <h1> to <h6>: Defines heading levels.
  • <p>: Defines a paragraph.
  • <a>: Defines a hyperlink.
  • <img>: Defines an image.
  • <div>: Defines a division or section in a document.
  • <span>: Defines a span of inline text.

Example

Here is an example of a simple HTML document:

<!DOCTYPE html>
<html>
<head>
  <title>HTML Elements</title>
</head>
<body>
  <h1>Welcome to My Website</h1>
  <p>This is a paragraph.</p>
  <a href="/en/tutorials/html_attributes">Learn about HTML attributes</a>
  <img src="https://cloud-image.ullrai.com/q/html_elements/" alt="HTML Elements"/>
  <div>This is a division.</div>
  <span>This is a span of text.</span>
</body>
</html>

Learn More

For more information on HTML elements, visit our HTML Tutorial.


HTML Elements